mirror of
https://github.com/discordjs/discord.js.git
synced 2024-08-20 19:24:43 +12: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:
parent
ad57e88744
commit
c5a42ed5ec
2 changed files with 4 additions and 0 deletions
|
@ -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 };
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue