How do I grab the voice channel the bot is currently connected to?
Heres is the breakdown:
CONTEXT:
I am trying to make a simple if statement, that compares the guild ID of the voice channel from the user, to the guild ID of the bot's current channel.
PROBLEM:
I am incorrectly grabbing the ID of the bots current channel. These are my two commands:
The second one I got off Google, but it just grabs the same value. I'm looking through the docs but I'm misunderstanding something because nothing is working.
QUESTION:
How do I get the ID of the bot's current connected voice channel?
10 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 OPUnknown User•3mo ago
Message Not Public
Sign In & Join Server To View
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
Pastebin
const { Guild, SlashCommandBuilder, Client } = require('discord.js'...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
This was it. I was using the wrong prop when using it in the if statement
Thank you
Please excuse my 4 IQ
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View