From 48a576ab5605ec3ec9272809668b8d7ce91c477e Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Sat, 8 Mar 2025 17:23:34 -0500 Subject: Put LLM output on text file; Some fixes in logging; New command --- bot/src/commands/suggest.js | 1 + 1 file changed, 1 insertion(+) (limited to 'bot/src/commands/suggest.js') 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.' }); -- cgit v1.2.3