Checking the is bot already joined the voice channel
Hello is has any way to achieve this without using
GuildVoiceStates
intent?
And also i want to know does the JoinVoiceChannel
function creates a new connection even if bot has already joined to specific voice channel?2 Replies
- 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!
- ✅
Marked as resolved by OPis has any way to achieve this without using GuildVoiceStates
intent?
well the GuildVoiceStates
intent is required to join a voice channel, so no
you can however use getVoiceConnection
to check whether a voice connection already exists without access to your bot's VoiceState
i want to know does the JoinVoiceChannel
function creates a new connection even if bot has already joined to specific voice channel?
it reuses the same VoiceConnection
object