mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
feat(GuildAuditLogsEntry#extra): add missing channel property (#9518)
* feat(GuildAuditLogsEntry#extra): add missing `channel` property * types(GuildAuditLogsEntryExtraField): update --------- Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
This commit is contained in:
@@ -238,6 +238,7 @@ class GuildAuditLogsEntry {
|
||||
this.extra = {
|
||||
autoModerationRuleName: data.options.auto_moderation_rule_name,
|
||||
autoModerationRuleTriggerType: data.options.auto_moderation_rule_trigger_type,
|
||||
channel: guild.client.channels.cache.get(data.options?.channel_id) ?? { id: data.options?.channel_id },
|
||||
};
|
||||
break;
|
||||
|
||||
|
||||
3
packages/discord.js/typings/index.d.ts
vendored
3
packages/discord.js/typings/index.d.ts
vendored
@@ -5340,14 +5340,17 @@ export interface GuildAuditLogsEntryExtraField {
|
||||
[AuditLogEvent.AutoModerationBlockMessage]: {
|
||||
autoModerationRuleName: string;
|
||||
autoModerationRuleTriggerType: AuditLogRuleTriggerType;
|
||||
channel: GuildTextBasedChannel | { id: Snowflake };
|
||||
};
|
||||
[AuditLogEvent.AutoModerationFlagToChannel]: {
|
||||
autoModerationRuleName: string;
|
||||
autoModerationRuleTriggerType: AuditLogRuleTriggerType;
|
||||
channel: GuildTextBasedChannel | { id: Snowflake };
|
||||
};
|
||||
[AuditLogEvent.AutoModerationUserCommunicationDisabled]: {
|
||||
autoModerationRuleName: string;
|
||||
autoModerationRuleTriggerType: AuditLogRuleTriggerType;
|
||||
channel: GuildTextBasedChannel | { id: Snowflake };
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user