Type Alias ShoukakuEvents

ShoukakuEvents: {
    close: [name: string, code: number, reason: string];
    debug: [name: string, info: string];
    disconnect: [name: string, count: number];
    error: [name: string, error: Error];
    raw: [name: string, json: unknown];
    ready: [name: string, lavalinkResume: boolean, libraryResume: boolean];
    reconnecting: [name: string, reconnectsLeft: number, reconnectInterval: number];
}

Type declaration

  • close: [name: string, code: number, reason: string]

    Emitted when a websocket connection to Lavalink closes

  • debug: [name: string, info: string]

    Emitted when data useful for debugging is produced

  • disconnect: [name: string, count: number]

    Emitted when a websocket connection to Lavalink disconnects

  • error: [name: string, error: Error]

    Emitted when an error occurs

  • raw: [name: string, json: unknown]

    Emitted when a raw message is received from Lavalink

  • ready: [name: string, lavalinkResume: boolean, libraryResume: boolean]

    Emitted when Shoukaku is ready to receive operations

  • reconnecting: [name: string, reconnectsLeft: number, reconnectInterval: number]

    Emitted when reconnect tries are occurring and how many tries are left