From 3df29b9558300502dbc0582b5f3b3603f8fb7a0e Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Fri, 13 Mar 2020 23:04:37 -0400 Subject: [PATCH] Should always be true in DM --- commands/text-edit/mocking.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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();