feat(auditlog): add auto moderation actions and options (#1371)
This commit is contained in:
parent
7c47cfc906
commit
160605c9c3
1 changed files with 17 additions and 8 deletions
|
@ -1746,6 +1746,8 @@ type AuditLogOptions struct {
|
||||||
ID string `json:"id"`
|
ID string `json:"id"`
|
||||||
Type *AuditLogOptionsType `json:"type"`
|
Type *AuditLogOptionsType `json:"type"`
|
||||||
RoleName string `json:"role_name"`
|
RoleName string `json:"role_name"`
|
||||||
|
AutoModerationRuleName string `json:"auto_moderation_rule_name"`
|
||||||
|
AutoModerationRuleTriggerType string `json:"auto_moderation_rule_trigger_type"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// AuditLogOptionsType of the AuditLogOption
|
// AuditLogOptionsType of the AuditLogOption
|
||||||
|
@ -1824,6 +1826,13 @@ const (
|
||||||
AuditLogActionThreadDelete AuditLogAction = 112
|
AuditLogActionThreadDelete AuditLogAction = 112
|
||||||
|
|
||||||
AuditLogActionApplicationCommandPermissionUpdate AuditLogAction = 121
|
AuditLogActionApplicationCommandPermissionUpdate AuditLogAction = 121
|
||||||
|
|
||||||
|
AuditLogActionAutoModerationRuleCreate AuditLogAction = 140
|
||||||
|
AuditLogActionAutoModerationRuleUpdate AuditLogAction = 141
|
||||||
|
AuditLogActionAutoModerationRuleDelete AuditLogAction = 142
|
||||||
|
AuditLogActionAutoModerationBlockMessage AuditLogAction = 143
|
||||||
|
AuditLogActionAutoModerationFlagToChannel AuditLogAction = 144
|
||||||
|
AuditLogActionAutoModerationUserCommunicationDisabled AuditLogAction = 145
|
||||||
)
|
)
|
||||||
|
|
||||||
// GuildMemberParams stores data needed to update a member
|
// GuildMemberParams stores data needed to update a member
|
||||||
|
|
Loading…
Reference in a new issue