mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 03:23:29 +01:00
refactor(awaitMessageComponentInteraction): use options object for lib consistency (#5852)
This commit is contained in:
8
typings/index.d.ts
vendored
8
typings/index.d.ts
vendored
@@ -1189,7 +1189,7 @@ declare module 'discord.js' {
|
||||
public reference: MessageReference | null;
|
||||
public awaitMessageComponentInteraction(
|
||||
filter: CollectorFilter<[MessageComponentInteraction]>,
|
||||
time?: number,
|
||||
options?: AwaitMessageComponentInteractionOptions,
|
||||
): Promise<MessageComponentInteraction>;
|
||||
public awaitReactions(
|
||||
filter: CollectorFilter<[MessageReaction, User]>,
|
||||
@@ -2373,7 +2373,7 @@ declare module 'discord.js' {
|
||||
typingCount: number;
|
||||
awaitMessageComponentInteraction(
|
||||
filter: CollectorFilter<[MessageComponentInteraction]>,
|
||||
time?: number,
|
||||
options?: AwaitMessageComponentInteractionOptions,
|
||||
): Promise<MessageComponentInteraction>;
|
||||
awaitMessages(
|
||||
filter: CollectorFilter<[Message]>,
|
||||
@@ -2581,6 +2581,10 @@ declare module 'discord.js' {
|
||||
new?: any;
|
||||
}
|
||||
|
||||
interface AwaitMessageComponentInteractionOptions {
|
||||
time?: number;
|
||||
}
|
||||
|
||||
interface AwaitMessagesOptions extends MessageCollectorOptions {
|
||||
errors?: string[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user