misc(aurora): simplified AuroraGuildModel a bit
This commit is contained in:
parent
fce4001152
commit
64758686bb
1 changed files with 0 additions and 4 deletions
|
@ -25,7 +25,3 @@ class AuroraGuildModel(AuroraBaseModel):
|
|||
|
||||
def dump(self) -> dict:
|
||||
return self.model_dump(exclude={"bot", "guild_id", "guild"})
|
||||
|
||||
def to_json(self, indent: int | None = None, file: Any | None = None, **kwargs) -> str:
|
||||
from ..utilities.json import dump, dumps # pylint: disable=cyclic-import
|
||||
return dump(self.dump(), file, indent=indent, **kwargs) if file else dumps(self.dump(), indent=indent, **kwargs)
|
||||
|
|
Loading…
Reference in a new issue