curious.dataclasses.bases¶
Base classes that all dataclasses inherit from.
Functions
allow_external_makes () |
Using this with a with allows dataclasses to be made outside of curious’ internal code. |
Classes
Dataclass (id, cl) |
The base class for all dataclasses. |
IDObject (id) |
This object is comparable using the snowflake as an ID. |
-
class
curious.dataclasses.bases.
Dataclass
(id: int, cl: curious.core.client.Client)[source]¶ Bases:
curious.dataclasses.bases.IDObject
The base class for all dataclasses.
These contain a reference to the current bot as _bot.
Inspects the stack to ensure we’re being called correctly.