mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 11:03:30 +01:00
refactor: remove timer utilities from Client (#6113)
This commit is contained in:
9
typings/index.d.ts
vendored
9
typings/index.d.ts
vendored
@@ -165,22 +165,13 @@ export class Base {
|
||||
|
||||
export class BaseClient extends EventEmitter {
|
||||
public constructor(options?: ClientOptions | WebhookClientOptions);
|
||||
private _timeouts: Set<NodeJS.Timeout>;
|
||||
private _intervals: Set<NodeJS.Timeout>;
|
||||
private _immediates: Set<NodeJS.Immediate>;
|
||||
private readonly api: unknown;
|
||||
private rest: unknown;
|
||||
private decrementMaxListeners(): void;
|
||||
private incrementMaxListeners(): void;
|
||||
|
||||
public options: ClientOptions | WebhookClientOptions;
|
||||
public clearInterval(interval: NodeJS.Timeout): void;
|
||||
public clearTimeout(timeout: NodeJS.Timeout): void;
|
||||
public clearImmediate(timeout: NodeJS.Immediate): void;
|
||||
public destroy(): void;
|
||||
public setInterval<T extends any[]>(fn: (...args: T) => Awaited<void>, delay: number, ...args: T): NodeJS.Timeout;
|
||||
public setTimeout<T extends any[]>(fn: (...args: T) => Awaited<void>, delay: number, ...args: T): NodeJS.Timeout;
|
||||
public setImmediate<T extends any[]>(fn: (...args: T) => Awaited<void>, ...args: T): NodeJS.Immediate;
|
||||
public toJSON(...props: Record<string, boolean | string>[]): unknown;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user