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