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, java.lang.String name, java.lang.String description)Create a new slash command option to be used with a slash command builder.static SlashCommandOptionSlashCommandOption. create(SlashCommandOptionType type, java.lang.String name, java.lang.String description, boolean required)Create a new slash command option to be used with a slash command builder.static SlashCommandOptionSlashCommandOption. createAttachmentOption(java.lang.String name, java.lang.String description, boolean required)Create a newSlashCommandOptionType.ATTACHMENTslash command option to be used with a slash command builder.static SlashCommandOptionSlashCommandOption. createBooleanOption(java.lang.String name, java.lang.String description, boolean required)Create a newSlashCommandOptionType.BOOLEANslash command option to be used with a slash command builder.static SlashCommandOptionSlashCommandOption. createChannelOption(java.lang.String name, java.lang.String description, boolean required, java.util.Collection<ChannelType> channelTypes)Create a new slash command option to be used with a slash command builder.static SlashCommandOptionSlashCommandOption. createDecimalOption(java.lang.String name, java.lang.String description, boolean required)Create a newSlashCommandOptionType.DECIMALslash command option to be used with a slash command builder.static SlashCommandOptionSlashCommandOption. createDecimalOption(java.lang.String name, java.lang.String description, boolean required, boolean autocomplete)Create a newSlashCommandOptionType.DECIMALslash command option to be used with a slash command builder.static SlashCommandOptionSlashCommandOption. createDecimalOption(java.lang.String name, java.lang.String description, boolean required, double minValue, double maxValue)Create a newSlashCommandOptionType.DECIMALslash command option to be used with a slash command builder.static SlashCommandOptionSlashCommandOption. createLongOption(java.lang.String name, java.lang.String description, boolean required)Create a newSlashCommandOptionType.LONGslash command option to be used with a slash command builder.static SlashCommandOptionSlashCommandOption. createLongOption(java.lang.String name, java.lang.String description, boolean required, boolean autocomplete)Create a newSlashCommandOptionType.LONGslash command option to be used with a slash command builder.static SlashCommandOptionSlashCommandOption. createLongOption(java.lang.String name, java.lang.String description, boolean required, long minValue, long maxValue)Create a newSlashCommandOptionType.LONGslash command option to be used with a slash command builder.static SlashCommandOptionSlashCommandOption. createMentionableOption(java.lang.String name, java.lang.String description, boolean required)Create a newSlashCommandOptionType.MENTIONABLEslash command option to be used with a slash command builder.static SlashCommandOptionSlashCommandOption. createRoleOption(java.lang.String name, java.lang.String description, boolean required)Create a newSlashCommandOptionType.ROLEslash command option to be used with a slash command builder.static SlashCommandOptionSlashCommandOption. createStringOption(java.lang.String name, java.lang.String description, boolean required)Create a newSlashCommandOptionType.STRINGslash command option to be used with a slash command builder.static SlashCommandOptionSlashCommandOption. createStringOption(java.lang.String name, java.lang.String description, boolean required, boolean autocomplete)Create a newSlashCommandOptionType.STRINGslash command option to be used with a slash command builder.static SlashCommandOptionSlashCommandOption. createStringOption(java.lang.String name, java.lang.String description, boolean required, long minLength, long maxLength)Create a newSlashCommandOptionType.STRINGslash command option to be used with a slash command builder.static SlashCommandOptionSlashCommandOption. createSubcommand(java.lang.String name, java.lang.String description)Create a new subcommand option to be used with a slash command builder.static SlashCommandOptionSlashCommandOption. createSubcommand(java.lang.String name, java.lang.String description, java.util.List<SlashCommandOption> options)Create a new subcommand option with options to be used with a slash command builder.static SlashCommandOptionSlashCommandOption. createSubcommandGroup(java.lang.String name, java.lang.String description, java.util.List<SlashCommandOption> options)Create a new subcommand group option to be used with a slash command builder.static SlashCommandOptionSlashCommandOption. createUserOption(java.lang.String name, java.lang.String description, boolean required)Create a newSlashCommandOptionType.USERslash command option to be used with a slash command builder.static SlashCommandOptionSlashCommandOption. createWithChoices(SlashCommandOptionType type, java.lang.String name, java.lang.String description, boolean required, java.util.List<SlashCommandOptionChoice> choices)Create a new slash command option to be used with a slash command builder.static SlashCommandOptionSlashCommandOption. createWithChoices(SlashCommandOptionType type, java.lang.String name, java.lang.String description, boolean required, SlashCommandOptionChoiceBuilder... choices)Create a new slash command option to be used with a slash command builder.static SlashCommandOptionSlashCommandOption. createWithOptions(SlashCommandOptionType type, java.lang.String name, java.lang.String description, java.util.List<SlashCommandOption> options)Create a new subcommand or subcommand group to be used with a slash command builder.static SlashCommandOptionSlashCommandOption. createWithOptions(SlashCommandOptionType type, java.lang.String name, java.lang.String description, SlashCommandOptionBuilder... options)Create a new subcommand or subcommand group to be used with a slash command builder.Methods in org.javacord.api.interaction that return types with arguments of type SlashCommandOption Modifier and Type Method Description java.util.List<SlashCommandOption>SlashCommand. getOptions()Gets all options (i.e., parameters) for this command.java.util.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 a slash command option to the slash command.SlashCommandOptionBuilderSlashCommandOptionBuilder. addOption(SlashCommandOption option)Adds a 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. createSubcommand(java.lang.String name, java.lang.String description, java.util.List<SlashCommandOption> options)Create a new subcommand option with options to be used with a slash command builder.static SlashCommandOptionSlashCommandOption. createSubcommandGroup(java.lang.String name, java.lang.String description, java.util.List<SlashCommandOption> options)Create a new subcommand group option to be used with a slash command builder.static SlashCommandOptionSlashCommandOption. createWithOptions(SlashCommandOptionType type, java.lang.String name, java.lang.String description, java.util.List<SlashCommandOption> options)Create a new subcommand or subcommand group to be used with a slash command builder.SlashCommandBuilderSlashCommandBuilder. setOptions(java.util.List<SlashCommandOption> options)Sets the slash commands for the slash command.SlashCommandOptionBuilderSlashCommandOptionBuilder. setOptions(java.util.List<SlashCommandOption> options)Sets the slash commands for the slash command option.SlashCommandUpdaterSlashCommandUpdater. setSlashCommandOptions(java.util.List<SlashCommandOption> slashCommandOptions)Sets the new slash command options.static SlashCommandBuilderSlashCommand. with(java.lang.String name, java.lang.String description, java.util.List<SlashCommandOption> options)Create a new slash command builder with the given name, description and options.static SlashCommandBuilderSlashCommand. withRequiredPermissions(java.lang.String name, java.lang.String description, java.util.List<SlashCommandOption> options, java.util.EnumSet<PermissionType> requiredPermissions)Create a new slash command builder with the given name, description and options.static SlashCommandBuilderSlashCommand. withRequiredPermissions(java.lang.String name, java.lang.String description, java.util.List<SlashCommandOption> options, PermissionType... requiredPermissions)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 a slash command option to the slash command.voidSlashCommandOptionBuilderDelegate. addOption(SlashCommandOption option)Adds a 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(java.util.List<SlashCommandOption> options)Sets the slash commands for the slash command.voidSlashCommandOptionBuilderDelegate. setOptions(java.util.List<SlashCommandOption> options)Sets the slash commands for the slash command option.voidSlashCommandUpdaterDelegate. setOptions(java.util.List<SlashCommandOption> slashCommandOptions)Sets the new slash command options.
-