You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

SocketNewsChannel.cs 798 B

1234567891011121314151617181920212223
  1. using System.Diagnostics;
  2. using Model = Discord.API.Channel;
  3. namespace Discord.WebSocket
  4. {
  5. /// <summary>
  6. /// Represents a WebSocket-based news channel in a guild that has the same properties as a <see cref="RestTextChannel"/>.
  7. /// </summary>
  8. [DebuggerDisplay(@"{DebuggerDisplay,nq}")]
  9. public class SocketNewsChannel : SocketTextChannel
  10. {
  11. internal SocketNewsChannel(DiscordSocketClient discord, ulong id, SocketGuild guild)
  12. :base(discord, id, guild)
  13. {
  14. }
  15. internal new static SocketTextChannel Create(SocketGuild guild, ClientState state, Model model)
  16. {
  17. var entity = new SocketNewsChannel(guild.Discord, model.Id, guild);
  18. entity.Update(state, model);
  19. return entity;
  20. }
  21. }
  22. }