refactor: align commands and interaction handler with project style

- Replace forwardToOwner embed approach with getComponentsForNaomi + Components V2
- Extract InteractionCreate handler to src/events/handleInteractionCreate.ts
- Replace deployGlobal.ts script with static commands.json payload
- Fix minor error handling in createTask and onboardMentee
This commit is contained in:
2026-03-03 11:44:20 -08:00
parent 1b40c529f9
commit 94247c2a68
7 changed files with 174 additions and 195 deletions
+3 -1
View File
@@ -92,7 +92,9 @@ export const onboardMentee = async(
content: `✅ Successfully onboarded **${menteeName}**!\nRepository: ${repoUrl}`,
});
} catch (error) {
await logger.log("error", `Failed to onboard mentee: ${String(error)}`);
await logger.error("onboardmentee command", error instanceof Error
? error
: new Error(String(error)));
await interaction.editReply({
content: `❌ Failed to onboard mentee: ${String(error)}`,
});