mirror of
https://github.com/ION606/selmerBot.git
synced 2026-05-14 21:26:54 +00:00
Edited the audio player
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user