Estoy tratando de leer la entrada del usuario y usarla fuera de la función. ¿Cómo puedo hacer esto? He intentado usar las declaraciones return y let .
Código:
Indicaciones.ts
export async function botNameValue() { const botResp = await prompts({ type: 'text', name: 'botName', message: 'Enter Bot Name' }); return botResp; }Prompt se está ejecutando de esta manera:
export async function Prompter() { await botNameValue() await TokenValue() await GuildIDValue() await SelectionValue() }