fix error

This commit is contained in:
JonnyBro 2021-12-26 12:57:03 +05:00
parent a45840803b
commit 9fe12594cb

View file

@ -27,7 +27,12 @@ class Play extends Command {
const perms = voice.permissionsFor(this.client.user); const perms = voice.permissionsFor(this.client.user);
if (!perms.has("CONNECT") || !perms.has("SPEAK")) return message.error("music/play:VOICE_CHANNEL_CONNECT"); if (!perms.has("CONNECT") || !perms.has("SPEAK")) return message.error("music/play:VOICE_CHANNEL_CONNECT");
try {
await this.client.player.play(message, args.join(" ")); await this.client.player.play(message, args.join(" "));
} catch (e) {
message.error("music/play:ERR_OCCURRED", { error: e });
console.error(e);
}
} }
}; };