From 6c0f5cd540c3788341a45b47613eae51dc200f19 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Sun, 29 Mar 2020 18:29:01 +0200 Subject: [PATCH] args.remove --- commands/admin/banword.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/admin/banword.js b/commands/admin/banword.js index cfc361d..1e3de01 100644 --- a/commands/admin/banword.js +++ b/commands/admin/banword.js @@ -39,7 +39,7 @@ class BannedWordsCommand extends Command { args.word = args.word.replace(/[\u0250-\ue007]/g, ''); const bannedWords = await BannedWords.findOne({where: {word: args.word.toLowerCase(), serverID: message.guild.id}}); - if (message.util.parsed.alias == 'unbanword') { + if (message.util.parsed.alias == 'unbanword' || args.remove) { if (args.removeall) { BannedWords.destroy({where: {serverID: message.guild.id}}); return message.channel.send('The banned words have been reset.');