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.

AutoModerationRule.cs 1.2 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. using Newtonsoft.Json;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace Discord.API
  8. {
  9. internal class AutoModerationRule
  10. {
  11. [JsonProperty("id")]
  12. public ulong Id { get; set; }
  13. [JsonProperty("guild_id")]
  14. public ulong GuildId { get; set; }
  15. [JsonProperty("name")]
  16. public string Name { get; set; }
  17. [JsonProperty("creator_id")]
  18. public ulong CreatorId { get; set; }
  19. [JsonProperty("event_type")]
  20. public AutoModEventType EventType { get; set; }
  21. [JsonProperty("trigger_type")]
  22. public AutoModTriggerType TriggerType { get; set; }
  23. [JsonProperty("trigger_metadata")]
  24. public TriggerMetadata TriggerMetadata { get; set; }
  25. [JsonProperty("actions")]
  26. public AutoModAction[] Actions { get; set; }
  27. [JsonProperty("enabled")]
  28. public bool Enabled { get; set; }
  29. [JsonProperty("exempt_roles")]
  30. public ulong[] ExemptRoles { get; set; }
  31. [JsonProperty("exempt_channels")]
  32. public ulong[] ExemptChannels { get; set; }
  33. }
  34. }