Annotation Interface RequirePermissions


@Retention(RUNTIME) @Target(TYPE) public @interface RequirePermissions
Specifies the Discord Permissions that the executing user must possess in the current channel or guild to invoke the annotated command.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    net.dv8tion.jda.api.Permission[]
    An array of Permissions required by the user.
  • Element Details

    • value

      net.dv8tion.jda.api.Permission[] value
      An array of Permissions required by the user.
      Returns:
      The required permissions.