diff options
Diffstat (limited to 'bot/src/commands/quote.js')
| -rw-r--r-- | bot/src/commands/quote.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bot/src/commands/quote.js b/bot/src/commands/quote.js index 79f05de..6d30847 100644 --- a/bot/src/commands/quote.js +++ b/bot/src/commands/quote.js @@ -8,6 +8,7 @@ import { } from 'discord.js'; import { pendingQuote, quote as quoteDB } from '../db/models/quote.js'; import { abEmbedColour } from '../storage/consts.js'; +import { blacklistCheck } from '../storage/functions.js'; // import { setTimeout as wait } from 'node:timers/promises'; // // let setupMessage = 'Welcome to the AleeBot Quote Setup!\n'; @@ -35,6 +36,9 @@ export default { .setDescription('Got a quote? Add it here!')), async execute(interaction) { if (interaction.options.getSubcommand() === 'add') { + const isBlacklisted = await blacklistCheck(interaction); + if (isBlacklisted) return; + const modal = new ModalBuilder() .setCustomId(`newQuote-${interaction.user.id}`) .setTitle('New Quote for AleeBot'); |
