Effect-TS / effect

An ecosystem of tools to build robust applications in TypeScript
https://effect.website
MIT License
7.74k stars 246 forks source link

From Discord: Running Prompts Inside a Command with Arguments in Effect Typescript #3991

Closed effect-bot closed 6 days ago

effect-bot commented 6 days ago

Summary

The conversation is about using prompts within commands in the Effect TypeScript library, specifically in the context of Discord development. There are two main participants, @marminge and @maxwellbrown:

  1. @marminge initially asks for examples of running prompts inside a "normal" command with arguments. They mention only finding examples with prompts or none at all but quickly retracts their need, indicating they found a solution.

  2. @maxwellbrown responds, clarifying that Command.prompt is used for integrating prompts into commands but doesn't take arguments or options. Instead, prompts can be yielded directly, which works because prompts are essentially Effects.

  3. @marminge expresses confusion about the prompt description not displaying as expected. They anticipated the description to appear below the prompt's title, perhaps in a muted color.

  4. @maxwellbrown acknowledges that the multi-select feature is new and promises to investigate the description display issue later.

Key Takeaways:

Discord thread

https://discord.com/channels/795981131316985866/1309880136685977632