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
25
structs.go
25
structs.go
|
@ -1738,14 +1738,16 @@ const (
|
|||
// AuditLogOptions optional data for the AuditLog
|
||||
// https://discord.com/developers/docs/resources/audit-log#audit-log-entry-object-optional-audit-entry-info
|
||||
type AuditLogOptions struct {
|
||||
DeleteMemberDays string `json:"delete_member_days"`
|
||||
MembersRemoved string `json:"members_removed"`
|
||||
ChannelID string `json:"channel_id"`
|
||||
MessageID string `json:"message_id"`
|
||||
Count string `json:"count"`
|
||||
ID string `json:"id"`
|
||||
Type *AuditLogOptionsType `json:"type"`
|
||||
RoleName string `json:"role_name"`
|
||||
DeleteMemberDays string `json:"delete_member_days"`
|
||||
MembersRemoved string `json:"members_removed"`
|
||||
ChannelID string `json:"channel_id"`
|
||||
MessageID string `json:"message_id"`
|
||||
Count string `json:"count"`
|
||||
ID string `json:"id"`
|
||||
Type *AuditLogOptionsType `json:"type"`
|
||||
RoleName string `json:"role_name"`
|
||||
AutoModerationRuleName string `json:"auto_moderation_rule_name"`
|
||||
AutoModerationRuleTriggerType string `json:"auto_moderation_rule_trigger_type"`
|
||||
}
|
||||
|
||||
// AuditLogOptionsType of the AuditLogOption
|
||||
|
@ -1824,6 +1826,13 @@ const (
|
|||
AuditLogActionThreadDelete AuditLogAction = 112
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue