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.

Invite.cs 1.2 kB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. using System;
  2. using System.Threading.Tasks;
  3. namespace Discord
  4. {
  5. public class Invite : IEntity<string>
  6. {
  7. public class ServerInfo
  8. {
  9. public ulong Id { get; }
  10. public string Name { get; }
  11. }
  12. public class ChannelInfo
  13. {
  14. public ulong Id { get; }
  15. public string Name { get; }
  16. }
  17. public class InviterInfo
  18. {
  19. public ulong Id { get; }
  20. public string Name { get; }
  21. public ushort Discriminator { get; }
  22. public string AvatarId { get; }
  23. public string AvatarUrl { get; }
  24. }
  25. string IEntity<string>.Id => Code;
  26. public DiscordClient Discord { get; }
  27. public EntityState State { get; }
  28. public string Code { get; }
  29. public string XkcdCode { get; }
  30. public ServerInfo Server { get; }
  31. public ChannelInfo Channel { get; }
  32. public int? MaxAge { get; }
  33. public int Uses { get; }
  34. public int? MaxUses { get; }
  35. public bool IsRevoked { get; }
  36. public bool IsTemporary { get; }
  37. public DateTime CreatedAt { get; }
  38. public string Url { get; }
  39. public Task Accept() => null;
  40. public Task Update() => null;
  41. public Task Delete() => null;
  42. }
  43. }