aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRasmus Karlsson <[email protected]>2015-10-14 17:41:21 +0000
committerRapptz <[email protected]>2015-10-15 01:37:52 -0400
commit75670fa0a2a4b2db7430fb5f440d3b847bfcef28 (patch)
treea2ce4bd89f4e3c013e2378705597869ca94f09bd
parentAdd Client.change_status. (diff)
downloaddiscord.py-75670fa0a2a4b2db7430fb5f440d3b847bfcef28.tar.xz
discord.py-75670fa0a2a4b2db7430fb5f440d3b847bfcef28.zip
Fixed get_default_role in Server attempting to access the wrong roles.
-rw-r--r--discord/server.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/server.py b/discord/server.py
index d693fd8c..aa855bba 100644
--- a/discord/server.py
+++ b/discord/server.py
@@ -167,6 +167,6 @@ class Server(object):
def get_default_role(self):
"""Gets the @everyone role that all members have by default."""
- for role in roles:
+ for role in self.roles:
if role.name == '@everyone':
return role