generated from nhcarrigan/template
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:
@@ -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)}`,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user