Skip to content

Commit

Permalink
feat(AuditLog): add missing keys
Browse files Browse the repository at this point in the history
  • Loading branch information
fiftyy authored Apr 24, 2024
1 parent 1249bc2 commit 1c62c1f
Showing 1 changed file with 27 additions and 2 deletions.
29 changes: 27 additions & 2 deletions deno/payloads/v10/auditLog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -412,7 +412,11 @@ export type APIAuditLogChange =
| APIAuditLogChangeKeyVanityURLCode
| APIAuditLogChangeKeyVerificationLevel
| APIAuditLogChangeKeyWidgetChannelId
| APIAuditLogChangeKeyWidgetEnabled;
| APIAuditLogChangeKeyWidgetEnabled
| APIAuditLogChangeKeyAvailableTags
| APIAuditLogChangeKeyDefaultReactionEmoji
| APIAuditLogChangeKeyFlags
| APIAuditLogChangeKeyDefaultThreadRateLimitPerUser;

/**
* Returned when an entity's name is changed
Expand Down Expand Up @@ -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<K extends string, D> {
key: K;
/**
Expand Down

0 comments on commit 1c62c1f

Please sign in to comment.