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.

PrivateChannel.cs 1.8 kB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. using System.Collections.Generic;
  2. using System.IO;
  3. using System.Threading.Tasks;
  4. namespace Discord
  5. {
  6. public class PrivateChannel : ITextChannel, IPrivateChannel
  7. {
  8. /// <inheritdoc />
  9. public ulong Id { get; }
  10. /// <inheritdoc />
  11. public DiscordClient Discord { get; }
  12. /// <inheritdoc />
  13. public EntityState State { get; }
  14. /// <inheritdoc />
  15. public ChannelType Type { get; }
  16. /// <inheritdoc />
  17. public bool IsPrivate => true;
  18. /// <inheritdoc />
  19. public bool IsPublic => false;
  20. /// <inheritdoc />
  21. public bool IsText => true;
  22. /// <inheritdoc />
  23. public bool IsVoice => false;
  24. /// <inheritdoc />
  25. public User Recipient { get; }
  26. /// <inheritdoc />
  27. public Task<IEnumerable<User>> GetUsers() => null;
  28. /// <inheritdoc />
  29. public Task<Message> GetMessage(ulong id) => null;
  30. /// <inheritdoc />
  31. public Task<IEnumerable<Message>> GetMessages(int limit = 100) => null;
  32. /// <inheritdoc />
  33. public Task<IEnumerable<Message>> GetMessages(int limit = 100, ulong? relativeMessageId = null, Relative relativeDir = Relative.Before) => null;
  34. /// <inheritdoc />
  35. public Task<Message> SendMessage(string text, bool isTTS = false) => null;
  36. /// <inheritdoc />
  37. public Task<Message> SendFile(string filePath, string text = null, bool isTTS = false) => null;
  38. /// <inheritdoc />
  39. public Task<Message> SendFile(Stream stream, string filename, string text = null, bool isTTS = false) => null;
  40. /// <inheritdoc />
  41. public Task SendIsTyping() => null;
  42. /// <inheritdoc />
  43. public Task Update() => null;
  44. /// <inheritdoc />
  45. public Task Delete() => null;
  46. }
  47. }