Skip to content

Commit ea2b922

Browse files
authored
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
1 parent be8b372 commit ea2b922

File tree

4 files changed

+80
-4
lines changed

4 files changed

+80
-4
lines changed

deno/payloads/v10/auditLog.ts

Lines changed: 20 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deno/payloads/v9/auditLog.ts

Lines changed: 20 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

payloads/v10/auditLog.ts

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,13 @@ import type {
1010
AutoModerationRuleEventType,
1111
AutoModerationRuleTriggerType,
1212
} from './autoModeration';
13-
import type { APIChannel, APIGuildForumDefaultReactionEmoji, APIGuildForumTag, APIOverwrite } from './channel';
13+
import type {
14+
APIChannel,
15+
APIGuildForumDefaultReactionEmoji,
16+
APIGuildForumTag,
17+
APIOverwrite,
18+
VideoQualityMode,
19+
} from './channel';
1420
import type {
1521
APIGuildIntegration,
1622
APIGuildIntegrationType,
@@ -422,7 +428,9 @@ export type APIAuditLogChange =
422428
| APIAuditLogChangeKeyRateLimitPerUser
423429
| APIAuditLogChangeKeyRecurrenceRule
424430
| APIAuditLogChangeKeyRegion
431+
| APIAuditLogChangeKeyRTCRegion
425432
| APIAuditLogChangeKeyRulesChannelId
433+
| APIAuditLogChangeKeySafetyAlertsChannelId
426434
| APIAuditLogChangeKeySoundId
427435
| APIAuditLogChangeKeySplashHash
428436
| APIAuditLogChangeKeyStatus
@@ -439,6 +447,7 @@ export type APIAuditLogChange =
439447
| APIAuditLogChangeKeyUses
440448
| APIAuditLogChangeKeyVanityURLCode
441449
| APIAuditLogChangeKeyVerificationLevel
450+
| APIAuditLogChangeKeyVideoQualityMode
442451
| APIAuditLogChangeKeyVolume
443452
| APIAuditLogChangeKeyWidgetChannelId
444453
| APIAuditLogChangeKeyWidgetEnabled;
@@ -488,6 +497,11 @@ export type APIAuditLogChangeKeyOwnerId = APIAuditLogChangeData<'owner_id', Snow
488497
*/
489498
export type APIAuditLogChangeKeyRegion = APIAuditLogChangeData<'region', string>;
490499

500+
/**
501+
* Returned when a channel's rtc_region is changed
502+
*/
503+
export type APIAuditLogChangeKeyRTCRegion = APIAuditLogChangeData<'rtc_region', string>;
504+
491505
/**
492506
* Returned when a guild's preferred_locale is changed
493507
*/
@@ -528,6 +542,11 @@ export type APIAuditLogChangeKeyMFALevel = APIAuditLogChangeData<'mfa_level', Gu
528542
*/
529543
export type APIAuditLogChangeKeyVerificationLevel = APIAuditLogChangeData<'verification_level', GuildVerificationLevel>;
530544

545+
/**
546+
* Returned when a channel's video_quality_mode is changed
547+
*/
548+
export type APIAuditLogChangeKeyVideoQualityMode = APIAuditLogChangeData<'video_quality_mode', VideoQualityMode>;
549+
531550
/**
532551
* Returned when a guild's explicit_content_filter is changed
533552
*/

payloads/v9/auditLog.ts

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,13 @@ import type {
1010
AutoModerationRuleEventType,
1111
AutoModerationRuleTriggerType,
1212
} from './autoModeration';
13-
import type { APIChannel, APIGuildForumDefaultReactionEmoji, APIGuildForumTag, APIOverwrite } from './channel';
13+
import type {
14+
APIChannel,
15+
APIGuildForumDefaultReactionEmoji,
16+
APIGuildForumTag,
17+
APIOverwrite,
18+
VideoQualityMode,
19+
} from './channel';
1420
import type {
1521
APIGuildIntegration,
1622
APIGuildIntegrationType,
@@ -422,7 +428,9 @@ export type APIAuditLogChange =
422428
| APIAuditLogChangeKeyRateLimitPerUser
423429
| APIAuditLogChangeKeyRecurrenceRule
424430
| APIAuditLogChangeKeyRegion
431+
| APIAuditLogChangeKeyRTCRegion
425432
| APIAuditLogChangeKeyRulesChannelId
433+
| APIAuditLogChangeKeySafetyAlertsChannelId
426434
| APIAuditLogChangeKeySoundId
427435
| APIAuditLogChangeKeySplashHash
428436
| APIAuditLogChangeKeyStatus
@@ -439,6 +447,7 @@ export type APIAuditLogChange =
439447
| APIAuditLogChangeKeyUses
440448
| APIAuditLogChangeKeyVanityURLCode
441449
| APIAuditLogChangeKeyVerificationLevel
450+
| APIAuditLogChangeKeyVideoQualityMode
442451
| APIAuditLogChangeKeyVolume
443452
| APIAuditLogChangeKeyWidgetChannelId
444453
| APIAuditLogChangeKeyWidgetEnabled;
@@ -488,6 +497,11 @@ export type APIAuditLogChangeKeyOwnerId = APIAuditLogChangeData<'owner_id', Snow
488497
*/
489498
export type APIAuditLogChangeKeyRegion = APIAuditLogChangeData<'region', string>;
490499

500+
/**
501+
* Returned when a channel's rtc_region is changed
502+
*/
503+
export type APIAuditLogChangeKeyRTCRegion = APIAuditLogChangeData<'rtc_region', string>;
504+
491505
/**
492506
* Returned when a guild's preferred_locale is changed
493507
*/
@@ -528,6 +542,11 @@ export type APIAuditLogChangeKeyMFALevel = APIAuditLogChangeData<'mfa_level', Gu
528542
*/
529543
export type APIAuditLogChangeKeyVerificationLevel = APIAuditLogChangeData<'verification_level', GuildVerificationLevel>;
530544

545+
/**
546+
* Returned when a channel's video_quality_mode is changed
547+
*/
548+
export type APIAuditLogChangeKeyVideoQualityMode = APIAuditLogChangeData<'video_quality_mode', VideoQualityMode>;
549+
531550
/**
532551
* Returned when a guild's explicit_content_filter is changed
533552
*/

0 commit comments

Comments
 (0)