From 66922cc2d15417d2ce900f04987c2f361537ac6d Mon Sep 17 00:00:00 2001 From: DA344 <108473820+DA-344@users.noreply.github.com> Date: Wed, 9 Jul 2025 03:15:07 +0200 Subject: [PATCH] Fix documentation on Role secondary and tertiary colours Fix .. versionadded:: strings on Role.secondary_ and Role.tertiary_ colours --- discord/role.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/discord/role.py b/discord/role.py index acb112519..18b024059 100644 --- a/discord/role.py +++ b/discord/role.py @@ -331,6 +331,7 @@ class Role(Hashable): @property def secondary_colour(self) -> Optional[Colour]: """Optional[:class:`Colour`]: The role's secondary colour. + .. versionadded:: 2.6 """ return Colour(self._secondary_colour) if self._secondary_colour is not None else None @@ -338,6 +339,7 @@ class Role(Hashable): @property def secondary_color(self) -> Optional[Colour]: """Optional[:class:`Colour`]: Alias for :attr:`secondary_colour`. + .. versionadded:: 2.6 """ return self.secondary_colour @@ -345,6 +347,7 @@ class Role(Hashable): @property def tertiary_colour(self) -> Optional[Colour]: """Optional[:class:`Colour`]: The role's tertiary colour. + .. versionadded:: 2.6 """ return Colour(self._tertiary_colour) if self._tertiary_colour is not None else None @@ -352,6 +355,7 @@ class Role(Hashable): @property def tertiary_color(self) -> Optional[Colour]: """Optional[:class:`Colour`]: Alias for :attr:`tertiary_colour`. + .. versionadded:: 2.6 """ return self.tertiary_colour