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:
@@ -43,7 +43,7 @@ const generateTaskDescription = async(
|
||||
system: taskSystemPrompt,
|
||||
});
|
||||
const [ firstContent ] = aiResponse.content;
|
||||
return firstContent.type === "text"
|
||||
return firstContent?.type === "text"
|
||||
? firstContent.text
|
||||
: description;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user