1if(!message.member.voice.channel) return message.channel.send("Please connect to a voice channel!"); //If you are not in the voice channel, then return a message
2message.member.voice.channel.join(); //Join the voice channel
1const VCchannelID = ('id');
2const VCchannel = guild.channels.cache.get(VCchannelID);
3VCchannel.join();