From ea2b922d12618c54139fb37986697a1a2bd33393 Mon Sep 17 00:00:00 2001 From: Snazzah Date: Wed, 22 Oct 2025 18:36:05 -0400 Subject: [PATCH] feat(APIAuditLogChange): add some missing channel change types (#1409) * feat(APIAuditLogChange): add some missing channel change types * chore: fix formatting * chore: move a type down the list * chore: fix linting issue * chore: fix types in deno --- deno/payloads/v10/auditLog.ts | 21 ++++++++++++++++++++- deno/payloads/v9/auditLog.ts | 21 ++++++++++++++++++++- payloads/v10/auditLog.ts | 21 ++++++++++++++++++++- payloads/v9/auditLog.ts | 21 ++++++++++++++++++++- 4 files changed, 80 insertions(+), 4 deletions(-) diff --git a/deno/payloads/v10/auditLog.ts b/deno/payloads/v10/auditLog.ts index c05591f2..262bdace 100644 --- a/deno/payloads/v10/auditLog.ts +++ b/deno/payloads/v10/auditLog.ts @@ -10,7 +10,13 @@ import type { AutoModerationRuleEventType, AutoModerationRuleTriggerType, } from './autoModeration.ts'; -import type { APIChannel, APIGuildForumDefaultReactionEmoji, APIGuildForumTag, APIOverwrite } from './channel.ts'; +import type { + APIChannel, + APIGuildForumDefaultReactionEmoji, + APIGuildForumTag, + APIOverwrite, + VideoQualityMode, +} from './channel.ts'; import type { APIGuildIntegration, APIGuildIntegrationType, @@ -422,7 +428,9 @@ export type APIAuditLogChange = | APIAuditLogChangeKeyRateLimitPerUser | APIAuditLogChangeKeyRecurrenceRule | APIAuditLogChangeKeyRegion + | APIAuditLogChangeKeyRTCRegion | APIAuditLogChangeKeyRulesChannelId + | APIAuditLogChangeKeySafetyAlertsChannelId | APIAuditLogChangeKeySoundId | APIAuditLogChangeKeySplashHash | APIAuditLogChangeKeyStatus @@ -439,6 +447,7 @@ export type APIAuditLogChange = | APIAuditLogChangeKeyUses | APIAuditLogChangeKeyVanityURLCode | APIAuditLogChangeKeyVerificationLevel + | APIAuditLogChangeKeyVideoQualityMode | APIAuditLogChangeKeyVolume | APIAuditLogChangeKeyWidgetChannelId | APIAuditLogChangeKeyWidgetEnabled; @@ -488,6 +497,11 @@ export type APIAuditLogChangeKeyOwnerId = APIAuditLogChangeData<'owner_id', Snow */ export type APIAuditLogChangeKeyRegion = APIAuditLogChangeData<'region', string>; +/** + * Returned when a channel's rtc_region is changed + */ +export type APIAuditLogChangeKeyRTCRegion = APIAuditLogChangeData<'rtc_region', string>; + /** * Returned when a guild's preferred_locale is changed */ @@ -528,6 +542,11 @@ export type APIAuditLogChangeKeyMFALevel = APIAuditLogChangeData<'mfa_level', Gu */ export type APIAuditLogChangeKeyVerificationLevel = APIAuditLogChangeData<'verification_level', GuildVerificationLevel>; +/** + * Returned when a channel's video_quality_mode is changed + */ +export type APIAuditLogChangeKeyVideoQualityMode = APIAuditLogChangeData<'video_quality_mode', VideoQualityMode>; + /** * Returned when a guild's explicit_content_filter is changed */ diff --git a/deno/payloads/v9/auditLog.ts b/deno/payloads/v9/auditLog.ts index c05591f2..262bdace 100644 --- a/deno/payloads/v9/auditLog.ts +++ b/deno/payloads/v9/auditLog.ts @@ -10,7 +10,13 @@ import type { AutoModerationRuleEventType, AutoModerationRuleTriggerType, } from './autoModeration.ts'; -import type { APIChannel, APIGuildForumDefaultReactionEmoji, APIGuildForumTag, APIOverwrite } from './channel.ts'; +import type { + APIChannel, + APIGuildForumDefaultReactionEmoji, + APIGuildForumTag, + APIOverwrite, + VideoQualityMode, +} from './channel.ts'; import type { APIGuildIntegration, APIGuildIntegrationType, @@ -422,7 +428,9 @@ export type APIAuditLogChange = | APIAuditLogChangeKeyRateLimitPerUser | APIAuditLogChangeKeyRecurrenceRule | APIAuditLogChangeKeyRegion + | APIAuditLogChangeKeyRTCRegion | APIAuditLogChangeKeyRulesChannelId + | APIAuditLogChangeKeySafetyAlertsChannelId | APIAuditLogChangeKeySoundId | APIAuditLogChangeKeySplashHash | APIAuditLogChangeKeyStatus @@ -439,6 +447,7 @@ export type APIAuditLogChange = | APIAuditLogChangeKeyUses | APIAuditLogChangeKeyVanityURLCode | APIAuditLogChangeKeyVerificationLevel + | APIAuditLogChangeKeyVideoQualityMode | APIAuditLogChangeKeyVolume | APIAuditLogChangeKeyWidgetChannelId | APIAuditLogChangeKeyWidgetEnabled; @@ -488,6 +497,11 @@ export type APIAuditLogChangeKeyOwnerId = APIAuditLogChangeData<'owner_id', Snow */ export type APIAuditLogChangeKeyRegion = APIAuditLogChangeData<'region', string>; +/** + * Returned when a channel's rtc_region is changed + */ +export type APIAuditLogChangeKeyRTCRegion = APIAuditLogChangeData<'rtc_region', string>; + /** * Returned when a guild's preferred_locale is changed */ @@ -528,6 +542,11 @@ export type APIAuditLogChangeKeyMFALevel = APIAuditLogChangeData<'mfa_level', Gu */ export type APIAuditLogChangeKeyVerificationLevel = APIAuditLogChangeData<'verification_level', GuildVerificationLevel>; +/** + * Returned when a channel's video_quality_mode is changed + */ +export type APIAuditLogChangeKeyVideoQualityMode = APIAuditLogChangeData<'video_quality_mode', VideoQualityMode>; + /** * Returned when a guild's explicit_content_filter is changed */ diff --git a/payloads/v10/auditLog.ts b/payloads/v10/auditLog.ts index 2fbf8efd..72b6d01b 100644 --- a/payloads/v10/auditLog.ts +++ b/payloads/v10/auditLog.ts @@ -10,7 +10,13 @@ import type { AutoModerationRuleEventType, AutoModerationRuleTriggerType, } from './autoModeration'; -import type { APIChannel, APIGuildForumDefaultReactionEmoji, APIGuildForumTag, APIOverwrite } from './channel'; +import type { + APIChannel, + APIGuildForumDefaultReactionEmoji, + APIGuildForumTag, + APIOverwrite, + VideoQualityMode, +} from './channel'; import type { APIGuildIntegration, APIGuildIntegrationType, @@ -422,7 +428,9 @@ export type APIAuditLogChange = | APIAuditLogChangeKeyRateLimitPerUser | APIAuditLogChangeKeyRecurrenceRule | APIAuditLogChangeKeyRegion + | APIAuditLogChangeKeyRTCRegion | APIAuditLogChangeKeyRulesChannelId + | APIAuditLogChangeKeySafetyAlertsChannelId | APIAuditLogChangeKeySoundId | APIAuditLogChangeKeySplashHash | APIAuditLogChangeKeyStatus @@ -439,6 +447,7 @@ export type APIAuditLogChange = | APIAuditLogChangeKeyUses | APIAuditLogChangeKeyVanityURLCode | APIAuditLogChangeKeyVerificationLevel + | APIAuditLogChangeKeyVideoQualityMode | APIAuditLogChangeKeyVolume | APIAuditLogChangeKeyWidgetChannelId | APIAuditLogChangeKeyWidgetEnabled; @@ -488,6 +497,11 @@ export type APIAuditLogChangeKeyOwnerId = APIAuditLogChangeData<'owner_id', Snow */ export type APIAuditLogChangeKeyRegion = APIAuditLogChangeData<'region', string>; +/** + * Returned when a channel's rtc_region is changed + */ +export type APIAuditLogChangeKeyRTCRegion = APIAuditLogChangeData<'rtc_region', string>; + /** * Returned when a guild's preferred_locale is changed */ @@ -528,6 +542,11 @@ export type APIAuditLogChangeKeyMFALevel = APIAuditLogChangeData<'mfa_level', Gu */ export type APIAuditLogChangeKeyVerificationLevel = APIAuditLogChangeData<'verification_level', GuildVerificationLevel>; +/** + * Returned when a channel's video_quality_mode is changed + */ +export type APIAuditLogChangeKeyVideoQualityMode = APIAuditLogChangeData<'video_quality_mode', VideoQualityMode>; + /** * Returned when a guild's explicit_content_filter is changed */ diff --git a/payloads/v9/auditLog.ts b/payloads/v9/auditLog.ts index 2fbf8efd..72b6d01b 100644 --- a/payloads/v9/auditLog.ts +++ b/payloads/v9/auditLog.ts @@ -10,7 +10,13 @@ import type { AutoModerationRuleEventType, AutoModerationRuleTriggerType, } from './autoModeration'; -import type { APIChannel, APIGuildForumDefaultReactionEmoji, APIGuildForumTag, APIOverwrite } from './channel'; +import type { + APIChannel, + APIGuildForumDefaultReactionEmoji, + APIGuildForumTag, + APIOverwrite, + VideoQualityMode, +} from './channel'; import type { APIGuildIntegration, APIGuildIntegrationType, @@ -422,7 +428,9 @@ export type APIAuditLogChange = | APIAuditLogChangeKeyRateLimitPerUser | APIAuditLogChangeKeyRecurrenceRule | APIAuditLogChangeKeyRegion + | APIAuditLogChangeKeyRTCRegion | APIAuditLogChangeKeyRulesChannelId + | APIAuditLogChangeKeySafetyAlertsChannelId | APIAuditLogChangeKeySoundId | APIAuditLogChangeKeySplashHash | APIAuditLogChangeKeyStatus @@ -439,6 +447,7 @@ export type APIAuditLogChange = | APIAuditLogChangeKeyUses | APIAuditLogChangeKeyVanityURLCode | APIAuditLogChangeKeyVerificationLevel + | APIAuditLogChangeKeyVideoQualityMode | APIAuditLogChangeKeyVolume | APIAuditLogChangeKeyWidgetChannelId | APIAuditLogChangeKeyWidgetEnabled; @@ -488,6 +497,11 @@ export type APIAuditLogChangeKeyOwnerId = APIAuditLogChangeData<'owner_id', Snow */ export type APIAuditLogChangeKeyRegion = APIAuditLogChangeData<'region', string>; +/** + * Returned when a channel's rtc_region is changed + */ +export type APIAuditLogChangeKeyRTCRegion = APIAuditLogChangeData<'rtc_region', string>; + /** * Returned when a guild's preferred_locale is changed */ @@ -528,6 +542,11 @@ export type APIAuditLogChangeKeyMFALevel = APIAuditLogChangeData<'mfa_level', Gu */ export type APIAuditLogChangeKeyVerificationLevel = APIAuditLogChangeData<'verification_level', GuildVerificationLevel>; +/** + * Returned when a channel's video_quality_mode is changed + */ +export type APIAuditLogChangeKeyVideoQualityMode = APIAuditLogChangeData<'video_quality_mode', VideoQualityMode>; + /** * Returned when a guild's explicit_content_filter is changed */