Annotation Interface NotPerm


@Target(PARAMETER) @Retention(RUNTIME) public @interface NotPerm
The annotated element must be a user or member that doesn't have the specified discord permission.
See Also:
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Returns the discord permission(s) the element must not have.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Returns the error message that will be displayed if the constraint fails.
  • Element Details

    • value

      String[] value
      Returns the discord permission(s) the element must not have.
      Returns:
      the discord permission(s) the element must not have.
    • message

      String message
      Returns the error message that will be displayed if the constraint fails.
      Returns:
      the error message
      Default:
      "Member or User has at least one permission that isn't allowed"