Bug fixes & update (v5.0.0)

This commit is contained in:
Zerio
2020-12-27 01:18:00 +01:00
parent 3221ffece1
commit 887ed4dfbb
10 changed files with 49 additions and 17 deletions

16
commands/music/search.js Normal file
View File

@@ -0,0 +1,16 @@
module.exports = {
name: 'search',
aliases: ['sr'],
category: 'Music',
utilisation: '{prefix}search [name/URL]',
execute(client, message, args) {
if (!message.member.voice.channel) return message.channel.send(`${client.emotes.error} - You're not in a voice channel !`);
if (message.guild.me.voice.channel && message.member.voice.channel.id !== message.guild.me.voice.channel.id) return message.channel.send(`${client.emotes.error} - You are not in the same voice channel !`);
if (!args[0]) return message.channel.send(`${client.emotes.error} - Please indicate the title of a song !`);
client.player.play(message, args.join(" "));
},
};