Skip to content

Commit d64330a

Browse files
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>
1 parent 2818d7c commit d64330a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/discord.js/src/structures/AutoModerationActionExecution.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class AutoModerationActionExecution {
8787

8888
/**
8989
* The channel where this action was triggered from.
90-
* @type {?TextBasedChannel}
90+
* @type {?(GuildTextBasedChannel|ForumChannel)}
9191
* @readonly
9292
*/
9393
get channel() {

packages/discord.js/typings/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ export class AutoModerationActionExecution {
346346
public ruleTriggerType: AutoModerationRuleTriggerType;
347347
public get user(): User | null;
348348
public userId: Snowflake;
349-
public get channel(): TextBasedChannel | null;
349+
public get channel(): GuildTextBasedChannel | ForumChannel | null;
350350
public channelId: Snowflake | null;
351351
public get member(): GuildMember | null;
352352
public messageId: Snowflake | null;

0 commit comments

Comments
 (0)