refactor: migrate bot handlers to centralized logger

This commit is contained in:
syntaxbullet
2026-01-14 17:58:28 +01:00
parent 54944283a3
commit 1e20a5a7a0
3 changed files with 10 additions and 7 deletions

View File

@@ -1,5 +1,6 @@
import { AutocompleteInteraction } from "discord.js";
import { AuroraClient } from "@/lib/BotClient";
import { logger } from "@shared/lib/logger";
/**
@@ -16,7 +17,7 @@ export class AutocompleteHandler {
try {
await command.autocomplete(interaction);
} catch (error) {
console.error(`Error handling autocomplete for ${interaction.commandName}:`, error);
logger.error("bot", `Error handling autocomplete for ${interaction.commandName}`, error);
}
}
}