Browse Source
Apply suggestions from code review
Co-authored-by: DA344 <108473820+DA-344@users.noreply.github.com>
pull/10214/head
Mak
1 week ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
8 additions and
6 deletions
-
discord/guild.py
-
discord/role.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``. |
|
|
|
|
|
@ -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`]] |
|
|
|