Seeing if my bot disconnected with voiceStateUpdate
How through this listener can I check to see if my bot was in the voice channel prior to disconnecting (so I can do things after I know my bot was disconnected from a channel) 🤔
I've tried checking the oldState channelId but it always appears to be null. Am I doing something wrong? I'm wondering if my understanding of oldState vs newState is incorrect. Any help is greatly appreciated.
3 Replies
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Documentation suggestion for @dzlandis:
VoiceState#member
The member that this voice state belongs to

This could maybe work