diff options
| author | Tobotimus <[email protected]> | 2018-01-06 17:21:56 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2018-01-06 17:23:59 -0500 |
| commit | 3112e1c17e7859adf6d13ed844f4c636b4bc30d8 (patch) | |
| tree | 70d7aafca549a8c245ee4fdab774e1ab5302d531 /discord/role.py | |
| parent | [commands] Fix MissingRequiredArgument param handling (diff) | |
| download | discord.py-3112e1c17e7859adf6d13ed844f4c636b4bc30d8.tar.xz discord.py-3112e1c17e7859adf6d13ed844f4c636b4bc30d8.zip | |
Add intersphinx
Diffstat (limited to 'discord/role.py')
| -rw-r--r-- | discord/role.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/discord/role.py b/discord/role.py index c4ccbf9d..6cb79c69 100644 --- a/discord/role.py +++ b/discord/role.py @@ -71,9 +71,9 @@ class Role(Hashable): Attributes ---------- - id: int + id: :class:`int` The ID for the role. - name: str + name: :class:`str` The name of the role. permissions: :class:`Permissions` Represents the role's permissions. @@ -81,15 +81,15 @@ class Role(Hashable): The guild the role belongs to. colour: :class:`Colour` Represents the role colour. An alias exists under ``color``. - hoist: bool + hoist: :class:`bool` Indicates if the role will be displayed separately from other members. - position: int + position: :class:`int` The position of the role. This number is usually positive. The bottom role has a position of 0. - managed: bool + managed: :class:`bool` Indicates if the role is managed by the guild through some form of integrations such as Twitch. - mentionable: bool + mentionable: :class:`bool` Indicates if the role can be mentioned by users. """ @@ -164,7 +164,7 @@ class Role(Hashable): @property def members(self): - """Returns a list of :class:`Member` with this role.""" + """Returns a :class:`list` of :class:`Member` with this role.""" all_members = self.guild.members if self.is_default(): return all_members |