Add try_user, owner and owners to Client #7

Merged
paris-ci merged 7 commits from try_user into 2.0 2021-09-02 19:24:52 +00:00
Showing only changes of commit e9031d34d5 - Show all commits

View File

@@ -852,11 +852,11 @@ class Client:
if maybe_user is not None:
return maybe_user
else:
try:
return await self.fetch_user(id)
except NotFound:
return None
try:
return await self.fetch_user(id)
except NotFound:
return None
def get_emoji(self, id: int, /) -> Optional[Emoji]:
"""Returns an emoji with the given ID.