#How to check if someone joined a voice channel

14 messages · Page 1 of 1 (latest)

thorny loomBOT
#
  • What's your exact discord.js npm list discord.js and node node -v version?
  • Not a discord.js issue? Check out #1081585952654360687.
  • 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!
jovial nacelle
#

That event is unrelated to /voice though, it‘s a general event of discord.js mainlib. And you‘d need to check that oldState.channelId is null but newState.channelId isn’t. Then they joined

#

Also do you have GuildVoiceStates intents

#

Not if you did both checks I said. For mute or deafen it wouldn’t have oldState.channelId as null

#

That code has no relation to what I told you to domeguFace

#

Also how does checking if a boolean is either true or false help at all? Those if conditions would always apply

#

Show your whole voiceStateUpdate event code

jovial nacelle
#

voiceOld and voice would be what I called oldState and newState in my example

#

Literally if(!voiceOld.channelId && voice.channelId)

#

Show that something similar then. Because up until now your code did nothing like that

#

Show your code. Code is universal

low cove
#

Why are his messages deleted?

magic horizon
#

I believe before they deleted their messages, they figured out some form of solution
some people like to delete all their messages when they're done despite it being semi-annoying for everyone else

low cove
#

💀