InteractionInputBuilder
Handle
interface InteractionInputBuilder { withChoiceOptions(choices: InteractionChoiceOption[]): InteractionInputBuilder; withDynamicLoading(callback: (arg: InteractionInputLoadContext) => Promise<void>, options?: DynamicLoadingOptions): InteractionInputBuilder; withValue(value: string): InteractionInputBuilder;}Methods
method
withChoiceOptionsSets the choice options for the input.
withChoiceOptions(choices: InteractionChoiceOption[]): InteractionInputBuilderParameters
choicesInteractionChoiceOption[]Returns
InteractionInputBuildermethod
withDynamicLoadingAttaches a callback that dynamically loads or updates the input after the prompt starts.
withDynamicLoading(callback: (arg: InteractionInputLoadContext) => Promise<void>, options?: DynamicLoadingOptions): InteractionInputBuilderParameters
callback(arg: InteractionInputLoadContext) => Promise<void>optionsDynamicLoadingOptionsoptionalReturns
InteractionInputBuildermethod
withValueSets the value of the input.
withValue(value: string): InteractionInputBuilderParameters
valuestringReturns
InteractionInputBuilder