diff options
| author | Rapptz <[email protected]> | 2016-04-29 19:29:29 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2016-04-29 19:29:29 -0400 |
| commit | 196e9463f5294d7a15c950c742124e7776cc382d (patch) | |
| tree | 9aa27228afac0948a6d03cc71fd3fd2005aa4860 | |
| parent | Fix Member.display_name returning None (diff) | |
| download | discord.py-196e9463f5294d7a15c950c742124e7776cc382d.tar.xz discord.py-196e9463f5294d7a15c950c742124e7776cc382d.zip | |
Add Role.mentionable attribute.
| -rw-r--r-- | discord/role.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/discord/role.py b/discord/role.py index b73790a7..84cd9fbb 100644 --- a/discord/role.py +++ b/discord/role.py @@ -63,10 +63,12 @@ class Role(Hashable): managed : bool Indicates if the role is managed by the server through some form of integrations such as Twitch. + mentionable : bool + Indicates if the role can be mentioned by users. """ __slots__ = ['id', 'name', 'permissions', 'color', 'colour', 'position', - 'managed', '_is_everyone', 'hoist' ] + 'managed', 'mentionable', '_is_everyone', 'hoist' ] def __init__(self, **kwargs): self._is_everyone = kwargs.get('everyone', False) @@ -83,6 +85,7 @@ class Role(Hashable): self.colour = Colour(kwargs.get('color', 0)) self.hoist = kwargs.get('hoist', False) self.managed = kwargs.get('managed', False) + self.mentionable = kwargs.get('mentionable', False) self.color = self.colour if 'everyone' in kwargs: self._is_everyone = kwargs['everyone'] |