✨ Bug fixes & update (v3.0.0)
This commit is contained in:
14
commands/music/play.js
Normal file
14
commands/music/play.js
Normal file
@@ -0,0 +1,14 @@
|
||||
module.exports = {
|
||||
name: 'play',
|
||||
aliases: ['p'],
|
||||
category: 'Music',
|
||||
utilisation: '{prefix}play [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 (!args[0]) return message.channel.send(`${client.emotes.error} - Please indicate the title of a song !`);
|
||||
|
||||
client.player.play(message, args.join(" "));
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user