From d2741ca38a94bde92b080fb6a9f65b6673f5a656 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Wed, 21 Oct 2015 20:27:08 -0400 Subject: Better detection for the everyone role. Fixes #23. --- discord/role.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'discord/role.py') diff --git a/discord/role.py b/discord/role.py index 2fecfdf9..9e50cca4 100644 --- a/discord/role.py +++ b/discord/role.py @@ -197,8 +197,7 @@ class Role(object): A boolean representing if the role will be displayed separately from other members. .. attribute:: position - The position of the role. This number is usually positive. A non-positive value indicates that - this is the `@everyone` role. + The position of the role. This number is usually positive. .. attribute:: managed A boolean indicating if the role is managed by the server through some form of integration @@ -217,6 +216,7 @@ class Role(object): self.hoist = kwargs.get('hoist', False) self.managed = kwargs.get('managed', False) self.color = self.colour + self._is_everyone = kwargs.get('everyone', False) def is_everyone(self): """Checks if the role is the @everyone role.""" -- cgit v1.2.3