Fix colour properties being displayed as methods in the documentation.
This commit is contained in:
parent
b7c7c86a6b
commit
6decfd1d1a
@ -549,14 +549,14 @@ class Spotify:
|
|||||||
def colour(self):
|
def colour(self):
|
||||||
"""Returns the Spotify integration colour, as a :class:`Colour`.
|
"""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)
|
return Colour(0x1db954)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def color(self):
|
def color(self):
|
||||||
"""Returns the Spotify integration colour, as a :class:`Colour`.
|
"""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
|
return self.colour
|
||||||
|
|
||||||
def to_dict(self):
|
def to_dict(self):
|
||||||
|
@ -321,7 +321,7 @@ class Member(discord.abc.Messageable, _BaseUser):
|
|||||||
for the member. If the default colour is the one rendered then an instance
|
for the member. If the default colour is the one rendered then an instance
|
||||||
of :meth:`Colour.default` is returned.
|
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
|
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`
|
the member. If the default color is the one rendered then an instance of :meth:`Colour.default`
|
||||||
is returned.
|
is returned.
|
||||||
|
|
||||||
There is an alias for this named :meth:`colour`.
|
There is an alias for this named :attr:`colour`.
|
||||||
"""
|
"""
|
||||||
return self.colour
|
return self.colour
|
||||||
|
|
||||||
|
@ -197,7 +197,7 @@ class BaseUser(_BaseUser):
|
|||||||
""":class:`Colour`: A property that returns a colour denoting the rendered colour
|
""":class:`Colour`: A property that returns a colour denoting the rendered colour
|
||||||
for the user. This always returns :meth:`Colour.default`.
|
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()
|
return Colour.default()
|
||||||
|
|
||||||
@ -206,7 +206,7 @@ class BaseUser(_BaseUser):
|
|||||||
""":class:`Colour`: A property that returns a color denoting the rendered color
|
""":class:`Colour`: A property that returns a color denoting the rendered color
|
||||||
for the user. This always returns :meth:`Colour.default`.
|
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
|
return self.colour
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user