From 1c62c1fabfca345b3bc0f51aedbc018b42f94e84 Mon Sep 17 00:00:00 2001 From: Fifty Date: Wed, 24 Apr 2024 03:24:26 +0200 Subject: [PATCH] feat(AuditLog): add missing keys --- deno/payloads/v10/auditLog.ts | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/deno/payloads/v10/auditLog.ts b/deno/payloads/v10/auditLog.ts index f66ce6f2e..8982d88ee 100644 --- a/deno/payloads/v10/auditLog.ts +++ b/deno/payloads/v10/auditLog.ts @@ -10,7 +10,7 @@ import type { AutoModerationRuleEventType, AutoModerationRuleTriggerType, } from './autoModeration.ts'; -import type { APIChannel, APIOverwrite } from './channel.ts'; +import type { APIChannel, APIGuildForumDefaultReactionEmoji, APIGuildForumTag, APIOverwrite, ChannelFlags } from './channel.ts'; import type { APIGuildIntegration, APIGuildIntegrationType, @@ -412,7 +412,11 @@ export type APIAuditLogChange = | APIAuditLogChangeKeyVanityURLCode | APIAuditLogChangeKeyVerificationLevel | APIAuditLogChangeKeyWidgetChannelId - | APIAuditLogChangeKeyWidgetEnabled; + | APIAuditLogChangeKeyWidgetEnabled + | APIAuditLogChangeKeyAvailableTags + | APIAuditLogChangeKeyDefaultReactionEmoji + | APIAuditLogChangeKeyFlags + | APIAuditLogChangeKeyDefaultThreadRateLimitPerUser; /** * Returned when an entity's name is changed @@ -826,6 +830,27 @@ export type APIAuditLogChangeKeyExemptRoles = AuditLogChangeData<'exempt_roles', */ export type APIAuditLogChangeKeyExemptChannels = AuditLogChangeData<'exempt_channels', Snowflake[]>; +/** + * Returned when a guild forum's available tags gets changed + */ +export type APIAuditLogChangeKeyAvailableTags = AuditLogChangeData<'available_tags', APIGuildForumTag[]> + +/** + * Returned when a guild forum's default reaction emoji gets changed + */ +export type APIAuditLogChangeKeyDefaultReactionEmoji = AuditLogChangeData<'default_reaction_emoji', APIGuildForumDefaultReactionEmoji> + +/** + * Returned when a channel flag gets changed + */ +export type APIAuditLogChangeKeyFlags = AuditLogChangeData<'flags', number> + +/** + * Returned when a thread's amount of seconds a user has to wait before sending another message + * is changed + */ +export type APIAuditLogChangeKeyDefaultThreadRateLimitPerUser= AuditLogChangeData<'default_thread_rate_limit_per_user', number> + interface AuditLogChangeData { key: K; /**