diff options
| author | Rapptz <[email protected]> | 2016-11-05 16:57:52 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-01-03 09:51:55 -0500 |
| commit | 5cb3ad14e8501961c2684498682bfb4e0fb016ff (patch) | |
| tree | 29d314d03844af9359fb47f3f7ab3c90aaf76ab1 /discord/http.py | |
| parent | Make roles and guilds stateful. (diff) | |
| download | discord.py-5cb3ad14e8501961c2684498682bfb4e0fb016ff.tar.xz discord.py-5cb3ad14e8501961c2684498682bfb4e0fb016ff.zip | |
Make emojis and members stateful.
Diffstat (limited to 'discord/http.py')
| -rw-r--r-- | discord/http.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/discord/http.py b/discord/http.py index 3b957a16..ecb9cd9f 100644 --- a/discord/http.py +++ b/discord/http.py @@ -383,6 +383,11 @@ class HTTPClient: bucket = 'members:{}'.format(guild_id) return self.patch(url, json=payload, bucket=bucket) + def edit_member(self, guild_id, user_id, **fields): + url = '{0.GUILDS}/{1}/members/{2}'.format(self, guild_id, user_id) + bucket = 'members:%s' % guild_id + return self.patch(url, json=fields, bucket=bucket) + # Channel management def edit_channel(self, channel_id, **options): |