Annotation Interface SlashCommandArg


@Target(METHOD) @Retention(RUNTIME) public @interface SlashCommandArg
a slash command argument, that can be used as a sub-element of the @SlashCommand annotation
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    a short description of the option and what its for
    a name to classify which option is which
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    net.dv8tion.jda.api.interactions.commands.OptionType
    what data type the option will be (string, int,...) default is string
  • Element Details

    • optionType

      net.dv8tion.jda.api.interactions.commands.OptionType optionType
      what 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 name
      a name to classify which option is which
      Returns:
      a name to classify which option is which
    • description

      String description
      a short description of the option and what its for
      Returns:
      a short description of the option and what its for