mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-03 22:15:37 +00:00
fix: Fix logger for handlers not including executionId
This commit is contained in:
1 parent
9ed14f0b8f
commit
0db7bb0cf3
4 files changed
+29
-26
No files matched your search
@@ -1,13 +1,14 @@
|
||||
import { AutocompleteInteraction } from 'discord.js';
|
||||
import loggerModule from '../services/logger';
|
||||
|
||||
const logger = loggerModule.child({
|
||||
source: 'interactionCutocompleteHandler.ts',
|
||||
module: 'handler',
|
||||
name: 'interactionAutocompleteHandler'
|
||||
});
|
||||
|
||||
export const handleAutocomplete = async (interaction: AutocompleteInteraction, executionId: string) => {
|
||||
const logger = loggerModule.child({
|
||||
source: 'interactionCutocompleteHandler.ts',
|
||||
module: 'handler',
|
||||
name: 'interactionAutocompleteHandler',
|
||||
executionId: executionId
|
||||
});
|
||||
|
||||
const autocompleteModule = await import(`../interactions/autocomplete/${interaction.commandName}.js`);
|
||||
const { default: autocomplete } = autocompleteModule;
|
||||
|
||||
|
||||
Reference in new issue
Block a user