My code:
// not very relevant stuff
const {
SlashCommandBuilder
} = require('@discordjs/builders');
const {
MessageEmbed
} = require('discord.js');
const tip = require('../../tips/randomtip')
const fs = require('fs')
{
const status = require('./status')
if(status.inUsed = true){
status.inUsed = false
fs.writeFileSync( './commands/music/status.json', JSON.stringify(status,null,2))
}
}
// very relevant stuff
module.exports = {
data: new SlashCommandBuilder()
.setName('join')
.setDescription('Join the voice channel you are in'),
async execute(interaction) {
const voice = interaction.member.voice
// console.log(voice)
console.log(voice.channel)
},
};
Problem is voice.channel remains the same (I didn’t check if they are exactly the same, but the channel name and channel is are the same, cuz that what matters)
I’m using discord.js v13 latest version so don’t even question me