Skip to content

Commit

Permalink
types: few missing thread channels (#5988)
Browse files Browse the repository at this point in the history
  • Loading branch information
monbrey committed Jul 1, 2021
1 parent 0eeb277 commit 941cd86
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions typings/index.d.ts
Expand Up @@ -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;
Expand Down Expand Up @@ -1412,11 +1412,11 @@ declare module 'discord.js' {
}

export class MessageCollector extends Collector<Snowflake, Message> {
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;
Expand All @@ -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<APIMessageComponent, APIActionRowComponent> | null;
public componentType: MessageComponentType;
public customID: string;
Expand Down Expand Up @@ -1457,14 +1457,14 @@ declare module 'discord.js' {

export class MessageComponentInteractionCollector extends Collector<Snowflake, MessageComponentInteraction> {
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;
Expand Down Expand Up @@ -2595,7 +2595,7 @@ declare module 'discord.js' {
}

export class MessageManager extends BaseManager<Snowflake, Message, MessageResolvable> {
constructor(channel: TextChannel | DMChannel, iterable?: Iterable<any>);
constructor(channel: TextChannel | DMChannel | ThreadChannel, iterable?: Iterable<any>);
public channel: TextBasedChannelFields;
public cache: Collection<Snowflake, Message>;
public crosspost(message: MessageResolvable): Promise<Message>;
Expand Down

0 comments on commit 941cd86

Please sign in to comment.