InteractionService.CreateChoiceInput
Method
type InteractionService interface { // ... omitted for brevity CreateChoiceInput( name string, options ...*CreateChoiceInputOptions, ) InteractionInputBuilder}Signature
method
CreateChoiceInput Creates a choice input that selects from a list of options.
CreateChoiceInput( name string, options ...*CreateChoiceInputOptions,) InteractionInputBuilderParameters
namestringThe name of the input.options...*CreateChoiceInputOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*CreateChoiceInputOptions argument.
Choices[]*InteractionChoiceOption The available choices, in display order. Each option pairs a submitted value with a display label.Options*CreateInteractionInputOptions Optional configuration for the input.Returns
InteractionInputBuilder Returns a handle; failures surface later via Err().
Defined on
This method is defined on the following type: