Skip to content

Commit

Permalink
types(AutoModerationActionExecution): Add forum channels as a possibl…
Browse files Browse the repository at this point in the history
…e type in `channel()` (#9623)

types(AutoModerationActionExecution): type forum channels

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
Jiralite and kodiakhq[bot] committed Jun 14, 2023
1 parent 2818d7c commit d64330a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class AutoModerationActionExecution {

/**
* The channel where this action was triggered from.
* @type {?TextBasedChannel}
* @type {?(GuildTextBasedChannel|ForumChannel)}
* @readonly
*/
get channel() {
Expand Down
2 changes: 1 addition & 1 deletion packages/discord.js/typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d64330a

Please sign in to comment.