aboutsummaryrefslogtreecommitdiff
path: root/bot/src/commands/suggest.js
diff options
context:
space:
mode:
authorAndrew Lee <andrew@alee14.me>2025-03-08 17:23:34 -0500
committerAndrew Lee <andrew@alee14.me>2025-03-08 17:23:34 -0500
commit48a576ab5605ec3ec9272809668b8d7ce91c477e (patch)
tree7780c94dd6a39c5b5beae9edfc568e6669b88967 /bot/src/commands/suggest.js
parent52f8826e526f0c0aadb86c3e29975aef4dc1ab85 (diff)
downloadAleeBot-48a576ab5605ec3ec9272809668b8d7ce91c477e.tar.gz
AleeBot-48a576ab5605ec3ec9272809668b8d7ce91c477e.tar.bz2
AleeBot-48a576ab5605ec3ec9272809668b8d7ce91c477e.zip
Put LLM output on text file; Some fixes in logging; New command
Diffstat (limited to 'bot/src/commands/suggest.js')
-rw-r--r--bot/src/commands/suggest.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/bot/src/commands/suggest.js b/bot/src/commands/suggest.js
index 7bb91e2..b8fe68a 100644
--- a/bot/src/commands/suggest.js
+++ b/bot/src/commands/suggest.js
@@ -65,6 +65,7 @@ export default {
}
if (interaction.options.getSubcommand() === 'guild') {
+ if (!interaction.guild) return await interaction.reply({ content: 'This command can only be run in a guild.' });
const guildSetting = await guildSettings.findOne({ where: { guildID: interaction.guild.id } });
if (!guildSetting || !guildSetting.suggestionsChannelID) return await interaction.reply({ content: 'This server did not configure to have suggestions enabled.' });