fix (#2682)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
@@ -8,13 +9,29 @@ namespace Discord.API.Rest
|
||||
{
|
||||
internal class ModifyAutoModRuleParams
|
||||
{
|
||||
[JsonProperty("name")]
|
||||
public Optional<string> Name { get; set; }
|
||||
|
||||
[JsonProperty("event_type")]
|
||||
public Optional<AutoModEventType> EventType { get; set; }
|
||||
|
||||
[JsonProperty("trigger_type")]
|
||||
public Optional<AutoModTriggerType> TriggerType { get; set; }
|
||||
|
||||
[JsonProperty("trigger_metadata")]
|
||||
public Optional<TriggerMetadata> TriggerMetadata { get; set; }
|
||||
|
||||
[JsonProperty("actions")]
|
||||
public Optional<AutoModAction[]> Actions { get; set; }
|
||||
|
||||
[JsonProperty("enabled")]
|
||||
public Optional<bool> Enabled { get; set; }
|
||||
|
||||
[JsonProperty("exempt_roles")]
|
||||
public Optional<ulong[]> ExemptRoles { get; set; }
|
||||
|
||||
[JsonProperty("exempt_channels")]
|
||||
public Optional<ulong[]> ExemptChannels { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user