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 926 B

123456789101112131415161718192021222324
  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 SocketNewsChannel 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. //TODO: Need to set custom channel properties for this type, as apparently it does not support slow mode or overwrites.
  22. }
  23. }