diff options
| author | Rapptz <[email protected]> | 2015-10-21 20:27:08 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2015-10-21 20:27:08 -0400 |
| commit | d2741ca38a94bde92b080fb6a9f65b6673f5a656 (patch) | |
| tree | 67c03eddf403f23f278dedfcb881197ae9fdeabb /discord/role.py | |
| parent | Add Client.replace_roles (diff) | |
| download | discord.py-d2741ca38a94bde92b080fb6a9f65b6673f5a656.tar.xz discord.py-d2741ca38a94bde92b080fb6a9f65b6673f5a656.zip | |
Better detection for the everyone role. Fixes #23.
Diffstat (limited to 'discord/role.py')
| -rw-r--r-- | discord/role.py | 4 |
1 files changed, 2 insertions, 2 deletions
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.""" |