diff options
| author | Andrew Lee <andrew@alee14.me> | 2025-03-30 17:05:51 -0400 |
|---|---|---|
| committer | Andrew Lee <andrew@alee14.me> | 2025-03-30 17:07:09 -0400 |
| commit | 1662608835099ee3176d07d67c6a3c69f716f938 (patch) | |
| tree | 6a891bdc439c32e0c10369d91e55c9b4e444c65f /bot/src/events | |
| parent | 3c61c156137984cf61d3517d4d9633ca6de072f6 (diff) | |
| download | AleeBot-1662608835099ee3176d07d67c6a3c69f716f938.tar.gz AleeBot-1662608835099ee3176d07d67c6a3c69f716f938.tar.bz2 AleeBot-1662608835099ee3176d07d67c6a3c69f716f938.zip | |
Fixed issues; Generate bot invite; Added database migrations
Diffstat (limited to 'bot/src/events')
| -rw-r--r-- | bot/src/events/InteractionCreate.js | 7 |
1 files changed, 6 insertions, 1 deletions
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) { |
