From ccd230cc2ef93a7ee5e950515490a128b50d5e49 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Sat, 13 May 2017 02:32:39 +0000 Subject: [PATCH] Fix That --- commands/random/soundboard.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/random/soundboard.js b/commands/random/soundboard.js index b073dcc6..a04be5d9 100644 --- a/commands/random/soundboard.js +++ b/commands/random/soundboard.js @@ -27,11 +27,11 @@ module.exports = class SoundboardCommand extends Command { } async run(msg, args) { - if (!msg.channel.permissionsFor(this.client.user).hasPermission('CONNECT')) + if (!msg.channel.permissionsFor(this.client.user).has('CONNECT')) return msg.say('This Command requires the `Connect` Permission.'); - if (!msg.channel.permissionsFor(this.client.user).hasPermission('SPEAK')) + if (!msg.channel.permissionsFor(this.client.user).has('SPEAK')) return msg.say('This Command requires the `Speak` Permission.'); - if (!msg.channel.permissionsFor(this.client.user).hasPermission('ADD_REACTIONS')) + if (!msg.channel.permissionsFor(this.client.user).has('ADD_REACTIONS')) return msg.say('This Command requires the `Add Reactions` Permission.'); const voiceChannel = msg.member.voiceChannel; if (!voiceChannel) return msg.say('Please enter a Voice Channel first.');