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.

Guild.cs 2.5 kB

9 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. #pragma warning disable CS1591
  2. using Newtonsoft.Json;
  3. namespace Discord.API
  4. {
  5. internal class Guild
  6. {
  7. [JsonProperty("id")]
  8. public ulong Id { get; set; }
  9. [JsonProperty("name")]
  10. public string Name { get; set; }
  11. [JsonProperty("icon")]
  12. public string Icon { get; set; }
  13. [JsonProperty("splash")]
  14. public string Splash { get; set; }
  15. [JsonProperty("owner_id")]
  16. public ulong OwnerId { get; set; }
  17. [JsonProperty("region")]
  18. public string Region { get; set; }
  19. [JsonProperty("afk_channel_id")]
  20. public ulong? AFKChannelId { get; set; }
  21. [JsonProperty("afk_timeout")]
  22. public int AFKTimeout { get; set; }
  23. [JsonProperty("embed_enabled")]
  24. public bool EmbedEnabled { get; set; }
  25. [JsonProperty("embed_channel_id")]
  26. public ulong? EmbedChannelId { get; set; }
  27. [JsonProperty("verification_level")]
  28. public VerificationLevel VerificationLevel { get; set; }
  29. [JsonProperty("default_message_notifications")]
  30. public DefaultMessageNotifications DefaultMessageNotifications { get; set; }
  31. [JsonProperty("explicit_content_filter")]
  32. public ExplicitContentFilterLevel ExplicitContentFilter { get; set; }
  33. [JsonProperty("voice_states")]
  34. public VoiceState[] VoiceStates { get; set; }
  35. [JsonProperty("roles")]
  36. public Role[] Roles { get; set; }
  37. [JsonProperty("emojis")]
  38. public Emoji[] Emojis { get; set; }
  39. [JsonProperty("features")]
  40. public string[] Features { get; set; }
  41. [JsonProperty("mfa_level")]
  42. public MfaLevel MfaLevel { get; set; }
  43. [JsonProperty("application_id")]
  44. public ulong? ApplicationId { get; set; }
  45. [JsonProperty("system_channel_id")]
  46. public ulong? SystemChannelId { get; set; }
  47. [JsonProperty("premium_tier")]
  48. public PremiumTier PremiumTier { get; set; }
  49. [JsonProperty("vanity_url_code")]
  50. public string VanityURLCode { get; set; }
  51. [JsonProperty("banner")]
  52. public string Banner { get; set; }
  53. [JsonProperty("description")]
  54. public string Description { get; set; }
  55. // this value is inverted, flags set will turn OFF features
  56. [JsonProperty("system_channel_flags")]
  57. public SystemChannelMessageDeny SystemChannelFlags { get; set; }
  58. [JsonProperty("premium_subscription_count")]
  59. public Optional<int> PremiumSubscriptionCount { get; set; }
  60. }
  61. }