Skip to content

PlayerEvents

type PlayerEvents: {
closed: [WebSocketClosedEvent];
end: [TrackEndEvent];
exception: [TrackExceptionEvent];
resumed: [Player];
start: [TrackStartEvent];
stuck: [TrackStuckEvent];
update: [PlayerUpdate];
};

Type declaration

NameTypeDescriptionDefined in
closed[WebSocketClosedEvent]Emitted when the current websocket connection is closedshoukaku/src/guild/Player.ts:147
end[TrackEndEvent]Emitted when the current playing track endsshoukaku/src/guild/Player.ts:137
exception[TrackExceptionEvent]Emitted when there is an error caused by the current playing trackshoukaku/src/guild/Player.ts:157
resumed[Player]Emitted when the library manages to resume the playershoukaku/src/guild/Player.ts:162
start[TrackStartEvent]Emitted when a new track startsshoukaku/src/guild/Player.ts:152
stuck[TrackStuckEvent]Emitted when the current playing track gets stuck due to an errorshoukaku/src/guild/Player.ts:142
update[PlayerUpdate]Emitted when a playerUpdate even is received from Lavalinkshoukaku/src/guild/Player.ts:167

Defined in

shoukaku/src/guild/Player.ts:132