feat: verbose logging for all commands

This commit is contained in:
TresAbhi committed 2023-06-17 18:05:04 +00:00
1 parent 1c4cb67a6a
commit 78d429808a
5 files changed
+18 -5

No files matched your search

+1 -1
View File
@@ -27,7 +27,7 @@ import { PlayerClanData } from '../types/playerClanData.js';
export default {
inProduction: true,
inDevelopment: false,
inDevelopment: true,
inPublic: true,
command: new SlashCommandBuilder()
+11 -1
View File
@@ -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 {