From 6ec38c999b1c0782177ad5c831d41298fc2fc5e1 Mon Sep 17 00:00:00 2001 From: caneleex Date: Sat, 1 Apr 2023 15:09:04 +0200 Subject: [PATCH 1/7] Add AuditLogGuildOnboardingUpdate --- discord/audit_log.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/discord/audit_log.go b/discord/audit_log.go index fc969b5f4..559e0842f 100644 --- a/discord/audit_log.go +++ b/discord/audit_log.go @@ -117,6 +117,10 @@ const ( AuditLogAutoModerationUserCommunicationDisabled ) +const ( + AuditLogGuildOnboardingUpdate AuditLogEvent = 167 +) + // 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 fd82e219cd1372da5b8ad99c8a8b0606288b7cf0 Mon Sep 17 00:00:00 2001 From: caneleex Date: Sat, 1 Apr 2023 15:12:53 +0200 Subject: [PATCH 2/7] remove comments --- discord/audit_log.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/discord/audit_log.go b/discord/audit_log.go index 559e0842f..d9b720920 100644 --- a/discord/audit_log.go +++ b/discord/audit_log.go @@ -8,12 +8,10 @@ import ( // AuditLogEvent is an 8-bit unsigned integer representing an audit log event. type AuditLogEvent int -// AuditLogEventGuildUpdate ... const ( AuditLogEventGuildUpdate AuditLogEvent = 1 ) -// AuditLogEventChannelCreate const ( AuditLogEventChannelCreate AuditLogEvent = iota + 10 AuditLogEventChannelUpdate @@ -23,7 +21,6 @@ const ( AuditLogEventChannelOverwriteDelete ) -// AuditLogEventMemberKick const ( AuditLogEventMemberKick AuditLogEvent = iota + 20 AuditLogEventMemberPrune @@ -36,35 +33,30 @@ const ( AuditLogEventBotAdd ) -// AuditLogEventRoleCreate const ( AuditLogEventRoleCreate AuditLogEvent = iota + 30 AuditLogEventRoleUpdate AuditLogEventRoleDelete ) -// AuditLogEventInviteCreate const ( AuditLogEventInviteCreate AuditLogEvent = iota + 40 AuditLogEventInviteUpdate AuditLogEventInviteDelete ) -// AuditLogEventWebhookCreate const ( AuditLogEventWebhookCreate AuditLogEvent = iota + 50 AuditLogEventWebhookUpdate AuditLogEventWebhookDelete ) -// AuditLogEventEmojiCreate const ( AuditLogEventEmojiCreate AuditLogEvent = iota + 60 AuditLogEventEmojiUpdate AuditLogEventEmojiDelete ) -// AuditLogEventMessageDelete const ( AuditLogEventMessageDelete AuditLogEvent = iota + 72 AuditLogEventMessageBulkDelete @@ -72,7 +64,6 @@ const ( AuditLogEventMessageUnpin ) -// AuditLogEventIntegrationCreate const ( AuditLogEventIntegrationCreate AuditLogEvent = iota + 80 AuditLogEventIntegrationUpdate @@ -82,28 +73,24 @@ const ( AuditLogEventStageInstanceDelete ) -// AuditLogEventStickerCreate const ( AuditLogEventStickerCreate AuditLogEvent = iota + 90 AuditLogEventStickerUpdate AuditLogEventStickerDelete ) -// AuditLogGuildScheduledEventCreate const ( AuditLogGuildScheduledEventCreate AuditLogEvent = iota + 100 AuditLogGuildScheduledEventUpdate AuditLogGuildScheduledEventDelete ) -// AuditLogThreadCreate const ( AuditLogThreadCreate AuditLogEvent = iota + 110 AuditLogThreadUpdate AuditLogThreadDelete ) -// AuditLogApplicationCommandPermissionUpdate ... const ( AuditLogApplicationCommandPermissionUpdate AuditLogEvent = 121 ) From 2574b1b1ca668243adc6ee2d7e4fb602c2c65aa2 Mon Sep 17 00:00:00 2001 From: caneleex Date: Sat, 1 Apr 2023 15:43:30 +0200 Subject: [PATCH 3/7] update events --- discord/audit_log.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/discord/audit_log.go b/discord/audit_log.go index d9b720920..9e996f5c4 100644 --- a/discord/audit_log.go +++ b/discord/audit_log.go @@ -105,7 +105,11 @@ const ( ) const ( - AuditLogGuildOnboardingUpdate AuditLogEvent = 167 + AuditLogOnboardingQuestionCreate AuditLogEvent = iota + 163 + AuditLogOnboardingQuestionUpdate + _ + _ + AuditLogOnboardingUpdate ) // AuditLog (https://discord.com/developers/docs/resources/audit-log) These are logs of events that occurred, accessible via the Discord From 4d6e65fdf1aa1b60aa3215e60a6a9d79e0bce514 Mon Sep 17 00:00:00 2001 From: caneleex Date: Sat, 6 May 2023 14:26:52 +0200 Subject: [PATCH 4/7] add server guide events --- discord/audit_log.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/discord/audit_log.go b/discord/audit_log.go index 9e996f5c4..4f8bc0368 100644 --- a/discord/audit_log.go +++ b/discord/audit_log.go @@ -112,6 +112,11 @@ const ( AuditLogOnboardingUpdate ) +const ( + AuditLogServerGuideCreate AuditLogEvent = iota + 190 + AuditLogServerGuideUpdate +) + // 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 25268ed111d0f644aa08fcb6177fcf17e4e6804e Mon Sep 17 00:00:00 2001 From: mlnrDev Date: Sat, 2 Sep 2023 16:03:59 +0200 Subject: [PATCH 5/7] update events --- discord/audit_log.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/discord/audit_log.go b/discord/audit_log.go index 609c09ad8..e1b467025 100644 --- a/discord/audit_log.go +++ b/discord/audit_log.go @@ -110,10 +110,10 @@ const ( ) const ( - AuditLogOnboardingQuestionCreate AuditLogEvent = iota + 163 - AuditLogOnboardingQuestionUpdate - _ - _ + AuditLogOnboardingPromptCreate AuditLogEvent = iota + 163 + AuditLogOnboardingPromptUpdate + AuditLogOnboardingPromptDelete + AuditLogOnboardingCreate AuditLogOnboardingUpdate ) From cd93d549a88be67b90724cd47dde98332544bff0 Mon Sep 17 00:00:00 2001 From: mlnrDev Date: Sat, 2 Sep 2023 16:12:08 +0200 Subject: [PATCH 6/7] add other home events + rename server guide events --- discord/audit_log.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/discord/audit_log.go b/discord/audit_log.go index e1b467025..d6419d77d 100644 --- a/discord/audit_log.go +++ b/discord/audit_log.go @@ -118,8 +118,13 @@ const ( ) const ( - AuditLogServerGuideCreate AuditLogEvent = iota + 190 - AuditLogServerGuideUpdate + AuditLogGuildHomeFeatureItem AuditLogEvent = iota + 171 + AuditLogGuildHomeRemoveItem +) + +const ( + AuditLogHomeSettingsCreate AuditLogEvent = iota + 190 + AuditLogHomeSettingsUpdate ) // AuditLog (https://discord.com/developers/docs/resources/audit-log) These are logs of events that occurred, accessible via the Discord From 950eeee62e8196ec2c08fb03791e3bccc925947c Mon Sep 17 00:00:00 2001 From: mlnrDev Date: Wed, 15 May 2024 19:52:00 +0200 Subject: [PATCH 7/7] remove home events --- discord/audit_log.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/discord/audit_log.go b/discord/audit_log.go index d6419d77d..59021f4a5 100644 --- a/discord/audit_log.go +++ b/discord/audit_log.go @@ -117,11 +117,6 @@ const ( AuditLogOnboardingUpdate ) -const ( - AuditLogGuildHomeFeatureItem AuditLogEvent = iota + 171 - AuditLogGuildHomeRemoveItem -) - const ( AuditLogHomeSettingsCreate AuditLogEvent = iota + 190 AuditLogHomeSettingsUpdate