Annotation Interface RequiredPermissions


@ConvertedBy(Converter.class) @Documented @Retention(RUNTIME) @Target({TYPE,METHOD}) public @interface RequiredPermissions
A CommandDoc Annotation that lists required Permissions a bot must have to use a command on a Guild.
Since:
2.0
Author:
Kaidan Gustave
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    The DocConverter for the @RequiredPermissions annotation.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    net.dv8tion.jda.api.Permission[]
    An array of Permissions a bot must have to run the command.
  • Element Details

    • value

      net.dv8tion.jda.api.Permission[] value
      An array of Permissions a bot must have to run the command.
      Returns:
      The array of permissions