diff --git a/commands/text-edit/mocking.js b/commands/text-edit/mocking.js index 86a7d48b..98343e07 100644 --- a/commands/text-edit/mocking.js +++ b/commands/text-edit/mocking.js @@ -23,7 +23,8 @@ module.exports = class MockingCommand extends Command { run(msg, { text }) { const canEmoji = msg.channel.type === 'text' - && msg.channel.permissionsFor(this.client.user).has('USE_EXTERNAL_EMOJIS'); + ? msg.channel.permissionsFor(this.client.user).has('USE_EXTERNAL_EMOJIS') + : true; const letters = text.split(''); for (let i = 0; i < letters.length; i += Math.floor(Math.random() * 4)) { letters[i] = letters[i].toUpperCase();