public void Update(EmbedModel model, UpdateSource source) { if (source == UpdateSource.Rest && IsAttached) { return; } IsEmbeddable = model.Enabled; EmbedChannelId = model.ChannelId; }
internal void Update(EmbedModel model) { EmbedChannelId = model.ChannelId; IsEmbeddable = model.Enabled; }
internal static RestGuildEmbed Create(Model model) { return(new RestGuildEmbed(model.Enabled, model.ChannelId)); }
internal GuildEmbed(Model model) : this(model.Enabled, model.ChannelId) { }