InteractionInputBuilder
Handle
interface InteractionInputBuilder { releaseFiles(): void; withChoiceOptions(choices: InteractionChoiceOption[]): InteractionInputBuilder; withDynamicLoading(callback: (arg: InteractionInputLoadContext) => Promise<void>, options?: DynamicLoadingOptions): InteractionInputBuilder; withValue(value: string): InteractionInputBuilder;}Methods
method
withChoiceOptions Sets the choice options for the input.
withChoiceOptions(choices: InteractionChoiceOption[]): InteractionInputBuilderParameters
choicesInteractionChoiceOption[] The available choices, in display order. Each option pairs a submitted value with a display label.Returns
InteractionInputBuilder method
withDynamicLoading Attaches 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> The callback invoked to load the input. Use the supplied context to read other inputs and update this input.optionsDynamicLoadingOptions optionalOptional configuration that controls when the callback runs.Returns
InteractionInputBuilder method
withValue Sets the value of the input.
withValue(value: string): InteractionInputBuilderParameters
valuestringThe value to assign.Returns
InteractionInputBuilder