added react app

This commit is contained in:
2026-01-08 17:15:28 +05:30
parent 66af870aa9
commit e6f94c3e71
50 changed files with 1260 additions and 1374 deletions

View File

@@ -1,5 +1,5 @@
import { ButtonInteraction, StringSelectMenuInteraction, ModalSubmitInteraction, MessageFlags } from "discord.js";
import { logger } from "@lib/logger";
import { UserError } from "@lib/errors";
import { createErrorEmbed } from "@lib/embeds";
@@ -28,7 +28,7 @@ export class ComponentInteractionHandler {
return;
}
} else {
logger.error(`Handler method ${route.method} not found in module`);
console.error(`Handler method ${route.method} not found in module`);
}
}
}
@@ -52,7 +52,7 @@ export class ComponentInteractionHandler {
// Log system errors (non-user errors) for debugging
if (!isUserError) {
logger.error(`Error in ${handlerName}:`, error);
console.error(`Error in ${handlerName}:`, error);
}
const errorEmbed = createErrorEmbed(errorMessage);
@@ -72,7 +72,7 @@ export class ComponentInteractionHandler {
}
} catch (replyError) {
// If we can't send a reply, log it
logger.error(`Failed to send error response in ${handlerName}:`, replyError);
console.error(`Failed to send error response in ${handlerName}:`, replyError);
}
}
}