Remove play command as im unsattisfied with it

This commit is contained in:
loicbersier 2019-11-22 21:38:51 +01:00
parent 08319201cd
commit b756a08202

View file

@ -6,7 +6,7 @@ class playCommand extends Command {
super('play', { super('play', {
aliases: ['play'], aliases: ['play'],
category: 'utility', category: 'utility',
clientPermissions: ['SEND_MESSAGES', 'SPEAK'], clientPermissions: ['SEND_MESSAGES', 'SPEAK', 'CONNECT'],
args: [ args: [
{ {
id: 'ytblink', id: 'ytblink',
@ -26,6 +26,7 @@ class playCommand extends Command {
} }
async exec(message, args) { 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; const voiceChannel = message.member.voice.channel;
// If not in voice channel ask user to join // If not in voice channel ask user to join