fix(aurora): don't inherit from AuroraBaseModel
This commit is contained in:
parent
ea280c2d62
commit
6520f4f2b9
1 changed files with 3 additions and 2 deletions
|
@ -16,8 +16,9 @@ class AuroraBaseModel(BaseModel):
|
|||
from aurora.utilities.json import dump, dumps
|
||||
return dump(self.model_dump(exclude={"bot"}), file, indent=indent, **kwargs) if file else dumps(self.model_dump(exclude={"bot"}), indent=indent, **kwargs)
|
||||
|
||||
class AuroraGuildModel(AuroraBaseModel):
|
||||
"""Subclass of AuroraBaseModel that includes a guild_id attribute, and a modified to_json() method to match."""
|
||||
class AuroraGuildModel(BaseModel):
|
||||
"""Base class that includes a guild_id attribute, and a modified to_json() method to match."""
|
||||
bot: ClassVar[Red]
|
||||
guild_id: int
|
||||
|
||||
def to_json(self, indent: int = None, file: Any = None, **kwargs):
|
||||
|
|
Loading…
Reference in a new issue