Skip to content

Commit

Permalink
Add guild onboarding + home audit log events (#258)
Browse files Browse the repository at this point in the history
* Add AuditLogGuildOnboardingUpdate

* remove comments

* update events

* add server guide events

* update events

* add other home events + rename server guide events

* remove home events
  • Loading branch information
Sebastian authored May 16, 2024
1 parent ee8814f commit d934f63
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions discord/audit_log.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -23,7 +21,6 @@ const (
AuditLogEventChannelOverwriteDelete
)

// AuditLogEventMemberKick
const (
AuditLogEventMemberKick AuditLogEvent = iota + 20
AuditLogEventMemberPrune
Expand All @@ -36,43 +33,37 @@ 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
AuditLogEventMessagePin
AuditLogEventMessageUnpin
)

// AuditLogEventIntegrationCreate
const (
AuditLogEventIntegrationCreate AuditLogEvent = iota + 80
AuditLogEventIntegrationUpdate
Expand All @@ -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
)
Expand All @@ -122,6 +109,19 @@ const (
AuditLogCreatorMonetizationTermsAccepted
)

const (
AuditLogOnboardingPromptCreate AuditLogEvent = iota + 163
AuditLogOnboardingPromptUpdate
AuditLogOnboardingPromptDelete
AuditLogOnboardingCreate
AuditLogOnboardingUpdate
)

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
type AuditLog struct {
ApplicationCommands []ApplicationCommand `json:"application_commands"`
Expand Down

0 comments on commit d934f63

Please sign in to comment.