From b756a0820228c25db673a1745506315d5d9a0e86 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Fri, 22 Nov 2019 21:38:51 +0100 Subject: [PATCH] Remove play command as im unsattisfied with it --- commands/utility/{play.js => play} | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) rename commands/utility/{play.js => play} (86%) diff --git a/commands/utility/play.js b/commands/utility/play similarity index 86% rename from commands/utility/play.js rename to commands/utility/play index 063ccaab..cdcf9705 100644 --- a/commands/utility/play.js +++ b/commands/utility/play @@ -6,7 +6,7 @@ class playCommand extends Command { super('play', { aliases: ['play'], category: 'utility', - clientPermissions: ['SEND_MESSAGES', 'SPEAK'], + clientPermissions: ['SEND_MESSAGES', 'SPEAK', 'CONNECT'], args: [ { id: 'ytblink', @@ -26,6 +26,7 @@ class playCommand extends Command { } async exec(message, args) { + if(!message.channel.permissionsFor(this.client.user).has('CONNECT')) return message.channel.send('Im missing the required permissions for this command!, `VOICE_JOIN_CHANNEL`'); const voiceChannel = message.member.voice.channel; // If not in voice channel ask user to join