UNPKG

lilybird

Version:
23 lines 801 B
import type { UpdatePresenceStructure, ReceiveDispatchEvent, DebugFunction } from "../typings/index.js"; interface ManagerOptions { token?: string; intents: number; presence?: UpdatePresenceStructure; } export type DispatchFunction = (data: ReceiveDispatchEvent) => any; export declare class WebSocketManager { #private; readonly resumeInfo: { url: string; id: string; }; constructor(options: ManagerOptions, dispatch?: DispatchFunction, debug?: DebugFunction); init(token: string, dispatch: DispatchFunction): void; close(): void; connect(url?: string): Promise<void>; ping(): Promise<number>; updatePresence(presence: UpdatePresenceStructure): void; get options(): ManagerOptions; } export {}; //# sourceMappingURL=manager.d.ts.map