Interface WebsocketEvents

Internal websocket events.

Hierarchy

  • WebsocketEvents

Events

GATEWAY_PACKET: [packet: AnyPacket]

Emitted when a packet is sent.

GATEWAY_PARSED_PACKET: [type: null | string, data: object]

Emitted when a packet is parsed.

GATEWAY_UNKNOWN_PACKET: [message: string, packet: AnyPacket]

Emitted when a packet isn't recognized.

GATEWAY_WELCOME: [data: APIBotUser]

Emitted when connected to gateway.

GATEWAY_WELCOME_PACKET: [packet: WelcomePacket]

Emitted when connected to gateway.

debug: [message: string | object]

Emitted to debug.

disconnect: [error: Error]

Emitted when disconnected from gateway.

error: [error: Error]

Emitted after getting an error.

exit: [message: string | Error]

Emitted when process exit.