ApplicationCommandIntegerOption¶
Inherits: ApplicationCommandChoicesBuilder < ApplicationCommandOptionBuilder < Reference < Object
Description¶
Helper class to build integer options for a slash command.
Properties¶
type | name |
---|---|
int | min_value |
int | max_value |
Methods¶
return type | signature |
---|---|
ApplicationCommandIntegerOption | add_choice ( String name, int value, Dictionary localizations ) |
ApplicationCommandIntegerOption | set_min ( int value ) |
ApplicationCommandIntegerOption | set_max ( int value ) |
Property Descriptions¶
Method Descriptions¶
-
ApplicationCommandIntegerOption ApplicationCommandIntegerOption ( String option_name )
Constructs a new integer option builder.
-
ApplicationCommandIntegerOption add_choice ( String name, int value, Dictionary localizations )
Adds an integer choice.
-
ApplicationCommandIntegerOption set_min ( int value )
Sets the minimum value of the option.
-
ApplicationCommandIntegerOption set_max ( int value )
Sets the maximum value of the option.