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.

Message.cs 2.0 kB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Threading.Tasks;
  4. namespace Discord
  5. {
  6. public class Message : IEntity<ulong>
  7. {
  8. public class Attachment : File
  9. {
  10. public string Id { get; }
  11. public int Size { get; }
  12. public string Filename { get; }
  13. }
  14. public class Embed
  15. {
  16. public string Url { get; }
  17. public string Type { get; }
  18. public string Title { get; }
  19. public string Description { get; }
  20. public EmbedLink Author { get; }
  21. public EmbedLink Provider { get; }
  22. public File Thumbnail { get; }
  23. public File Video { get; }
  24. }
  25. public class EmbedLink
  26. {
  27. public string Url { get; }
  28. public string Name { get; }
  29. }
  30. public class File
  31. {
  32. public string Url { get; }
  33. public string ProxyUrl { get; }
  34. public int? Width { get; }
  35. public int? Height { get; }
  36. }
  37. public ulong Id { get; }
  38. public DiscordClient Discord { get; }
  39. public EntityState State { get; }
  40. public ITextChannel Channel { get; }
  41. public User User { get; }
  42. public bool IsTTS { get; }
  43. public string RawText { get; }
  44. public string Text { get; }
  45. public DateTime Timestamp { get; }
  46. public DateTime? EditedTimestamp { get; }
  47. public Attachment[] Attachments { get; }
  48. public Embed[] Embeds { get; }
  49. public IEnumerable<User> MentionedUsers { get; }
  50. public IEnumerable<IPublicChannel> MentionedChannels { get; }
  51. public IEnumerable<Role> MentionedRoles { get; }
  52. public Server Server => null;
  53. public bool IsAuthor => false;
  54. public bool IsMentioningMe(bool includeRoles = false) => false;
  55. public Task Update() => null;
  56. public Task Delete() => null;
  57. }
  58. }