Skip to content

Commit

Permalink
feat(auditlog): add auto moderation actions and options (bwmarrin#1371)
Browse files Browse the repository at this point in the history
  • Loading branch information
Earlopain authored May 14, 2023
1 parent 7c47cfc commit 160605c
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 160605c

Please sign in to comment.