ApplicationCommandOptionBuilder¶
Inherited By: ApplicationCommandAttachmentOption, ApplicationCommandBoolOption, ApplicationCommandChannelOption, ApplicationCommandChoicesBuilder, ApplicationCommandMentionableOption, ApplicationCommandRoleOption, ApplicationCommandSubCommand, ApplicationCommandSubCommandGroup, ApplicationCommandUserOption
Description¶
Abstract command option builder.
Properties¶
| type | name |
|---|---|
| int | type |
| String | name |
| String | description |
| bool | required |
Methods¶
| return type | signature |
|---|---|
| ApplicationCommandOptionBuilder | with_description ( String option_description ) |
| ApplicationCommandOptionBuilder | is_required ( bool value ) |
Property Descriptions¶
-
int type
Type of option.
-
String name
Name of option.
-
String description
Description of option.
-
bool required
Whether the option is reuired.
Method Descriptions¶
-
ApplicationCommandOptionBuilder ApplicationCommandOptionBuilder ( String option_name )
Constructs a new option builder.
-
ApplicationCommandOptionBuilder with_description ( String option_description )
Sets the options description.
-
ApplicationCommandOptionBuilder is_required ( bool value )
Whether the option should be required.