Detecting user AFK channel switch

How can I detect a user being moved to an AFK channel by the server? It seems like it doesn't work the same way as if the user were to join the channel themselves
4 Replies
d.js toolkit
d.js toolkit•6mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - 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!
Unknown User
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
d.js docs
d.js docs•6mo ago
:event: (event) Client#voiceStateUpdate @14.15.2 Emitted whenever a member changes voice state - e.g. joins/leaves a channel, mutes/unmutes.
FeroxNotMonday
FeroxNotMonday•6mo ago
if (<VoiceState>.channel.id === <Guild>.afkChannel.id) {
// ...
}
if (<VoiceState>.channel.id === <Guild>.afkChannel.id) {
// ...
}
Want results from more Discord servers?
Add your server