suavel.
suavel.
DIAdiscord.js - Imagine an app
Created by suavel. on 9/24/2024 in #djs-questions
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:
const voiceChannel = interaction.member.voice.channel;
const currentChannel = interaction.guild.members.me.voice;
const voiceChannel = interaction.member.voice.channel;
const currentChannel = interaction.guild.members.me.voice;
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?
16 replies