Skip to content

Commit 2b73e4e

Browse files
author
caneleex
authored
Merge pull request #189 from disgoorg/patch/automod-audit-log-info
2 parents f04f463 + 7c3a9cf commit 2b73e4e

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

discord/audit_log.go

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ const (
113113
AuditLogAutoModerationRuleUpdate
114114
AuditLogAutoModerationRuleDelete
115115
AuditLogAutoModerationBlockMessage
116+
AuditLogAutoModerationFlagToChannel
117+
AuditLogAutoModerationUserCommunicationDisabled
116118
)
117119

118120
// AuditLog (https://discord.com/developers/docs/resources/audit-log) These are logs of events that occurred, accessible via the Discord
@@ -236,13 +238,15 @@ type AuditLogChangeKey struct {
236238

237239
// OptionalAuditLogEntryInfo (https://discord.com/developers/docs/resources/audit-log#audit-log-entry-object-optional-audit-entry-info)
238240
type OptionalAuditLogEntryInfo struct {
239-
DeleteMemberDays *string `json:"delete_member_days"`
240-
MembersRemoved *string `json:"members_removed"`
241-
ChannelID *snowflake.ID `json:"channel_id"`
242-
MessageID *snowflake.ID `json:"message_id"`
243-
Count *string `json:"count"`
244-
ID *string `json:"id"`
245-
Type *string `json:"type"`
246-
RoleName *string `json:"role_name"`
247-
ApplicationID *snowflake.ID `json:"application_id"`
241+
DeleteMemberDays *string `json:"delete_member_days"`
242+
MembersRemoved *string `json:"members_removed"`
243+
ChannelID *snowflake.ID `json:"channel_id"`
244+
MessageID *snowflake.ID `json:"message_id"`
245+
Count *string `json:"count"`
246+
ID *string `json:"id"`
247+
Type *string `json:"type"`
248+
RoleName *string `json:"role_name"`
249+
ApplicationID *snowflake.ID `json:"application_id"`
250+
AutoModerationRuleName *string `json:"auto_moderation_rule_name"`
251+
AutoModerationRuleTriggerType *AutoModerationTriggerType `json:"auto_moderation_rule_trigger_type,string"`
248252
}

0 commit comments

Comments
 (0)