class MembersSetPermissions2Error(UserSelectorError): (source)
This class acts as a tagged union. Only one of the ``is_*`` methods will return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. :ivar team.MembersSetPermissions2Error.last_admin: Cannot remove the admin setting of the last admin. :ivar team.MembersSetPermissions2Error.user_not_in_team: The user is not a member of the team. :ivar team.MembersSetPermissions2Error.cannot_set_permissions: Cannot remove/grant permissions. This can happen if the team member is suspended. :ivar team.MembersSetPermissions2Error.role_not_found: No matching role found. At least one of the provided new_roles does not exist on this team.
Method | is |
Check if the union tag is ``cannot_set_permissions``. |
Method | is |
Check if the union tag is ``last_admin``. |
Method | is |
Check if the union tag is ``other``. |
Method | is |
Check if the union tag is ``role_not_found``. |
Method | is |
Check if the union tag is ``user_not_in_team``. |
Class Variable | cannot |
Undocumented |
Class Variable | last |
Undocumented |
Class Variable | other |
Undocumented |
Class Variable | role |
Undocumented |
Class Variable | user |
Undocumented |
Method | _process |
Undocumented |
Class Variable | _catch |
Undocumented |
Inherited from UserSelectorError
:
Method | is |
Check if the union tag is ``user_not_found``. |
Class Variable | user |
Undocumented |