mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: verbose logging for all commands
This commit is contained in:
1 parent
1c4cb67a6a
commit
78d429808a
5 files changed
+18
-5
No files matched your search
@@ -27,7 +27,7 @@ import { PlayerClanData } from '../types/playerClanData.js';
|
||||
|
||||
export default {
|
||||
inProduction: true,
|
||||
inDevelopment: false,
|
||||
inDevelopment: true,
|
||||
inPublic: true,
|
||||
|
||||
command: new SlashCommandBuilder()
|
||||
|
||||
@@ -146,7 +146,17 @@ export default async function interactionCreate(
|
||||
return;
|
||||
}
|
||||
|
||||
console.log(interaction.toString());
|
||||
const metadata = [
|
||||
`${interaction.user.id} (${interaction.user.username})`,
|
||||
`${interaction.guildId}/${interaction.channelId} (${interaction.guild?.name})`,
|
||||
new Date(),
|
||||
];
|
||||
|
||||
console.log(
|
||||
`${interaction.toString()}\n${metadata
|
||||
.map((item) => ` ${item}`)
|
||||
.join('\n')}`,
|
||||
);
|
||||
await interaction.deferReply();
|
||||
|
||||
try {
|
||||
|
||||
Reference in new issue
Block a user