Update (v2.0.1)

This commit is contained in:
Zerio
2020-11-26 22:12:55 +01:00
committed by GitHub
parent de65bc786b
commit fbbaa55352

View File

@@ -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(" "));