aboutsummaryrefslogtreecommitdiff
path: root/bot/src/commands/suggest.js
diff options
context:
space:
mode:
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.' });