Skip to content

ShoukakuEvents

type ShoukakuEvents: {
close: [string, number, string];
debug: [string, string];
disconnect: [string, number];
error: [string, Error];
raw: [string, unknown];
ready: [string, boolean, boolean];
reconnecting: [string, number, number];
};

Type declaration

NameTypeDescriptionDefined in
close[string, number, string]Emitted when a websocket connection to Lavalink closesshoukaku/src/Shoukaku.ts:131
debug[string, string]Emitted when data useful for debugging is producedshoukaku/src/Shoukaku.ts:116
disconnect[string, number]Emitted when a websocket connection to Lavalink disconnectsshoukaku/src/Shoukaku.ts:136
error[string, Error]Emitted when an error occursshoukaku/src/Shoukaku.ts:121
raw[string, unknown]Emitted when a raw message is received from Lavalinkshoukaku/src/Shoukaku.ts:141
ready[string, boolean, boolean]Emitted when Shoukaku is ready to receive operationsshoukaku/src/Shoukaku.ts:126
reconnecting[string, number, number]Emitted when reconnect tries are occurring and how many tries are leftshoukaku/src/Shoukaku.ts:111

Defined in

shoukaku/src/Shoukaku.ts:106