From 1662608835099ee3176d07d67c6a3c69f716f938 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Sun, 30 Mar 2025 17:05:51 -0400 Subject: Fixed issues; Generate bot invite; Added database migrations --- bot/src/events/InteractionCreate.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'bot/src/events/InteractionCreate.js') diff --git a/bot/src/events/InteractionCreate.js b/bot/src/events/InteractionCreate.js index 5143594..976b995 100644 --- a/bot/src/events/InteractionCreate.js +++ b/bot/src/events/InteractionCreate.js @@ -15,7 +15,12 @@ export default { if (!command) return; try { - console.log(`[i] ${interaction.user.username} has executed ${command.data.name} at ${interaction.guild.name}`); + if (interaction.guild) { + console.log(`[i] ${interaction.user.username} has executed ${command.data.name} at ${interaction.guild.name}`); + } else { + console.log(`[i] ${interaction.user.username} has executed ${command.data.name} in DMs`); + } + await Analytics(command, interaction); await command.execute(interaction); } catch (e) { -- cgit v1.2.3