Skip to content

Commit

Permalink
feat(GuildAuditLogsEntry#extra): add missing channel property (disc…
Browse files Browse the repository at this point in the history
…ordjs#9518)

Co-authored-by: Synbulat Biishev <syjalo.dev@gmail.com>
  • Loading branch information
jaw0r3k and Syjalo committed May 6, 2023
1 parent ad57e88 commit 5a35cf6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/structures/GuildAuditLogs.js
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,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;
default:
Expand Down
3 changes: 3 additions & 0 deletions typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5312,14 +5312,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 };
};
}

Expand Down

0 comments on commit 5a35cf6

Please sign in to comment.