From 2068122e11faa1cc5a8570ce05e6b364d1bd509a Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Sun, 1 Oct 2017 07:25:46 +0000 Subject: [PATCH] Beep --- commands/text-edit/say.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/text-edit/say.js b/commands/text-edit/say.js index 79935e5b..1949ba1b 100644 --- a/commands/text-edit/say.js +++ b/commands/text-edit/say.js @@ -8,6 +8,8 @@ module.exports = class SayCommand extends Command { group: 'text-edit', memberName: 'say', description: 'Make XiaoBot say what you wish.', + guildOnly: true, + clientPermissions: ['MANAGE_MESSAGES', 'READ_MESSAGE_HISTORY'], args: [ { key: 'text', @@ -19,9 +21,7 @@ module.exports = class SayCommand extends Command { } async run(msg, { text }) { - if (msg.channel.type === 'text' && msg.channel.permissionsFor(this.client.user).has('MANAGE_MESSAGES')) { - await msg.delete(); - } + await msg.delete(); return msg.say(text); } };