Skip to content

Commit 1c62c1f

Browse files
authored
feat(AuditLog): add missing keys
1 parent 1249bc2 commit 1c62c1f

File tree

1 file changed

+27
-2
lines changed

1 file changed

+27
-2
lines changed

deno/payloads/v10/auditLog.ts

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import type {
1010
AutoModerationRuleEventType,
1111
AutoModerationRuleTriggerType,
1212
} from './autoModeration.ts';
13-
import type { APIChannel, APIOverwrite } from './channel.ts';
13+
import type { APIChannel, APIGuildForumDefaultReactionEmoji, APIGuildForumTag, APIOverwrite, ChannelFlags } from './channel.ts';
1414
import type {
1515
APIGuildIntegration,
1616
APIGuildIntegrationType,
@@ -412,7 +412,11 @@ export type APIAuditLogChange =
412412
| APIAuditLogChangeKeyVanityURLCode
413413
| APIAuditLogChangeKeyVerificationLevel
414414
| APIAuditLogChangeKeyWidgetChannelId
415-
| APIAuditLogChangeKeyWidgetEnabled;
415+
| APIAuditLogChangeKeyWidgetEnabled
416+
| APIAuditLogChangeKeyAvailableTags
417+
| APIAuditLogChangeKeyDefaultReactionEmoji
418+
| APIAuditLogChangeKeyFlags
419+
| APIAuditLogChangeKeyDefaultThreadRateLimitPerUser;
416420

417421
/**
418422
* Returned when an entity's name is changed
@@ -826,6 +830,27 @@ export type APIAuditLogChangeKeyExemptRoles = AuditLogChangeData<'exempt_roles',
826830
*/
827831
export type APIAuditLogChangeKeyExemptChannels = AuditLogChangeData<'exempt_channels', Snowflake[]>;
828832

833+
/**
834+
* Returned when a guild forum's available tags gets changed
835+
*/
836+
export type APIAuditLogChangeKeyAvailableTags = AuditLogChangeData<'available_tags', APIGuildForumTag[]>
837+
838+
/**
839+
* Returned when a guild forum's default reaction emoji gets changed
840+
*/
841+
export type APIAuditLogChangeKeyDefaultReactionEmoji = AuditLogChangeData<'default_reaction_emoji', APIGuildForumDefaultReactionEmoji>
842+
843+
/**
844+
* Returned when a channel flag gets changed
845+
*/
846+
export type APIAuditLogChangeKeyFlags = AuditLogChangeData<'flags', number>
847+
848+
/**
849+
* Returned when a thread's amount of seconds a user has to wait before sending another message
850+
* is changed
851+
*/
852+
export type APIAuditLogChangeKeyDefaultThreadRateLimitPerUser= AuditLogChangeData<'default_thread_rate_limit_per_user', number>
853+
829854
interface AuditLogChangeData<K extends string, D> {
830855
key: K;
831856
/**

0 commit comments

Comments
 (0)