mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 12:03:31 +01:00
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>
This commit is contained in:
@@ -87,7 +87,7 @@ class AutoModerationActionExecution {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* The channel where this action was triggered from.
|
* The channel where this action was triggered from.
|
||||||
* @type {?TextBasedChannel}
|
* @type {?(GuildTextBasedChannel|ForumChannel)}
|
||||||
* @readonly
|
* @readonly
|
||||||
*/
|
*/
|
||||||
get channel() {
|
get channel() {
|
||||||
|
|||||||
2
packages/discord.js/typings/index.d.ts
vendored
2
packages/discord.js/typings/index.d.ts
vendored
@@ -346,7 +346,7 @@ export class AutoModerationActionExecution {
|
|||||||
public ruleTriggerType: AutoModerationRuleTriggerType;
|
public ruleTriggerType: AutoModerationRuleTriggerType;
|
||||||
public get user(): User | null;
|
public get user(): User | null;
|
||||||
public userId: Snowflake;
|
public userId: Snowflake;
|
||||||
public get channel(): TextBasedChannel | null;
|
public get channel(): GuildTextBasedChannel | ForumChannel | null;
|
||||||
public channelId: Snowflake | null;
|
public channelId: Snowflake | null;
|
||||||
public get member(): GuildMember | null;
|
public get member(): GuildMember | null;
|
||||||
public messageId: Snowflake | null;
|
public messageId: Snowflake | null;
|
||||||
|
|||||||
Reference in New Issue
Block a user