mirror of
https://github.com/ION606/selmerBot.git
synced 2026-05-15 05:36: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!");
|
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,
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user