using System; using System.Collections.Generic; using System.Diagnostics; using System.Threading.Tasks; using Model = Discord.API.Channel; namespace Discord.WebSocket { /// /// Represents a WebSocket-based news channel in a guild that has the same properties as a . /// /// /// /// The property is not supported for news channels. /// /// [DebuggerDisplay(@"{DebuggerDisplay,nq}")] public class SocketNewsChannel : SocketTextChannel { internal SocketNewsChannel(DiscordSocketClient discord, ulong id, SocketGuild guild) :base(discord, id, guild) { } internal new static SocketNewsChannel Create(SocketGuild guild, ClientState state, Model model) { var entity = new SocketNewsChannel(guild.Discord, model.Id, guild); entity.Update(state, model); return entity; } /// /// /// /// This property is not supported by this type. Attempting to use this property will result in a . /// /// public override int SlowModeInterval => throw new NotSupportedException("News channels do not support Slow Mode."); } }