lavaclient / lavadeno

lavadeno is a simple, easy-to-use, and flexible lavalink client built on the Deno Runtime.
Apache License 2.0
12 stars 4 forks source link

Emit some player event when bot gets kicked from voice channel #8

Closed Yaikava closed 3 years ago

Yaikava commented 3 years ago

I did not find any way to detect this via existing player events.

Before the rewrite it was possible to detect this via this code.

// Handle if bot gets kicked from the voice channel
  player.once("closed", async () => {
    await bot.lavadenoManager.destroy(message.guildId.toString());
    await message.send("I have been disconnected from the channel.");
  });

Thanks

viztea commented 3 years ago

Thanks for creating an issue. I need to add the websocket closed event to the lavalink-types repo, then I'll add this event.

Sorry for the inconvenience

Yaikava commented 3 years ago

Thanks for creating an issue. I need to add the websocket closed event to the lavalink-types repo, then I'll add this event.

Sorry for the inconvenience

No problem. :+1:

viztea commented 3 years ago

Added in latest commit 👌🏼