import { Gateway } from "https://deno.land/x/harmony@v2.8.0/src/gateway/mod.ts";
Handles Discord Gateway connection.
You should not use this and rather use Client class.
Constructors
new
Gateway(client: Client, shards?: number[])Properties
Methods
private
enqueueIdentify(forceNew?: boolean): voidprivate
onclose(unnamed 0: CloseEvent): Promise<void>private
onerror(event: ErrorEvent): Promise<void>private
onmessage(event: MessageEvent): Promise<void>private
onopen(): voidprivate
sendIdentify(forceNewSession?: boolean): Promise<void>private
sendResume(): Promise<void>_checkGuildsLoaded(timeout?): void
close(code?: number, reason?: string): void
closeGateway(code?: number, reason?: string): void
debug(msg: string): void
destroy(): void
heartbeat(): void
initWebsocket(): void
reconnect(forceNew?: boolean): Promise<void>
requestMembers(guild: string, options?: RequestMembersOptions): string
send(data: GatewayResponse): boolean
sendHeartbeat(): void
sendPresence(data: StatusUpdatePayload): void
updateVoiceState(): void