Adding the ability to join whatever vc the user is in

This commit is contained in:
ION606
2022-04-30 19:36:07 -04:00
parent 1f7b84252f
commit edfb34b72c
+4 -1
View File
@@ -31,7 +31,10 @@ module.exports = {
https://github.com/porridgewithraisins/jam-bot#known-bugs)
const stream = await ytdl(url, { filter: 'audioonly' });
*/
const channel = bot.channels.cache.get("930148609406685227");
// const channel = bot.channels.cache.get("930148609406685227");
const channel = message.member.guild.voice.channel;
if (!channel) { message.reply("Please join a voice channel before you try this!"); }
const connection = joinVoiceChannel({
channelId: channel.id,
guildId: channel.guild.id,