How can I know when a user has disconnected from a specific voice channel

Havent found anything on the docs
4 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
duck
duck2y ago
listen to the voiceStateUpdate event oldState.channelId will exist and newState.channelId will not exist when they disconnect
d.js docs
d.js docs2y ago
event (event) Client#voiceStateUpdate Emitted whenever a member changes voice state - e.g. joins/leaves a channel, mutes/unmutes.
Gui
GuiOP2y ago
thanks
Want results from more Discord servers?
Add your server