MissingPermissionException

class MissingPermissionException[source]

The JSON representation of MissingPermissionException.

code: Literal['INCORRECT_PERMISSION']

A unique code identifying the kind of error that occurred.

add_note(object, /)

Exception.add_note(note) – add a note to the exception

args
with_traceback(object, /)

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

missing_permissions: Sequence[GlobalPermission | TenantPermission | CoursePermission]

The permissions of which any one would allow the request. It is never empty.

user_id: int | None

The id of the user the check failed for, or None when it did not concern a specific user.

response: Response | None

The response that generated this error, only present if this data was parsed as toplevel exception from a response.

message: str

The user readable message for the exception.

description: str

A more detailed version of the error message.

request_id: str

The id of the request that went wrong. Please include this id when reporting bugs.