Edited the audio player

This commit is contained in:
ION606
2022-04-30 20:28:09 -04:00
parent 3ca5abba7b
commit 2209e98a40
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -36,8 +36,9 @@ module.exports = {
message.reply("Please join a voice channel before you try this!"); message.reply("Please join a voice channel before you try this!");
return; return;
} }
//Test 930148609406685227
const channel = bot.channels.cache.get(message.member.voice.channel.id); const channel = bot.channels.cache.get(message.member.voice.channel.id);
console.log(message.member.voice.channel.id);
const connection = joinVoiceChannel({ const connection = joinVoiceChannel({
channelId: channel.id, channelId: channel.id,
guildId: channel.guild.id, guildId: channel.guild.id,
+1 -1
View File
@@ -81,7 +81,7 @@ bot.on('messageCreate', (message) => {
case 'arrow': bot.commands.get('arrow').execute(message, args, Discord); case 'arrow': bot.commands.get('arrow').execute(message, args, Discord);
break; break;
case 'playaudio': bot.commands.get('playaudio').execute(message, args, bot, Discord); case 'audio': bot.commands.get('playaudio').execute(message, args, bot, Discord);
break; break;
case 'quotes': bot.commands.get('quotes').execute(message, args, Discord, Client); case 'quotes': bot.commands.get('quotes').execute(message, args, Discord, Client);