Interface PermissionOverride


  • public interface PermissionOverride
    Represents the specific Member or Role permission overrides that can be set for channels.
    • Method Detail

      • getAllowedRaw

        long getAllowedRaw()
        This is the raw binary representation (as a base 10 long) of the permissions allowed by this override.
        The long relates to the offsets used by each Permission.
        Returns:
        Never-negative long containing the binary representation of the allowed permissions of this override.
      • getInheritRaw

        long getInheritRaw()
        This is the raw binary representation (as a base 10 long) of the permissions not affected by this override.
        The long relates to the offsets used by each Permission.
        Returns:
        Never-negative long containing the binary representation of the unaffected permissions of this override.
      • getDeniedRaw

        long getDeniedRaw()
        This is the raw binary representation (as a base 10 long) of the permissions denied by this override.
        The long relates to the offsets used by each Permission.
        Returns:
        Never-negative long containing the binary representation of the denied permissions of this override.
      • getAllowed

        java.util.List<Permission> getAllowed()
        An unmodifiable list of all Permissions that are specifically allowed by this override.
        Returns:
        Possibly-empty unmodifiable list of allowed Permissions.
      • getInherit

        java.util.List<Permission> getInherit()
        An unmodifiable list of all Permission that are unaffected by this override.
        Returns:
        Possibly-empty unmodifiable list of unaffected Permissions.
      • getDenied

        java.util.List<Permission> getDenied()
        An unmodifiable list of all Permissions that are denied by this override.
        Returns:
        Possibly-empty unmodifiable list of denied Permissions.
      • getRole

        Role getRole()
        If this PermissionOverride is an override dealing with a Role, then this method will return the related Role.
        Otherwise, this method returns null. Basically: if isRoleOverride() returns false, this returns null.
        Returns:
        Possibly-null related Role.
      • isMemberOverride

        boolean isMemberOverride()
        Used to determine if this PermissionOverride relates to a specific Member.
        Returns:
        True if this override is a user override.
      • isRoleOverride

        boolean isRoleOverride()
        Used to determine if this PermissionOverride relates to a specific Role.
        Returns:
        True if this override is a role override.