fix(aurora): fixed a broken classmethod
This commit is contained in:
parent
d7ca5cab46
commit
c2e017339e
1 changed files with 1 additions and 1 deletions
|
@ -179,7 +179,7 @@ class Moderation(AuroraGuildModel):
|
|||
return cls(bot=bot, **data)
|
||||
|
||||
@classmethod
|
||||
def from_result(bot: Red, result: Iterable, guild_id: int) -> dict:
|
||||
def from_result(cls, bot: Red, result: Iterable, guild_id: int) -> dict:
|
||||
if result[7] is not None:
|
||||
hours, minutes, seconds = map(int, result[7].split(':'))
|
||||
duration = timedelta(hours=hours, minutes=minutes, seconds=seconds)
|
||||
|
|
Loading…
Reference in a new issue