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