diff options
| author | Rapptz <[email protected]> | 2016-06-01 19:27:48 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2016-06-01 19:27:48 -0400 |
| commit | 5016f120795cdd27f56f9949ff668accdc8d076c (patch) | |
| tree | 65456fe25f1c6b1d9eebf0152af961c0a20b42d9 /discord/client.py | |
| parent | Update voice client main ws references when reconnecting. (diff) | |
| download | discord.py-5016f120795cdd27f56f9949ff668accdc8d076c.tar.xz discord.py-5016f120795cdd27f56f9949ff668accdc8d076c.zip | |
Add Role.server attribute.
This breaks events that expected a server parameter for the role events.
Diffstat (limited to 'discord/client.py')
| -rw-r--r-- | discord/client.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/discord/client.py b/discord/client.py index 29576845..74e5d5cb 100644 --- a/discord/client.py +++ b/discord/client.py @@ -2447,8 +2447,7 @@ class Client: yield from utils._verify_successful_response(r) data = yield from r.json(encoding='utf-8') - everyone = server.id == data.get('id') - role = Role(everyone=everyone, **data) + role = Role(server=server, **data) # we have to call edit because you can't pass a payload to the # http request currently. |