Annotation Interface JDACommand.Module

Enclosing class:
JDACommand

@Target(TYPE) @Retention(RUNTIME) public static @interface JDACommand.Module
A helper annotation to assist in location of methods that will generate into Commands.

Method names provided to this annotation must have one or two parameters. Either a single parameter CommandEvent, or a double parameter CommandEvent and Command.
The arrangement of the double parameters is not important, so methods may do it as (CommandEvent, Command) or (Command, CommandEvent).

See Also:
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The names of any methods that will be targeted when compiling this object using the AnnotatedModuleCompiler.
  • Element Details

    • value

      String[] value
      The names of any methods that will be targeted when compiling this object using the AnnotatedModuleCompiler.

      This is not the same thing as the name of the commands! These are the names of the methods representing execution of the commands!

      Returns:
      An array of method names used when creating commands.