mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 11:33:30 +01:00
feat: promisified single interaction collection (#5770)
This commit is contained in:
18
typings/index.d.ts
vendored
18
typings/index.d.ts
vendored
@@ -1231,10 +1231,10 @@ declare module 'discord.js' {
|
||||
public webhookID: Snowflake | null;
|
||||
public flags: Readonly<MessageFlags>;
|
||||
public reference: MessageReference | null;
|
||||
public awaitMessageComponentInteractions(
|
||||
public awaitMessageComponentInteraction(
|
||||
filter: CollectorFilter<[MessageComponentInteraction]>,
|
||||
options?: AwaitMessageComponentInteractionsOptions,
|
||||
): Promise<Collection<Snowflake, MessageComponentInteraction>>;
|
||||
time?: number,
|
||||
): Promise<MessageComponentInteraction>;
|
||||
public awaitReactions(
|
||||
filter: CollectorFilter<[MessageReaction, User]>,
|
||||
options?: AwaitReactionsOptions,
|
||||
@@ -1245,7 +1245,7 @@ declare module 'discord.js' {
|
||||
): ReactionCollector;
|
||||
public createMessageComponentInteractionCollector(
|
||||
filter: CollectorFilter<[MessageComponentInteraction]>,
|
||||
options?: AwaitMessageComponentInteractionsOptions,
|
||||
options?: MessageComponentInteractionCollectorOptions,
|
||||
): MessageComponentInteractionCollector;
|
||||
public delete(): Promise<Message>;
|
||||
public edit(
|
||||
@@ -2503,10 +2503,10 @@ declare module 'discord.js' {
|
||||
readonly lastPinAt: Date | null;
|
||||
typing: boolean;
|
||||
typingCount: number;
|
||||
awaitMessageComponentInteractions(
|
||||
awaitMessageComponentInteraction(
|
||||
filter: CollectorFilter<[MessageComponentInteraction]>,
|
||||
options?: AwaitMessageComponentInteractionsOptions,
|
||||
): Promise<Collection<Snowflake, MessageComponentInteraction>>;
|
||||
time?: number,
|
||||
): Promise<MessageComponentInteraction>;
|
||||
awaitMessages(
|
||||
filter: CollectorFilter<[Message]>,
|
||||
options?: AwaitMessagesOptions,
|
||||
@@ -2729,10 +2729,6 @@ declare module 'discord.js' {
|
||||
new?: any;
|
||||
}
|
||||
|
||||
interface AwaitMessageComponentInteractionsOptions extends MessageComponentInteractionCollectorOptions {
|
||||
errors?: string[];
|
||||
}
|
||||
|
||||
interface AwaitMessagesOptions extends MessageCollectorOptions {
|
||||
errors?: string[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user