mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2025-02-23 05:19:42 +11:00
Workaround for removing a word that doesnt exist
This commit is contained in:
parent
965c7aedf1
commit
cebec987ca
@ -15,8 +15,8 @@ export default {
|
|||||||
interaction.reply(`Successfully added \`${word}\` to the list.`)
|
interaction.reply(`Successfully added \`${word}\` to the list.`)
|
||||||
break;
|
break;
|
||||||
case 'remove':
|
case 'remove':
|
||||||
if (client.bannedWords._content.includes(!word)) return interaction.reply({content: `\`${word}\` doesn't exist on the list.`, ephemeral: true});
|
if (client.bannedWords._content.includes(word) == false) return interaction.reply({content: `\`${word}\` doesn't exist on the list.`, ephemeral: true});
|
||||||
client.bannedWords.removeData(word, 1, 0).forceSave();
|
client.bannedWords.removeData(word, 0, 0).forceSave();
|
||||||
interaction.reply(`Successfully removed \`${word}\` from the list.`)
|
interaction.reply(`Successfully removed \`${word}\` from the list.`)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user