From 343130ffce34b4f8670843c95b3fc8d2168ccade Mon Sep 17 00:00:00 2001 From: Mak <99765898+makerze@users.noreply.github.com> Date: Sun, 6 Jul 2025 02:46:20 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: DA344 <108473820+DA-344@users.noreply.github.com> --- discord/guild.py | 7 ++++--- discord/role.py | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/discord/guild.py b/discord/guild.py index 1d3679ad3..b03dbbea6 100644 --- a/discord/guild.py +++ b/discord/guild.py @@ -3703,9 +3703,6 @@ class Guild(Hashable): This function will now raise :exc:`TypeError` instead of ``InvalidArgument``. - .. versionadded:: 2.6 - The ``secondary_color``, ``tertiary_color``, ``secondary_colour``, and ``tertiary_colour`` keyword-only parameters were added. - .. versionchanged:: 2.6 The ``colour`` and ``color`` parameters now set the role's primary color. @@ -3721,9 +3718,13 @@ class Guild(Hashable): This is aliased to ``color`` as well. secondary_colour: Optional[Union[:class:`Colour`, :class:`int`]] The secondary colour for the role. + + .. versionadded:: 2.6 tertiary_colour: Optional[Union[:class:`Colour`, :class:`int`]] The tertiary colour for the role. Can only be used for the holographic role preset, which is ``(11127295, 16759788, 16761760)`` + + .. versionadded:: 2.6 hoist: :class:`bool` Indicates if the role should be shown separately in the member list. Defaults to ``False``. diff --git a/discord/role.py b/discord/role.py index 881864ad8..81b4e8cd9 100644 --- a/discord/role.py +++ b/discord/role.py @@ -484,9 +484,6 @@ class Role(Hashable): This function will now raise :exc:`ValueError` instead of ``InvalidArgument``. - .. versionadded:: 2.6 - The ``secondary_color``, ``tertiary_color``, ``secondary_colour``, and ``tertiary_colour`` keyword-only parameters were added. - .. versionchanged:: 2.6 The ``colour`` and ``color`` parameters now set the role's primary color. @@ -500,9 +497,13 @@ class Role(Hashable): The new colour to change to. (aliased to color as well) secondary_colour: Optional[Union[:class:`Colour`, :class:`int`]] The new secondary colour for the role. + + .. versionadded:: 2.6 tertiary_colour: Optional[Union[:class:`Colour`, :class:`int`]] The new tertiary colour for the role. Can only be used for the holographic role preset, which is ``(11127295, 16759788, 16761760)`` + + .. versionadded:: 2.6 hoist: :class:`bool` Indicates if the role should be shown separately in the member list. display_icon: Optional[Union[:class:`bytes`, :class:`str`]]