UNPKG

@evolvejs/core

Version:

An advanced Discord API wrapper with TS and JS support

24 lines (23 loc) 769 B
import { EvolveSocket } from "./Websocket"; import { Payload } from "../../Interfaces/Interfaces"; import { VoiceGateway } from "./Voice/VoiceGateway"; import { VoiceState } from "../../Structures/Guild/VoiceState"; export declare class Gateway { data: string; ws: EvolveSocket; launchedShards: Set<number>; voice: VoiceGateway; voiceStateUpdate: VoiceState; voiceServerUpdate: Payload; shard: number; lastPingTimeStamp: number; init(data: string, ws: EvolveSocket): Promise<void>; private _spawn; destroy(): void; private _debug; reconnect(): void; sendVoiceStateUpdate(guildID: string, channelID: string, options?: { self_deaf: boolean; self_mute: boolean; }, initialize?: boolean): void; }