mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-05 11:27:13 +00:00
Fixed get_default_role in Server attempting to access the wrong roles.
This commit is contained in:
parent
a130706f23
commit
75670fa0a2
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user