Uses of Interface
org.javacord.api.interaction.SlashCommandOption
-
Packages that use SlashCommandOption Package Description org.javacord.api.interaction org.javacord.api.interaction.internal -
-
Uses of SlashCommandOption in org.javacord.api.interaction
Methods in org.javacord.api.interaction that return SlashCommandOption Modifier and Type Method Description SlashCommandOptionSlashCommandOptionBuilder. build()Builds the slash command option.static SlashCommandOptionSlashCommandOption. create(SlashCommandOptionType type, String name, String description)Create a new slash command option to be used with an slash command builder.static SlashCommandOptionSlashCommandOption. create(SlashCommandOptionType type, String name, String description, boolean required)Create a new slash command option to be used with an slash command builder.static SlashCommandOptionSlashCommandOption. createWithChoices(SlashCommandOptionType type, String name, String description, boolean required, List<SlashCommandOptionChoice> choices)Create a new slash command option to be used with an slash command builder.static SlashCommandOptionSlashCommandOption. createWithChoices(SlashCommandOptionType type, String name, String description, boolean required, SlashCommandOptionChoiceBuilder... choices)Create a new slash command option to be used with an slash command builder.static SlashCommandOptionSlashCommandOption. createWithOptions(SlashCommandOptionType type, String name, String description, List<SlashCommandOption> options)Create a new subcommand or subcommand group to be used with an slash command builder.static SlashCommandOptionSlashCommandOption. createWithOptions(SlashCommandOptionType type, String name, String description, SlashCommandOptionBuilder... options)Create a new subcommand or subcommand group to be used with an slash command builder.Methods in org.javacord.api.interaction that return types with arguments of type SlashCommandOption Modifier and Type Method Description List<SlashCommandOption>SlashCommand. getOptions()Gets a list with all options (i.e., parameters) for this command.List<SlashCommandOption>SlashCommandOption. getOptions()If this option is a subcommand or subcommand group type, this nested options will be the parameters.Methods in org.javacord.api.interaction with parameters of type SlashCommandOption Modifier and Type Method Description SlashCommandBuilderSlashCommandBuilder. addOption(SlashCommandOption option)Adds an slash command option to the slash command.SlashCommandOptionBuilderSlashCommandOptionBuilder. addOption(SlashCommandOption option)Adds an slash command option to the slash command option.Method parameters in org.javacord.api.interaction with type arguments of type SlashCommandOption Modifier and Type Method Description static SlashCommandOptionSlashCommandOption. createWithOptions(SlashCommandOptionType type, String name, String description, List<SlashCommandOption> options)Create a new subcommand or subcommand group to be used with an slash command builder.SlashCommandBuilderSlashCommandBuilder. setOptions(List<SlashCommandOption> options)Sets the slash commands for the slash command.SlashCommandOptionBuilderSlashCommandOptionBuilder. setOptions(List<SlashCommandOption> options)Sets the slash commands for the slash command option.SlashCommandUpdaterSlashCommandUpdater. setSlashCommandOptions(List<SlashCommandOption> slashCommandOptions)Sets the new slash command options.static SlashCommandBuilderSlashCommand. with(String name, String description, List<SlashCommandOption> options)Create a new slash command builder with the given name, description and options. -
Uses of SlashCommandOption in org.javacord.api.interaction.internal
Methods in org.javacord.api.interaction.internal that return SlashCommandOption Modifier and Type Method Description SlashCommandOptionSlashCommandOptionBuilderDelegate. build()Build the slash command option.Methods in org.javacord.api.interaction.internal with parameters of type SlashCommandOption Modifier and Type Method Description voidSlashCommandBuilderDelegate. addOption(SlashCommandOption option)Adds an slash command option to the slash command.voidSlashCommandOptionBuilderDelegate. addOption(SlashCommandOption option)Adds an slash command option to the slash command option.Method parameters in org.javacord.api.interaction.internal with type arguments of type SlashCommandOption Modifier and Type Method Description voidSlashCommandBuilderDelegate. setOptions(List<SlashCommandOption> options)Sets the slash commands for the slash command.voidSlashCommandOptionBuilderDelegate. setOptions(List<SlashCommandOption> options)Sets the slash commands for the slash command option.voidSlashCommandUpdaterDelegate. setOptions(List<SlashCommandOption> slashCommandOptions)Sets the new slash command options.
-