From 2209e98a408f4717ae9d20af592d047fe47c50b3 Mon Sep 17 00:00:00 2001 From: ION606 Date: Sat, 30 Apr 2022 20:28:09 -0400 Subject: [PATCH] Edited the audio player --- commands/playAudio.js | 3 ++- main.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/commands/playAudio.js b/commands/playAudio.js index 52421e8..1a38ef1 100644 --- a/commands/playAudio.js +++ b/commands/playAudio.js @@ -36,8 +36,9 @@ module.exports = { message.reply("Please join a voice channel before you try this!"); return; } + //Test 930148609406685227 const channel = bot.channels.cache.get(message.member.voice.channel.id); - + console.log(message.member.voice.channel.id); const connection = joinVoiceChannel({ channelId: channel.id, guildId: channel.guild.id, diff --git a/main.js b/main.js index 1b9174c..d578a39 100644 --- a/main.js +++ b/main.js @@ -81,7 +81,7 @@ bot.on('messageCreate', (message) => { case 'arrow': bot.commands.get('arrow').execute(message, args, Discord); break; - case 'playaudio': bot.commands.get('playaudio').execute(message, args, bot, Discord); + case 'audio': bot.commands.get('playaudio').execute(message, args, bot, Discord); break; case 'quotes': bot.commands.get('quotes').execute(message, args, Discord, Client);