Fixed wrong db record
This commit is contained in:
parent
420a4cb7eb
commit
d8245934e2
@ -250,7 +250,7 @@ class PyroClient(PyroClient):
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
submission,
|
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:
|
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,
|
"id": user.id if isinstance(user, User) else user,
|
||||||
"locale": user.language_code if isinstance(user, User) else None,
|
"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)},
|
"subscription": {"expires": datetime(1970, 1, 1, 0, 0)},
|
||||||
}
|
}
|
||||||
) # type: ignore
|
) # type: ignore
|
||||||
|
Reference in New Issue
Block a user