mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
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>
This commit is contained in:
@@ -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:
|
||||
|
||||
3
typings/index.d.ts
vendored
3
typings/index.d.ts
vendored
@@ -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 };
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user