SlashCommandBuilder |
SlashCommandBuilder.addOption(SlashCommandOption option) |
Adds an slash command option to the slash command.
|
static SlashCommandBuilder |
SlashCommand.createPrefilledSlashCommandBuilder(SlashCommand slashCommand) |
Create a new prefilled slash command builder from the given slash command.
|
SlashCommandBuilder |
SlashCommandBuilder.setDefaultPermission(Boolean defaultPermission) |
Sets the default permission for the slash command
whether the command is enabled by default when the app is added to a server.
|
SlashCommandBuilder |
SlashCommandBuilder.setDescription(String description) |
Sets the description of the slash command.
|
SlashCommandBuilder |
SlashCommandBuilder.setName(String name) |
Sets the name of the slash command.
|
SlashCommandBuilder |
SlashCommandBuilder.setOptions(List<SlashCommandOption> options) |
Sets the slash commands for the slash command.
|
static SlashCommandBuilder |
SlashCommand.with(String name,
String description) |
Create a new slash command builder with the given name and description.
|
static SlashCommandBuilder |
SlashCommand.with(String name,
String description,
List<SlashCommandOption> options) |
Create a new slash command builder with the given name, description and options.
|
static SlashCommandBuilder |
SlashCommand.with(String name,
String description,
SlashCommandOptionBuilder... options) |
Create a new slash command builder with the given name, description and options.
|