Annotation Interface Role


@Target(PARAMETER) @Retention(RUNTIME) public @interface Role
The annotated element must be member that have the specified guild role. This constraint will use the TypeAdapters to determine the role.
See Also:
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Returns the guild role the element must 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 guild role the element must have.
      Returns:
      the guild role the element must have.
    • message

      String message
      Returns the error message that will be displayed if the constraint fails.
      Returns:
      the error message
      Default:
      "Member or User is missing at least one role that is required"