aboutsummaryrefslogtreecommitdiff
path: root/discord/client.py
diff options
context:
space:
mode:
Diffstat (limited to 'discord/client.py')
-rw-r--r--discord/client.py3
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.