diff --git a/src/structures/GuildAuditLogs.js b/src/structures/GuildAuditLogs.js index 8092aa7..16114c8 100644 --- a/src/structures/GuildAuditLogs.js +++ b/src/structures/GuildAuditLogs.js @@ -546,6 +546,7 @@ class GuildAuditLogsEntry { this.extra = { autoModerationRuleName: data.options.auto_moderation_rule_name, autoModerationRuleTriggerType: AutoModerationRuleTriggerTypes[data.options.auto_moderation_rule_trigger_type], + channel: guild.client.channels.cache.get(data.options?.channel_id) ?? { id: data.options?.channel_id }, }; break; diff --git a/typings/index.d.ts b/typings/index.d.ts index e47b86d..fd656ed 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -6215,14 +6215,17 @@ export interface GuildAuditLogsEntryExtraField { AUTO_MODERATION_BLOCK_MESSAGE: { autoModerationRuleName: string; autoModerationRuleTriggerType: AutoModerationRuleTriggerType; + channel: GuildTextBasedChannel | { id: Snowflake }; }; AUTO_MODERATION_FLAG_TO_CHANNEL: { autoModerationRuleName: string; autoModerationRuleTriggerType: AutoModerationRuleTriggerType; + channel: GuildTextBasedChannel | { id: Snowflake }; }; AUTO_MODERATION_USER_COMMUNICATIONDISABLED: { autoModerationRuleName: string; autoModerationRuleTriggerType: AutoModerationRuleTriggerType; + channel: GuildTextBasedChannel | { id: Snowflake }; }; }