DisabledSettingException

class DisabledSettingException[source]

Exception raised when a required setting is not enabled.

code: Literal['DISABLED_SETTING']

A unique code identifying the kind of error that occurred.

disabled_setting: Setting

The setting that is disabled and caused this exception, including its current and default value.

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.

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.