Skip to content

Commit c5a42ed

Browse files
jaw0r3kSyjalo
andauthoredMay 7, 2023
feat(GuildAuditLogsEntry): add missing channel property to extra (#9527)
feat(GuildAuditLogsEntry#extra): add missing `channel` property (#9518) Co-authored-by: Synbulat Biishev <syjalo.dev@gmail.com>
1 parent ad57e88 commit c5a42ed

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed
 

‎src/structures/GuildAuditLogs.js

+1
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,7 @@ class GuildAuditLogsEntry {
542542
this.extra = {
543543
autoModerationRuleName: data.options.auto_moderation_rule_name,
544544
autoModerationRuleTriggerType: AutoModerationRuleTriggerTypes[data.options.auto_moderation_rule_trigger_type],
545+
channel: guild.client.channels.cache.get(data.options?.channel_id) ?? { id: data.options?.channel_id },
545546
};
546547
break;
547548
default:

‎typings/index.d.ts

+3
Original file line numberDiff line numberDiff line change
@@ -5312,14 +5312,17 @@ export interface GuildAuditLogsEntryExtraField {
53125312
AUTO_MODERATION_BLOCK_MESSAGE: {
53135313
autoModerationRuleName: string;
53145314
autoModerationRuleTriggerType: AutoModerationRuleTriggerType;
5315+
channel: GuildTextBasedChannel | { id: Snowflake };
53155316
};
53165317
AUTO_MODERATION_FLAG_TO_CHANNEL: {
53175318
autoModerationRuleName: string;
53185319
autoModerationRuleTriggerType: AutoModerationRuleTriggerType;
5320+
channel: GuildTextBasedChannel | { id: Snowflake };
53195321
};
53205322
AUTO_MODERATION_USER_COMMUNICATIONDISABLED: {
53215323
autoModerationRuleName: string;
53225324
autoModerationRuleTriggerType: AutoModerationRuleTriggerType;
5325+
channel: GuildTextBasedChannel | { id: Snowflake };
53235326
};
53245327
}
53255328

0 commit comments

Comments
 (0)