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.

Integration.cs 1.5 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using Newtonsoft.Json;
  2. using System;
  3. namespace Discord.API
  4. {
  5. internal class Integration
  6. {
  7. [JsonProperty("guild_id")]
  8. public Optional<ulong> GuildId { get; set; }
  9. [JsonProperty("id")]
  10. public ulong Id { get; set; }
  11. [JsonProperty("name")]
  12. public string Name { get; set; }
  13. [JsonProperty("type")]
  14. public string Type { get; set; }
  15. [JsonProperty("enabled")]
  16. public bool Enabled { get; set; }
  17. [JsonProperty("syncing")]
  18. public Optional<bool?> Syncing { get; set; }
  19. [JsonProperty("role_id")]
  20. public Optional<ulong?> RoleId { get; set; }
  21. [JsonProperty("enable_emoticons")]
  22. public Optional<bool?> EnableEmoticons { get; set; }
  23. [JsonProperty("expire_behavior")]
  24. public Optional<IntegrationExpireBehavior> ExpireBehavior { get; set; }
  25. [JsonProperty("expire_grace_period")]
  26. public Optional<int?> ExpireGracePeriod { get; set; }
  27. [JsonProperty("user")]
  28. public Optional<User> User { get; set; }
  29. [JsonProperty("account")]
  30. public Optional<IntegrationAccount> Account { get; set; }
  31. [JsonProperty("synced_at")]
  32. public Optional<DateTimeOffset> SyncedAt { get; set; }
  33. [JsonProperty("subscriber_count")]
  34. public Optional<int?> SubscriberAccount { get; set; }
  35. [JsonProperty("revoked")]
  36. public Optional<bool?> Revoked { get; set; }
  37. [JsonProperty("application")]
  38. public Optional<IntegrationApplication> Application { get; set; }
  39. }
  40. }