Exemplo n.º 1
0
        public void Update(EmbedModel model, UpdateSource source)
        {
            if (source == UpdateSource.Rest && IsAttached)
            {
                return;
            }

            IsEmbeddable   = model.Enabled;
            EmbedChannelId = model.ChannelId;
        }
Exemplo n.º 2
0
 internal void Update(EmbedModel model)
 {
     EmbedChannelId = model.ChannelId;
     IsEmbeddable   = model.Enabled;
 }
Exemplo n.º 3
0
 internal static RestGuildEmbed Create(Model model)
 {
     return(new RestGuildEmbed(model.Enabled, model.ChannelId));
 }
Exemplo n.º 4
0
 internal GuildEmbed(Model model)
     : this(model.Enabled, model.ChannelId)
 {
 }