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
Dictionarycontainingname,valueandname_localizationsas 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
trueif a list of choices were added.