how to know if the bot is in the vc?

a
13 Replies
d.js toolkit
d.js toolkit3mo 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!
pat
pat3mo ago
get the bot's guildmember and check if voice channel is null you should be more descriptive though because there is probably a better way to do what you are doing like if you are checking and you need to get the voiceconnection object that's possible too
KokuraNobuto
KokuraNobutoOP3mo ago
any docs or example code for that?
pat
pat3mo ago
yes
d.js docs
d.js docs3mo ago
:function: getVoiceConnection @0.17.0 Finds a voice connection with the given guild id and group. Defaults to the 'default' group.
KokuraNobuto
KokuraNobutoOP3mo ago
when im checking it says that the bot is already in the vc even its not
pat
pat3mo ago
¯\_(ツ)_/¯
KokuraNobuto
KokuraNobutoOP3mo ago
??
pat
pat3mo ago
refer to the message posted by djs toolkit
KokuraNobuto
KokuraNobutoOP3mo ago
i did not working
pat
pat3mo ago
then consider following the advice in the message
KokuraNobuto
KokuraNobutoOP3mo ago
wym
treble/luna
treble/luna3mo ago
* Show your code, read the tag
Want results from more Discord servers?
Add your server