From d8245934e23682efbf6190b209ba08a9ead57c6b Mon Sep 17 00:00:00 2001 From: profitroll Date: Wed, 28 Jun 2023 10:45:23 +0200 Subject: [PATCH] Fixed wrong db record --- classes/pyroclient.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/classes/pyroclient.py b/classes/pyroclient.py index bb966bf..205df61 100644 --- a/classes/pyroclient.py +++ b/classes/pyroclient.py @@ -250,7 +250,7 @@ class PyroClient(PyroClient): return ( submission, - response.id if not hasattr(response, "parsed") else response.parsed.id, + response.parsed.id if hasattr(response, "parsed") else response.id, ) async def find_user(self, user: Union[int, User]) -> PyroUser: @@ -272,6 +272,8 @@ class PyroClient(PyroClient): { "id": user.id if isinstance(user, User) else user, "locale": user.language_code if isinstance(user, User) else None, + "banned": False, + "cooldown": datetime(1970, 1, 1, 0, 0), "subscription": {"expires": datetime(1970, 1, 1, 0, 0)}, } ) # type: ignore