Repository: Rapptz/discord.py
File: discord/guild.py (Python)

Code before:
        """
        fields: Dict[str, Any] = {}
        if permissions is not MISSING:
            fields['permissions'] = str(permissions.value)
        else:
            fields['permissions'] = '0'

        actual_colour = colour or color or Colour.default()
        if isinstance(actual_colour, int):
            fields['color'] = actual_colour
        else:
            fields['color'] = actual_colour.value

        solid_color_used = color is not MISSING or colour is not MISSING
        colors_used = (
            primary_color is not MISSING
            or secondary_color is not MISSING
            or tertiary_color is not MISSING
            or primary_colour is not MISSING
            or secondary_colour is not MISSING
            or tertiary_colour is not MISSING
        )
        if solid_color_used and colors_used:
            raise TypeError(
                "You must choose either only solid colour (color/colour) or colours (primary_colour/secondary_colour/tertiary_colour), not both."
            )

        actual_primary_colour = primary_colour or primary_color
        actual_secondary_colour = secondary_colour or secondary_color
        actual_tertiary_colour = tertiary_colour or tertiary_color
        colors_payload: Dict[str, Any] = {}
        if actual_primary_colour is not MISSING:
            if actual_primary_colour is None:
                colors_payload['primary_color'] = None
            elif isinstance(actual_primary_colour, int):
                colors_payload['primary_color'] = actual_primary_colour
            else:
                colors_payload['primary_color'] = actual_primary_colour.value
        if actual_secondary_colour is not MISSING:
            if actual_secondary_colour is None:
                colors_payload['secondary_color'] = None
            elif isinstance(actual_secondary_colour, int):
                colors_payload['secondary_color'] = actual_secondary_colour
            else:
                colors_payload['secondary_color'] = actual_secondary_colour.value
        if actual_tertiary_colour is not MISSING:
            if actual_tertiary_colour is None:
                colors_payload['tertiary_color'] = None
            elif isinstance(actual_tertiary_colour, int):
                colors_payload['tertiary_color'] = actual_tertiary_colour
            else:

Review comment (suggestion):
``colour`` is an alias for ``primary_colour``, this is not neccessary.
```suggestion
```

Code after:
        :class:`Role`
            The newly created role.
        """
        fields: Dict[str, Any] = {}
        if permissions is not MISSING:
            fields['permissions'] = str(permissions.value)
        else:
            fields['permissions'] = '0'

        colours: Dict[str, Any] = {}

        actual_colour = colour or color or Colour.default()
        if isinstance(actual_colour, int):
            colours['primary_color'] = actual_colour
        else:
            colours['primary_color'] = actual_colour.value

        actual_secondary_colour = secondary_colour or secondary_color
        actual_tertiary_colour = tertiary_colour or tertiary_color

        if actual_secondary_colour is not MISSING:
            if actual_secondary_colour is None:
                colours['secondary_color'] = None
            elif isinstance(actual_secondary_colour, int):
                colours['secondary_color'] = actual_secondary_colour
            else:
                colours['secondary_color'] = actual_secondary_colour.value

        if actual_tertiary_colour is not MISSING:
            if actual_tertiary_colour is None:
                colours['tertiary_color'] = None
            elif isinstance(actual_tertiary_colour, int):
                colours['tertiary_color'] = actual_tertiary_colour
            else:
                colours['tertiary_color'] = actual_tertiary_colour.value

        fields['colors'] = colours

        if hoist is not MISSING:
            fields['hoist'] = hoist

        if display_icon is not MISSING:
            if isinstance(display_icon, bytes):
                fields['icon'] = utils._bytes_to_base64_data(display_icon)
            else:
                fields['unicode_emoji'] = display_icon

        if mentionable is not MISSING:
            fields['mentionable'] = mentionable

        if name is not MISSING: