mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-09 08:14:50 +00:00
Pyrofork: Fix typo
This commit is contained in:
parent
334cf1ceb2
commit
58ae9750ca
1 changed files with 3 additions and 3 deletions
|
|
@ -28,7 +28,7 @@ class GetUserGifts:
|
||||||
user_id: Union[int, str],
|
user_id: Union[int, str],
|
||||||
offset: str = "",
|
offset: str = "",
|
||||||
limit: int = 0,
|
limit: int = 0,
|
||||||
) -> Optional[AsyncGenerator["types.UserGift", None]]:
|
) -> Optional[AsyncGenerator["types.StarGift", None]]:
|
||||||
"""Get gifts saved to profile by the given user.
|
"""Get gifts saved to profile by the given user.
|
||||||
|
|
||||||
.. include:: /_includes/usable-by/users.rst
|
.. include:: /_includes/usable-by/users.rst
|
||||||
|
|
@ -70,13 +70,13 @@ class GetUserGifts:
|
||||||
offset=offset,
|
offset=offset,
|
||||||
limit=limit
|
limit=limit
|
||||||
),
|
),
|
||||||
sleep_threshold=max(60, self.sleep_threshold)
|
sleep_threshold=60
|
||||||
)
|
)
|
||||||
|
|
||||||
users = {u.id: u for u in r.users}
|
users = {u.id: u for u in r.users}
|
||||||
|
|
||||||
user_gifts = [
|
user_gifts = [
|
||||||
await types.StarGift._parse(self, gift, users)
|
await types.StarGift._parse_user_star_gift(self, gift, users)
|
||||||
for gift in r.gifts
|
for gift in r.gifts
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue