From d64330a1570b3a2047ef959a6bce268372c70e99 Mon Sep 17 00:00:00 2001 From: Jiralite <33201955+Jiralite@users.noreply.github.com> Date: Wed, 14 Jun 2023 19:14:16 +0100 Subject: [PATCH] types(AutoModerationActionExecution): Add forum channels as a possible type in `channel()` (#9623) types(AutoModerationActionExecution): type forum channels Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- .../discord.js/src/structures/AutoModerationActionExecution.js | 2 +- packages/discord.js/typings/index.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/discord.js/src/structures/AutoModerationActionExecution.js b/packages/discord.js/src/structures/AutoModerationActionExecution.js index ca09a7fbf16f..fcbc6170bdd0 100644 --- a/packages/discord.js/src/structures/AutoModerationActionExecution.js +++ b/packages/discord.js/src/structures/AutoModerationActionExecution.js @@ -87,7 +87,7 @@ class AutoModerationActionExecution { /** * The channel where this action was triggered from. - * @type {?TextBasedChannel} + * @type {?(GuildTextBasedChannel|ForumChannel)} * @readonly */ get channel() { diff --git a/packages/discord.js/typings/index.d.ts b/packages/discord.js/typings/index.d.ts index 2c48378b800b..026d487a17ff 100644 --- a/packages/discord.js/typings/index.d.ts +++ b/packages/discord.js/typings/index.d.ts @@ -346,7 +346,7 @@ export class AutoModerationActionExecution { public ruleTriggerType: AutoModerationRuleTriggerType; public get user(): User | null; public userId: Snowflake; - public get channel(): TextBasedChannel | null; + public get channel(): GuildTextBasedChannel | ForumChannel | null; public channelId: Snowflake | null; public get member(): GuildMember | null; public messageId: Snowflake | null;