Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add guild onboarding + home audit log events #258

Merged
merged 8 commits into from May 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
26 changes: 13 additions & 13 deletions discord/audit_log.go
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