diff --git a/typings/index.d.ts b/typings/index.d.ts index 5e1f2974e952..3830032f3959 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -563,7 +563,7 @@ declare module 'discord.js' { export class CommandInteraction extends Interaction { public readonly command: ApplicationCommand | ApplicationCommand<{ guild: GuildResolvable }> | null; - public readonly channel: TextChannel | DMChannel | NewsChannel | PartialDMChannel | null; + public readonly channel: TextChannel | DMChannel | NewsChannel | PartialDMChannel | ThreadChannel | null; public channelID: Snowflake; public commandID: Snowflake; public commandName: string; @@ -1412,11 +1412,11 @@ declare module 'discord.js' { } export class MessageCollector extends Collector { - constructor(channel: TextChannel | DMChannel, options?: MessageCollectorOptions); + constructor(channel: TextChannel | DMChannel | ThreadChannel, options?: MessageCollectorOptions); private _handleChannelDeletion(channel: GuildChannel): void; private _handleGuildDeletion(guild: Guild): void; - public channel: Channel; + public channel: TextChannel | DMChannel | ThreadChannel; public readonly endReason: string | null; public options: MessageCollectorOptions; public received: number; @@ -1426,7 +1426,7 @@ declare module 'discord.js' { } export class MessageComponentInteraction extends Interaction { - public readonly channel: TextChannel | DMChannel | NewsChannel | PartialDMChannel | null; + public readonly channel: TextChannel | DMChannel | NewsChannel | PartialDMChannel | ThreadChannel | null; public readonly component: MessageActionRowComponent | Exclude | null; public componentType: MessageComponentType; public customID: string; @@ -1457,14 +1457,14 @@ declare module 'discord.js' { export class MessageComponentInteractionCollector extends Collector { constructor( - source: Message | TextChannel | NewsChannel | DMChannel, + source: Message | TextChannel | DMChannel | ThreadChannel, options?: MessageComponentInteractionCollectorOptions, ); private _handleMessageDeletion(message: Message): void; private _handleChannelDeletion(channel: GuildChannel): void; private _handleGuildDeletion(guild: Guild): void; - public channel: TextChannel | NewsChannel | DMChannel; + public channel: TextChannel | DMChannel | ThreadChannel; public empty(): void; public readonly endReason: string | null; public message: Message | null; @@ -2595,7 +2595,7 @@ declare module 'discord.js' { } export class MessageManager extends BaseManager { - constructor(channel: TextChannel | DMChannel, iterable?: Iterable); + constructor(channel: TextChannel | DMChannel | ThreadChannel, iterable?: Iterable); public channel: TextBasedChannelFields; public cache: Collection; public crosspost(message: MessageResolvable): Promise;