diff --git a/commands/admin/banword.js b/commands/admin/banword.js index cfc361d9..1e3de013 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.');