Tomato6966 / lavalink-client

Easy, flexible and feature-rich lavalink@v4 Client. Both for Beginners and Proficients.
https://tomato6966.github.io/lavalink-client/
MIT License
61 stars 22 forks source link

player voice empty v2.4.0 #75

Closed orfox32 closed 1 month ago

orfox32 commented 2 months ago

when someone leaves the channel the event playerVoiceStart, End and Cancel will trigger and leave the channel even though there is a people in the channel

Tomato6966 commented 2 months ago

Thanks for reporting that, I will check it out and fix it, i think i know the issue maybe

Tomato6966 commented 1 month ago

I will remove the feature again, i now know again why i didn't supported in initially

However i will add playerVoiceLeave and playerVoiceJoin events, so you can build smt like that yourself easily

Tomato6966 commented 1 month ago

I removed the playerVoiceEmpty feature, and added the requested events for easier handling in your applications - playerVoiceEmptyStart ➡️ (player, timeoutMs) => {} Triggered when the voice empty handler started (the timeout) Removed again because of memory overhall and not wanting to handle voice states

- playerVoiceEmptyEnd ➡️ (player) => {} Triggered when the voice empty handler finished (successfully) and thus destroyed the player Removed again because of memory overhall and not wanting to handle voice states

- playerVoiceEmptyCancel ➡️ (player, userId) => {} Triggered when the voice empty handler cancelled (e.g. when a user rejoined) Removed again because of memory overhall and not wanting to handle voice states