Fixed wrong db record

This commit is contained in:
Profitroll 2023-06-28 10:45:23 +02:00
parent 420a4cb7eb
commit d8245934e2
Signed by: profitroll
GPG Key ID: FA35CAB49DACD3B2

View File

@ -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