mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
feat(Collector): add idle option (#3746)
This commit is contained in:
8
typings/index.d.ts
vendored
8
typings/index.d.ts
vendored
@@ -362,7 +362,8 @@ declare module 'discord.js' {
|
||||
|
||||
abstract class Collector<K, V> extends EventEmitter {
|
||||
constructor(client: Client, filter: CollectorFilter, options?: CollectorOptions);
|
||||
private _timeout: NodeJS.Timer;
|
||||
private _timeout: NodeJS.Timer | null;
|
||||
private _idletimeout: NodeJS.Timer | null;
|
||||
private _handle(...args: any[]): void;
|
||||
|
||||
public readonly client: Client;
|
||||
@@ -1762,7 +1763,10 @@ declare module 'discord.js' {
|
||||
|
||||
type CollectorHandler<K, V> = { key: K, value: V };
|
||||
type CollectorFilter = (...args: any[]) => boolean;
|
||||
type CollectorOptions = { time?: number };
|
||||
type CollectorOptions = {
|
||||
time?: number;
|
||||
idle?: number;
|
||||
};
|
||||
|
||||
type ColorResolvable = ('DEFAULT'
|
||||
| 'WHITE'
|
||||
|
||||
Reference in New Issue
Block a user