From 969371e00ee0e6a7d24b8b618e3347e1ab9addb9 Mon Sep 17 00:00:00 2001 From: mlnrDev Date: Sat, 2 Sep 2023 16:19:04 +0200 Subject: [PATCH 1/2] Add new audit log events --- discord/audit_log.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/discord/audit_log.go b/discord/audit_log.go index 4135c558..51af2a9b 100644 --- a/discord/audit_log.go +++ b/discord/audit_log.go @@ -115,6 +115,7 @@ const ( AuditLogAutoModerationBlockMessage AuditLogAutoModerationFlagToChannel AuditLogAutoModerationUserCommunicationDisabled + AuditLogAutoModerationQuarantineUser ) const ( @@ -122,6 +123,15 @@ const ( AuditLogCreatorMonetizationTermsAccepted ) +const ( + AuditLogHarmfulLinksBlockedMessage AuditLogEvent = 180 +) + +const ( + AuditLogVoiceChannelStatusCreate AuditLogEvent = iota + 192 + AuditLogVoiceChannelStatusUpdate +) + // AuditLog (https://discord.com/developers/docs/resources/audit-log) These are logs of events that occurred, accessible via the Discord type AuditLog struct { ApplicationCommands []ApplicationCommand `json:"application_commands"` From 3cb9fd10881a1b9ca1119524e4aeea9077047f65 Mon Sep 17 00:00:00 2001 From: mlnrDev Date: Sun, 3 Sep 2023 22:52:25 +0200 Subject: [PATCH 2/2] remove voice channel status events --- discord/audit_log.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/discord/audit_log.go b/discord/audit_log.go index 51af2a9b..7f038c9b 100644 --- a/discord/audit_log.go +++ b/discord/audit_log.go @@ -127,11 +127,6 @@ const ( AuditLogHarmfulLinksBlockedMessage AuditLogEvent = 180 ) -const ( - AuditLogVoiceChannelStatusCreate AuditLogEvent = iota + 192 - AuditLogVoiceChannelStatusUpdate -) - // AuditLog (https://discord.com/developers/docs/resources/audit-log) These are logs of events that occurred, accessible via the Discord type AuditLog struct { ApplicationCommands []ApplicationCommand `json:"application_commands"`