mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
types: few missing thread channels (#5988)
This commit is contained in:
14
typings/index.d.ts
vendored
14
typings/index.d.ts
vendored
@@ -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<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;
|
||||
@@ -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;
|
||||
@@ -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;
|
||||
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user