Better detection for the @everyone role.

This commit is contained in:
Rapptz
2015-10-17 04:13:15 -04:00
parent ba978cc988
commit a9fd4fc4e3
2 changed files with 8 additions and 3 deletions

View File

@ -151,5 +151,5 @@ class Server(object):
def get_default_role(self):
"""Gets the @everyone role that all members have by default."""
for role in self.roles:
if role.name == '@everyone':
if role.is_everyone():
return role