diff --git a/deno/payloads/v10/auditLog.ts b/deno/payloads/v10/auditLog.ts index ee5849d8..e5c8d622 100644 --- a/deno/payloads/v10/auditLog.ts +++ b/deno/payloads/v10/auditLog.ts @@ -197,6 +197,10 @@ export enum AuditLogEvent { ApplicationCommandPermissionUpdate = 121, + SoundboardSoundCreate = 130, + SoundboardSoundUpdate, + SoundboardSoundDelete, + AutoModerationRuleCreate = 140, AutoModerationRuleUpdate, AutoModerationRuleDelete, @@ -373,6 +377,8 @@ export type APIAuditLogChange = | APIAuditLogChangeKeyDeny | APIAuditLogChangeKeyDescription | APIAuditLogChangeKeyDiscoverySplashHash + | APIAuditLogChangeKeyEmojiId + | APIAuditLogChangeKeyEmojiName | APIAuditLogChangeKeyEnabled | APIAuditLogChangeKeyEnableEmoticons | APIAuditLogChangeKeyEntityType @@ -413,6 +419,7 @@ export type APIAuditLogChange = | APIAuditLogChangeKeyRecurrenceRule | APIAuditLogChangeKeyRegion | APIAuditLogChangeKeyRulesChannelId + | APIAuditLogChangeKeySoundId | APIAuditLogChangeKeySplashHash | APIAuditLogChangeKeyStatus | APIAuditLogChangeKeySystemChannelFlags @@ -423,10 +430,12 @@ export type APIAuditLogChange = | APIAuditLogChangeKeyTriggerMetadata | APIAuditLogChangeKeyTriggerType | APIAuditLogChangeKeyType + | APIAuditLogChangeKeyUserId | APIAuditLogChangeKeyUserLimit | APIAuditLogChangeKeyUses | APIAuditLogChangeKeyVanityURLCode | APIAuditLogChangeKeyVerificationLevel + | APIAuditLogChangeKeyVolume | APIAuditLogChangeKeyWidgetChannelId | APIAuditLogChangeKeyWidgetEnabled; @@ -882,6 +891,31 @@ export type APIAuditLogChangeKeyDefaultThreadRateLimitPerUser = AuditLogChangeDa number >; +/** + * Returned when a soundboard is create or deleted + */ +export type APIAuditLogChangeKeySoundId = AuditLogChangeData<'sound_id', Snowflake>; + +/** + * Returned when a soundboard's volume is changed + */ +export type APIAuditLogChangeKeyVolume = AuditLogChangeData<'volume', number>; + +/** + * Returned when a soundboard's custom emoji is changed + */ +export type APIAuditLogChangeKeyEmojiId = AuditLogChangeData<'emoji_id', Snowflake>; + +/** + * Returned when a soundboard's unicode emoji is changed + */ +export type APIAuditLogChangeKeyEmojiName = AuditLogChangeData<'emoji_name', string>; + +/** + * Returned when a sounboard is created + */ +export type APIAuditLogChangeKeyUserId = AuditLogChangeData<'user_id', Snowflake>; + interface AuditLogChangeData { key: K; /** diff --git a/deno/payloads/v9/auditLog.ts b/deno/payloads/v9/auditLog.ts index ee5849d8..e5c8d622 100644 --- a/deno/payloads/v9/auditLog.ts +++ b/deno/payloads/v9/auditLog.ts @@ -197,6 +197,10 @@ export enum AuditLogEvent { ApplicationCommandPermissionUpdate = 121, + SoundboardSoundCreate = 130, + SoundboardSoundUpdate, + SoundboardSoundDelete, + AutoModerationRuleCreate = 140, AutoModerationRuleUpdate, AutoModerationRuleDelete, @@ -373,6 +377,8 @@ export type APIAuditLogChange = | APIAuditLogChangeKeyDeny | APIAuditLogChangeKeyDescription | APIAuditLogChangeKeyDiscoverySplashHash + | APIAuditLogChangeKeyEmojiId + | APIAuditLogChangeKeyEmojiName | APIAuditLogChangeKeyEnabled | APIAuditLogChangeKeyEnableEmoticons | APIAuditLogChangeKeyEntityType @@ -413,6 +419,7 @@ export type APIAuditLogChange = | APIAuditLogChangeKeyRecurrenceRule | APIAuditLogChangeKeyRegion | APIAuditLogChangeKeyRulesChannelId + | APIAuditLogChangeKeySoundId | APIAuditLogChangeKeySplashHash | APIAuditLogChangeKeyStatus | APIAuditLogChangeKeySystemChannelFlags @@ -423,10 +430,12 @@ export type APIAuditLogChange = | APIAuditLogChangeKeyTriggerMetadata | APIAuditLogChangeKeyTriggerType | APIAuditLogChangeKeyType + | APIAuditLogChangeKeyUserId | APIAuditLogChangeKeyUserLimit | APIAuditLogChangeKeyUses | APIAuditLogChangeKeyVanityURLCode | APIAuditLogChangeKeyVerificationLevel + | APIAuditLogChangeKeyVolume | APIAuditLogChangeKeyWidgetChannelId | APIAuditLogChangeKeyWidgetEnabled; @@ -882,6 +891,31 @@ export type APIAuditLogChangeKeyDefaultThreadRateLimitPerUser = AuditLogChangeDa number >; +/** + * Returned when a soundboard is create or deleted + */ +export type APIAuditLogChangeKeySoundId = AuditLogChangeData<'sound_id', Snowflake>; + +/** + * Returned when a soundboard's volume is changed + */ +export type APIAuditLogChangeKeyVolume = AuditLogChangeData<'volume', number>; + +/** + * Returned when a soundboard's custom emoji is changed + */ +export type APIAuditLogChangeKeyEmojiId = AuditLogChangeData<'emoji_id', Snowflake>; + +/** + * Returned when a soundboard's unicode emoji is changed + */ +export type APIAuditLogChangeKeyEmojiName = AuditLogChangeData<'emoji_name', string>; + +/** + * Returned when a sounboard is created + */ +export type APIAuditLogChangeKeyUserId = AuditLogChangeData<'user_id', Snowflake>; + interface AuditLogChangeData { key: K; /** diff --git a/payloads/v10/auditLog.ts b/payloads/v10/auditLog.ts index 53f628c9..9bc3b5c1 100644 --- a/payloads/v10/auditLog.ts +++ b/payloads/v10/auditLog.ts @@ -197,6 +197,10 @@ export enum AuditLogEvent { ApplicationCommandPermissionUpdate = 121, + SoundboardSoundCreate = 130, + SoundboardSoundUpdate, + SoundboardSoundDelete, + AutoModerationRuleCreate = 140, AutoModerationRuleUpdate, AutoModerationRuleDelete, @@ -373,6 +377,8 @@ export type APIAuditLogChange = | APIAuditLogChangeKeyDeny | APIAuditLogChangeKeyDescription | APIAuditLogChangeKeyDiscoverySplashHash + | APIAuditLogChangeKeyEmojiId + | APIAuditLogChangeKeyEmojiName | APIAuditLogChangeKeyEnabled | APIAuditLogChangeKeyEnableEmoticons | APIAuditLogChangeKeyEntityType @@ -413,6 +419,7 @@ export type APIAuditLogChange = | APIAuditLogChangeKeyRecurrenceRule | APIAuditLogChangeKeyRegion | APIAuditLogChangeKeyRulesChannelId + | APIAuditLogChangeKeySoundId | APIAuditLogChangeKeySplashHash | APIAuditLogChangeKeyStatus | APIAuditLogChangeKeySystemChannelFlags @@ -423,10 +430,12 @@ export type APIAuditLogChange = | APIAuditLogChangeKeyTriggerMetadata | APIAuditLogChangeKeyTriggerType | APIAuditLogChangeKeyType + | APIAuditLogChangeKeyUserId | APIAuditLogChangeKeyUserLimit | APIAuditLogChangeKeyUses | APIAuditLogChangeKeyVanityURLCode | APIAuditLogChangeKeyVerificationLevel + | APIAuditLogChangeKeyVolume | APIAuditLogChangeKeyWidgetChannelId | APIAuditLogChangeKeyWidgetEnabled; @@ -882,6 +891,31 @@ export type APIAuditLogChangeKeyDefaultThreadRateLimitPerUser = AuditLogChangeDa number >; +/** + * Returned when a soundboard is create or deleted + */ +export type APIAuditLogChangeKeySoundId = AuditLogChangeData<'sound_id', Snowflake>; + +/** + * Returned when a soundboard's volume is changed + */ +export type APIAuditLogChangeKeyVolume = AuditLogChangeData<'volume', number>; + +/** + * Returned when a soundboard's custom emoji is changed + */ +export type APIAuditLogChangeKeyEmojiId = AuditLogChangeData<'emoji_id', Snowflake>; + +/** + * Returned when a soundboard's unicode emoji is changed + */ +export type APIAuditLogChangeKeyEmojiName = AuditLogChangeData<'emoji_name', string>; + +/** + * Returned when a sounboard is created + */ +export type APIAuditLogChangeKeyUserId = AuditLogChangeData<'user_id', Snowflake>; + interface AuditLogChangeData { key: K; /** diff --git a/payloads/v9/auditLog.ts b/payloads/v9/auditLog.ts index 53f628c9..9bc3b5c1 100644 --- a/payloads/v9/auditLog.ts +++ b/payloads/v9/auditLog.ts @@ -197,6 +197,10 @@ export enum AuditLogEvent { ApplicationCommandPermissionUpdate = 121, + SoundboardSoundCreate = 130, + SoundboardSoundUpdate, + SoundboardSoundDelete, + AutoModerationRuleCreate = 140, AutoModerationRuleUpdate, AutoModerationRuleDelete, @@ -373,6 +377,8 @@ export type APIAuditLogChange = | APIAuditLogChangeKeyDeny | APIAuditLogChangeKeyDescription | APIAuditLogChangeKeyDiscoverySplashHash + | APIAuditLogChangeKeyEmojiId + | APIAuditLogChangeKeyEmojiName | APIAuditLogChangeKeyEnabled | APIAuditLogChangeKeyEnableEmoticons | APIAuditLogChangeKeyEntityType @@ -413,6 +419,7 @@ export type APIAuditLogChange = | APIAuditLogChangeKeyRecurrenceRule | APIAuditLogChangeKeyRegion | APIAuditLogChangeKeyRulesChannelId + | APIAuditLogChangeKeySoundId | APIAuditLogChangeKeySplashHash | APIAuditLogChangeKeyStatus | APIAuditLogChangeKeySystemChannelFlags @@ -423,10 +430,12 @@ export type APIAuditLogChange = | APIAuditLogChangeKeyTriggerMetadata | APIAuditLogChangeKeyTriggerType | APIAuditLogChangeKeyType + | APIAuditLogChangeKeyUserId | APIAuditLogChangeKeyUserLimit | APIAuditLogChangeKeyUses | APIAuditLogChangeKeyVanityURLCode | APIAuditLogChangeKeyVerificationLevel + | APIAuditLogChangeKeyVolume | APIAuditLogChangeKeyWidgetChannelId | APIAuditLogChangeKeyWidgetEnabled; @@ -882,6 +891,31 @@ export type APIAuditLogChangeKeyDefaultThreadRateLimitPerUser = AuditLogChangeDa number >; +/** + * Returned when a soundboard is create or deleted + */ +export type APIAuditLogChangeKeySoundId = AuditLogChangeData<'sound_id', Snowflake>; + +/** + * Returned when a soundboard's volume is changed + */ +export type APIAuditLogChangeKeyVolume = AuditLogChangeData<'volume', number>; + +/** + * Returned when a soundboard's custom emoji is changed + */ +export type APIAuditLogChangeKeyEmojiId = AuditLogChangeData<'emoji_id', Snowflake>; + +/** + * Returned when a soundboard's unicode emoji is changed + */ +export type APIAuditLogChangeKeyEmojiName = AuditLogChangeData<'emoji_name', string>; + +/** + * Returned when a sounboard is created + */ +export type APIAuditLogChangeKeyUserId = AuditLogChangeData<'user_id', Snowflake>; + interface AuditLogChangeData { key: K; /**