mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-07-10 20:08:08 +00:00
Fix documentation on Role secondary and tertiary colours
Fix .. versionadded:: strings on Role.secondary_ and Role.tertiary_ colours
This commit is contained in:
parent
cb7300990f
commit
66922cc2d1
@ -331,6 +331,7 @@ class Role(Hashable):
|
|||||||
@property
|
@property
|
||||||
def secondary_colour(self) -> Optional[Colour]:
|
def secondary_colour(self) -> Optional[Colour]:
|
||||||
"""Optional[:class:`Colour`]: The role's secondary colour.
|
"""Optional[:class:`Colour`]: The role's secondary colour.
|
||||||
|
|
||||||
.. versionadded:: 2.6
|
.. versionadded:: 2.6
|
||||||
"""
|
"""
|
||||||
return Colour(self._secondary_colour) if self._secondary_colour is not None else None
|
return Colour(self._secondary_colour) if self._secondary_colour is not None else None
|
||||||
@ -338,6 +339,7 @@ class Role(Hashable):
|
|||||||
@property
|
@property
|
||||||
def secondary_color(self) -> Optional[Colour]:
|
def secondary_color(self) -> Optional[Colour]:
|
||||||
"""Optional[:class:`Colour`]: Alias for :attr:`secondary_colour`.
|
"""Optional[:class:`Colour`]: Alias for :attr:`secondary_colour`.
|
||||||
|
|
||||||
.. versionadded:: 2.6
|
.. versionadded:: 2.6
|
||||||
"""
|
"""
|
||||||
return self.secondary_colour
|
return self.secondary_colour
|
||||||
@ -345,6 +347,7 @@ class Role(Hashable):
|
|||||||
@property
|
@property
|
||||||
def tertiary_colour(self) -> Optional[Colour]:
|
def tertiary_colour(self) -> Optional[Colour]:
|
||||||
"""Optional[:class:`Colour`]: The role's tertiary colour.
|
"""Optional[:class:`Colour`]: The role's tertiary colour.
|
||||||
|
|
||||||
.. versionadded:: 2.6
|
.. versionadded:: 2.6
|
||||||
"""
|
"""
|
||||||
return Colour(self._tertiary_colour) if self._tertiary_colour is not None else None
|
return Colour(self._tertiary_colour) if self._tertiary_colour is not None else None
|
||||||
@ -352,6 +355,7 @@ class Role(Hashable):
|
|||||||
@property
|
@property
|
||||||
def tertiary_color(self) -> Optional[Colour]:
|
def tertiary_color(self) -> Optional[Colour]:
|
||||||
"""Optional[:class:`Colour`]: Alias for :attr:`tertiary_colour`.
|
"""Optional[:class:`Colour`]: Alias for :attr:`tertiary_colour`.
|
||||||
|
|
||||||
.. versionadded:: 2.6
|
.. versionadded:: 2.6
|
||||||
"""
|
"""
|
||||||
return self.tertiary_colour
|
return self.tertiary_colour
|
||||||
|
Loading…
x
Reference in New Issue
Block a user