diff options
| author | NCPlayz <[email protected]> | 2019-06-08 22:38:27 +0100 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2019-06-29 19:14:22 -0400 |
| commit | 5698cf6df9b34768a59fc1afa3d16038067949aa (patch) | |
| tree | a61db07a130d8d304ac2879135fc7bed874f112f /discord/http.py | |
| parent | Implement `Guild.fetch_members` (diff) | |
| download | discord.py-5698cf6df9b34768a59fc1afa3d16038067949aa.tar.xz discord.py-5698cf6df9b34768a59fc1afa3d16038067949aa.zip | |
Implement `Guild.fetch_roles`
Diffstat (limited to 'discord/http.py')
| -rw-r--r-- | discord/http.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/discord/http.py b/discord/http.py index 17ca74db..79c03db2 100644 --- a/discord/http.py +++ b/discord/http.py @@ -722,6 +722,9 @@ class HTTPClient: # Role management + def get_roles(self, guild_id): + return self.request(Route('GET', '/guilds/{guild_id}/roles', guild_id=guild_id)) + def edit_role(self, guild_id, role_id, *, reason=None, **fields): r = Route('PATCH', '/guilds/{guild_id}/roles/{role_id}', guild_id=guild_id, role_id=role_id) valid_keys = ('name', 'permissions', 'color', 'hoist', 'mentionable') |