Detect Move

How to detect if a member moved from a voice to another i tried using:
if(oldState.channelId !== null && newState.channelId !== null) {}
if(oldState.channelId !== null && newState.channelId !== null) {}
but if someone selfmute or selfdeaf them selfs it will count as a move
2 Replies
d.js toolkit
d.js toolkit3w ago
- What are your intents? GuildVoiceStates is required to receive voice data! - Show what dependencies you are using -- generateDependencyReport() is exported from @discordjs/voice. - Try looking at common examples: https://github.com/discordjs/voice-examples. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by OP
M7MD
M7MDOP2w ago
i will try that

Did you find this page helpful?