mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-11-04 15:33:08 +00:00
Better detection for the @everyone role.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user