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

7 Commits

Author SHA1 Message Date
Arthur Jovart
4552909eb5 Add spacing in the code 2021-08-30 00:39:35 +02:00
Arthur Jovart
c4422353f7 Fix docstring 2021-08-30 00:37:52 +02:00
Arthur Jovart
2141ceea2e Fix a bug where None would be returned in try_owners if the cache wasn't yet ready. 2021-08-29 23:53:26 +02:00
Arthur Jovart
e9031d34d5 Fix coding-style. 2021-08-29 23:51:39 +02:00
Arthur Jovart
f552b77c59 Add a try_owners coroutine to get a list of owners of the bot. 2021-08-28 21:15:11 +02:00
Arthur Jovart
0679b4bcd4 Extract populate_owners into a new coroutine. 2021-08-28 21:02:32 +02:00
Arthur Jovart
33d109228a Add try_user to get a user from cache or from the gateway. 2021-08-28 20:40:23 +02:00