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.

Server.cs 2.9 kB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Threading.Tasks;
  4. namespace Discord
  5. {
  6. public class Server : IEntity<ulong>
  7. {
  8. public class Emoji
  9. {
  10. public string Id { get; }
  11. public string Name { get; }
  12. public bool IsManaged { get; }
  13. public bool RequireColons { get; }
  14. public IEnumerable<Role> Roles { get; }
  15. }
  16. public ulong Id { get; }
  17. public DiscordClient Discord { get; }
  18. public EntityState State { get; }
  19. public User CurrentUser { get; }
  20. public string IconId { get; }
  21. public string SplashId { get; }
  22. public string IconUrl { get; }
  23. public string SplashUrl { get; }
  24. public int ChannelCount { get; }
  25. public int UserCount { get; }
  26. public int RoleCount { get; }
  27. public TextChannel DefaultChannel { get; }
  28. public Role EveryoneRole { get; }
  29. public IEnumerable<string> Features { get; }
  30. public IEnumerable<Emoji> CustomEmojis { get; }
  31. public IEnumerable<IChannel> Channels { get; }
  32. public IEnumerable<TextChannel> TextChannels { get; }
  33. public IEnumerable<VoiceChannel> VoiceChannels { get; }
  34. public IEnumerable<User> Users { get; }
  35. public IEnumerable<Role> Roles { get; }
  36. public string Name { get; set; }
  37. public Region Region { get; set; }
  38. public int AFKTimeout { get; set; }
  39. public DateTime JoinedAt { get; set; }
  40. public User Owner { get; set; }
  41. public VoiceChannel AFKChannel { get; set; }
  42. public IPublicChannel GetChannel(ulong id) => null;
  43. public IPublicChannel GetChannel(string mention) => null;
  44. public Role GetRole(ulong id) => null;
  45. public User GetUser(ulong id) => null;
  46. public User GetUser(string name, ushort discriminator) => null;
  47. public User GetUser(string mention) => null;
  48. public Task<IEnumerable<User>> DownloadBans() => null;
  49. public Task<IEnumerable<Invite>> DownloadInvites() => null;
  50. public Task<TextChannel> CreateTextChannel(string name) => null;
  51. public Task<VoiceChannel> CreateVoiceChannel(string name) => null;
  52. public Task<Invite> CreateInvite(int? maxAge = 1800, int? maxUses = null, bool tempMembership = false, bool withXkcd = false) => null;
  53. public Task<Role> CreateRole(string name, ServerPermissions? permissions = null, Color color = null, bool isHoisted = false) => null;
  54. public Task Ban(User user, int pruneDays = 0) => null;
  55. public Task Unban(User user) => null;
  56. public Task Unban(ulong userId) => null;
  57. public Task<int> PruneUsers(int days = 30, bool simulate = false) => null;
  58. public Task Update() => null;
  59. public Task Leave() => null;
  60. public Task Delete() => null;
  61. }
  62. }