DisabledSettingException

class DisabledSettingException[source]

Exception raised when a required setting is not enabled.

disabled_setting: Option

The setting that was disabled.

add_note()

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

args
with_traceback()

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

missing_permissions: Sequence[GlobalPermission | CoursePermission] | None

If the exception was caused by missing permissions this will be a list of permissions that are missing. You might not need all permissions in this list.

user_id: int | None

The id of the user that does not have the permission.

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.

code: APICodes

What type of error is this?

request_id: str

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