ApplicationCommandBuilder¶
Description¶
Helper class to construct application commands data.
Properties¶
type | name |
---|---|
String | name |
String | description |
Array | options |
int | type |
Methods¶
Property Descriptions¶
-
String name
Name application command.
-
String description
Description of application command.
-
Array options
If building a slash command (chat input command), this contains command options.
-
int type
Type of application command.
Method Descriptions¶
-
ApplicationCommandBuilder ApplicationCommandBuilder ( String command_name )
Constructs a builder for
command_name
.
-
ApplicationCommandBuilder add_option ( ApplicationCommandOptionBuilder option )
Adds an option to a slash command.
-
ApplicationCommandSubCommandGroup add_subcommand_group ( String group_name )
Adds a sub-command group.
-
ApplicationCommandSubCommand add_subcommand ( String subcommand )
Adds a subcommand.
-
ApplicationCommandStringOption add_string_option ( String option_name )
Adds a string option.
-
ApplicationCommandIntegerOption add_integer_option ( String option_name )
Adds an integer option.
-
ApplicationCommandBoolOption add_boolean_option ( String option_name )
Adds a bollean option.
-
ApplicationCommandUserOption add_user_option ( String option_name )
Adds a user option.
-
ApplicationCommandChannelOption add_channel_option ( String option_name )
Adds channel option.
-
ApplicationCommandRoleOption add_role_option ( String option_name )
Adds a role option.
-
ApplicationCommandMentionableOption add_mentionable_option ( String option_name )
Adds a mentionable option.
-
ApplicationCommandNumberOption add_number_option ( String option_name )
Adds a number option.
-
ApplicationCommandAttachmentOption add_attachment_option ( String option_name )
Adds an attachment option.
-
ApplicationCommandBuilder with_description ( String command_description )
Sets the command description.
-
ApplicationCommandBuilder of_type ( int command_type )
Sets command's type.
-
ApplicationCommandBuilder as_chat_input ( )
Sets the command's type to slash command.
-
ApplicationCommandBuilder as_user_command ( )
Sets the command's type to user command.
-
ApplicationCommandBuilder as_message_command ( )
Sets the command's type to message command.
-
ApplicationCommandSubCommandGroup subcommand_group_builder ( String group_name )
Creates a new sub-comand group builder
-
ApplicationCommandSubCommand subcommand_builder ( String subcommand )
Creates a new sub-command builder.
-
ApplicationCommandStringOption string_option_builder ( String option_name )
Creates a new string builder.
-
ApplicationCommandIntegerOption integer_option_builder ( String option_name )
Creates a new integer builder.
-
ApplicationCommandBoolOption boolean_option_builder ( String option_name )
Creates a new boolean builder.
-
ApplicationCommandUserOption user_option_builder ( String option_name )
Creates a new user builder.
-
ApplicationCommandChannelOption channel_option_builder ( String option_name )
Creates a new channel builder.
-
ApplicationCommandRoleOption role_option_builder ( String option_name )
Creates a new role builder.
-
ApplicationCommandMentionableOption mentionable_option_builder ( String option_name )
Creates a new mentuinable builder.
-
ApplicationCommandNumberOption number_option_builder ( String option_name )
Creates a new number builder.
-
ApplicationCommandAttachmentOption attachment_option_builder ( String option_name )
Creates a new attachment builder.
-
Dictionary build ( )
Builds the commands data.