diff options
| author | NCPlayz <[email protected]> | 2019-05-18 06:04:54 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2019-06-07 19:27:46 -0400 |
| commit | 3c9bcc285147154a2980f6e661efdfa676672b6a (patch) | |
| tree | 657bafa75e4e0d45361e394443ea932ad70e86a7 /discord/role.py | |
| parent | Added comment for/redo system information (diff) | |
| download | discord.py-3c9bcc285147154a2980f6e661efdfa676672b6a.tar.xz discord.py-3c9bcc285147154a2980f6e661efdfa676672b6a.zip | |
Improve documentation
Diffstat (limited to 'discord/role.py')
| -rw-r--r-- | discord/role.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/discord/role.py b/discord/role.py index 7fd435e9..8608c5e1 100644 --- a/discord/role.py +++ b/discord/role.py @@ -158,17 +158,17 @@ class Role(Hashable): @property def created_at(self): - """Returns the role's creation time in UTC.""" + """:class:`datetime.datetime`: Returns the role's creation time in UTC.""" return snowflake_time(self.id) @property def mention(self): - """Returns a string that allows you to mention a role.""" + """:class:`str`: Returns a string that allows you to mention a role.""" return '<@&%s>' % self.id @property def members(self): - """Returns a :class:`list` of :class:`Member` with this role.""" + """List[:class:`Member`]: Returns all the members with this role.""" all_members = self.guild.members if self.is_default(): return all_members |