Annotation Interface SlashCommandArg
a slash command argument, that can be used as a sub-element of the @SlashCommand annotation
-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptiona short description of the option and what its fora name to classify which option is which -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionnet.dv8tion.jda.api.interactions.commands.OptionTypewhat data type the option will be (string, int,...) default is string
-
Element Details
-
optionType
net.dv8tion.jda.api.interactions.commands.OptionType optionTypewhat data type the option will be (string, int,...) default is string- Returns:
- what data type the option will be (string, int,...) default is string
- Default:
STRING
-
name
String namea name to classify which option is which- Returns:
- a name to classify which option is which
-
description
String descriptiona short description of the option and what its for- Returns:
- a short description of the option and what its for
-