ApplicationCommandChoicesBuilder¶
Inherits: ApplicationCommandOptionBuilder < Reference < Object
Inherited By: ApplicationCommandIntegerOption, ApplicationCommandNumberOption, ApplicationCommandStringOption
Description¶
Abstract builder for application command option choices.
Properties¶
type | name |
---|---|
Array | choices |
bool | autocomplete |
Methods¶
return type | signature |
---|---|
ApplicationCommandChoicesBuilder | set_autocomplete ( bool value ) |
Property Descriptions¶
-
Array choices
List of choices stored in
Dictionary
containingname
,value
andname_localizations
as keys.
-
bool autocomplete
Whether autocomplete is enabled on this option.
Method Descriptions¶
-
ApplicationCommandChoicesBuilder set_autocomplete ( bool value )
Whether to enable autocomplete on this option. Can not be
true
if a list of choices were added.