1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-11-18 00:31:00 -05:00

Naughty naughty

This commit is contained in:
toast-ts 2024-02-03 10:32:29 +11:00
parent 980ffa5d25
commit 29743d523c

View File

@ -22,7 +22,7 @@ export default class ProhibitedWords {
if (wordExists) return interaction.reply({ephemeral: true, content: `\`${word}\` already exists in the list`}); if (wordExists) return interaction.reply({ephemeral: true, content: `\`${word}\` already exists in the list`});
else { else {
await client.prohibitedWords.insertWord(word); await client.prohibitedWords.insertWord(word);
interaction.reply({ephemeral: true, content: `Successfully added \`${word}\` to the list`}); interaction.reply({ephemeral: true, content: `Successfully added \`${word}\` to the prohibited words list`});
await this.notify(client, { await this.notify(client, {
embeds: [new client.embed() embeds: [new client.embed()
.setColor(client.config.embedColorGreen) .setColor(client.config.embedColorGreen)
@ -37,7 +37,7 @@ export default class ProhibitedWords {
if (!wordExists) return interaction.reply({ephemeral: true, content: `\`${word}\` does not exist in the list`}); if (!wordExists) return interaction.reply({ephemeral: true, content: `\`${word}\` does not exist in the list`});
else { else {
await client.prohibitedWords.removeWord(word); await client.prohibitedWords.removeWord(word);
interaction.reply({ephemeral: true, content: `Successfully removed \`${word}\` from the list`}); interaction.reply({ephemeral: true, content: `Successfully removed \`${word}\` from the prohibited words list`});
await this.notify(client, { await this.notify(client, {
embeds: [new client.embed() embeds: [new client.embed()
.setColor(client.config.embedColorRed) .setColor(client.config.embedColorRed)