Fixed get_default_role in Server attempting to access the wrong roles.

This commit is contained in:
Rasmus Karlsson 2015-10-14 17:41:21 +00:00 committed by Rapptz
parent a130706f23
commit 75670fa0a2

View File

@ -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