Home > @johndavisdev/discord-emcee > promptInline
Prompt a Discord user information via a MessageComponent.
Signature:
declare function promptInline<TShape extends sb.MCRawShape = sb.MCRawShape, Output extends ObjectOutput<TShape> = ObjectOutput<TShape>>(schema: sb.MCSchema<TShape>, uiOptions: InlineMessagePromptOptions, interaction: ChatInputCommandInteraction): Promise<Output>;
Parameter | Type | Description |
---|---|---|
schema | sb.MCSchema<TShape> | the schema for the data you’re trying to get from the user |
uiOptions | InlineMessagePromptOptions | rendering options |
interaction | ChatInputCommandInteraction | the Discord interaction object |
Returns:
Promise<Output>
a value staisfying the schema (as a Promise)