aboutsummaryrefslogtreecommitdiff
path: root/bot/src/commands/suggest.js
diff options
context:
space:
mode:
authorAndrew Lee <andrew@alee14.me>2025-04-02 02:21:41 -0400
committerAndrew Lee <andrew@alee14.me>2025-04-02 02:21:41 -0400
commit10434adad478d21bbb834a5803125db9f54c9d6c (patch)
treee1159a26948d24c2a065dfd15f71b64970515930 /bot/src/commands/suggest.js
parent657599acccf351c7c9366cec9f648b7496c89bdb (diff)
downloadAleeBot-beta.tar.gz
AleeBot-beta.tar.bz2
AleeBot-beta.zip
Added i18n (basic); Blacklist feature; Put error msg into a filebeta
Diffstat (limited to 'bot/src/commands/suggest.js')
-rw-r--r--bot/src/commands/suggest.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/bot/src/commands/suggest.js b/bot/src/commands/suggest.js
index e841c15..77478b1 100644
--- a/bot/src/commands/suggest.js
+++ b/bot/src/commands/suggest.js
@@ -9,6 +9,7 @@ import {
} from 'discord.js';
import { abEmbedColour, featureSuggestChannel } from '../storage/consts.js';
import { guildSettings } from '../db/models/guild-settings.js';
+import { blacklistCheck } from '../storage/functions.js';
export default {
data: new SlashCommandBuilder()
@@ -24,6 +25,9 @@ export default {
.setDescription('Suggest something for this server.')),
async execute(interaction) {
if (interaction.options.getSubcommand() === 'feature') {
+ const isBlacklisted = await blacklistCheck(interaction);
+ if (isBlacklisted) return;
+
const modal = new ModalBuilder()
.setCustomId(`suggest-${interaction.user.id}`)
.setTitle('Suggest a feature for AleeBot');