diff --git a/commands/play.js b/commands/play.js index dba6b25..0c2ab69 100644 --- a/commands/play.js +++ b/commands/play.js @@ -1,10 +1,8 @@ -const emotes = require("../config/emojis.json"); - exports.run = async (client, message, args) => { - if (!message.member.voice.channel) return message.channel.send(`You're not in a voice channel ${emotes.error}`); + 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(`Please indicate the title of a song ${emotes.error}`); + if (!args[0]) return message.channel.send(`${client.emotes.error} - Please indicate the title of a song !`); client.player.play(message, args.join(" "));