diff options
| author | kittenswolf <[email protected]> | 2020-05-01 12:52:42 +0200 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2020-05-03 15:40:13 -0400 |
| commit | 6decfd1d1aa08d0a00caced655b0eed9564735a6 (patch) | |
| tree | 521ffb56aa4d244d86a2667eb099c329ede4789a | |
| parent | Add roles parameter for pruning members. (diff) | |
| download | discord.py-6decfd1d1aa08d0a00caced655b0eed9564735a6.tar.xz discord.py-6decfd1d1aa08d0a00caced655b0eed9564735a6.zip | |
Fix colour properties being displayed as methods in the documentation.
| -rw-r--r-- | discord/activity.py | 4 | ||||
| -rw-r--r-- | discord/member.py | 4 | ||||
| -rw-r--r-- | discord/user.py | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/discord/activity.py b/discord/activity.py index 3e7de839..cc4227f1 100644 --- a/discord/activity.py +++ b/discord/activity.py @@ -549,14 +549,14 @@ class Spotify: def colour(self): """Returns the Spotify integration colour, as a :class:`Colour`. - There is an alias for this named :meth:`color`""" + There is an alias for this named :attr:`color`""" return Colour(0x1db954) @property def color(self): """Returns the Spotify integration colour, as a :class:`Colour`. - There is an alias for this named :meth:`colour`""" + There is an alias for this named :attr:`colour`""" return self.colour def to_dict(self): diff --git a/discord/member.py b/discord/member.py index d795d110..22c4db6a 100644 --- a/discord/member.py +++ b/discord/member.py @@ -321,7 +321,7 @@ class Member(discord.abc.Messageable, _BaseUser): for the member. If the default colour is the one rendered then an instance of :meth:`Colour.default` is returned. - There is an alias for this named :meth:`color`. + There is an alias for this named :attr:`color`. """ roles = self.roles[1:] # remove @everyone @@ -340,7 +340,7 @@ class Member(discord.abc.Messageable, _BaseUser): the member. If the default color is the one rendered then an instance of :meth:`Colour.default` is returned. - There is an alias for this named :meth:`colour`. + There is an alias for this named :attr:`colour`. """ return self.colour diff --git a/discord/user.py b/discord/user.py index 2331ff49..77c0b473 100644 --- a/discord/user.py +++ b/discord/user.py @@ -197,7 +197,7 @@ class BaseUser(_BaseUser): """:class:`Colour`: A property that returns a colour denoting the rendered colour for the user. This always returns :meth:`Colour.default`. - There is an alias for this named :meth:`color`. + There is an alias for this named :attr:`color`. """ return Colour.default() @@ -206,7 +206,7 @@ class BaseUser(_BaseUser): """:class:`Colour`: A property that returns a color denoting the rendered color for the user. This always returns :meth:`Colour.default`. - There is an alias for this named :meth:`colour`. + There is an alias for this named :attr:`colour`. """ return self.colour |