v0.2 #31

Manually merged
profitroll merged 29 commits from dev into master 2023-07-03 13:47:49 +03:00
Showing only changes of commit d8245934e2 - Show all commits

View File

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