Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
jaw0r3k and Syjalo committed May 7, 2023
1 parent ad57e88 commit c5a42ed
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
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
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 c5a42ed

Please sign in to comment.