Skip to content

Commit 7ee96b8

Browse files
authored
fix(guild): add gradient color parameters to create_role overloads (#1561)
1 parent afee478 commit 7ee96b8

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

disnake/guild.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3865,28 +3865,34 @@ async def get_or_fetch_member(self, member_id: int, *, strict: bool = False) ->
38653865
async def create_role(
38663866
self,
38673867
*,
3868-
reason: str | None = ...,
38693868
name: str = ...,
38703869
permissions: Permissions = ...,
38713870
colour: Colour | int = ...,
3871+
primary_colour: Colour | int = ...,
3872+
secondary_colour: Colour | int | None = ...,
3873+
tertiary_colour: Colour | int | None = ...,
38723874
hoist: bool = ...,
38733875
icon: AssetBytes = ...,
38743876
emoji: str = ...,
38753877
mentionable: bool = ...,
3878+
reason: str | None = None,
38763879
) -> Role: ...
38773880

38783881
@overload
38793882
async def create_role(
38803883
self,
38813884
*,
3882-
reason: str | None = ...,
38833885
name: str = ...,
38843886
permissions: Permissions = ...,
38853887
color: Colour | int = ...,
3888+
primary_color: Colour | int = ...,
3889+
secondary_color: Colour | int | None = ...,
3890+
tertiary_color: Colour | int | None = ...,
38863891
hoist: bool = ...,
38873892
icon: AssetBytes = ...,
38883893
emoji: str = ...,
38893894
mentionable: bool = ...,
3895+
reason: str | None = None,
38903896
) -> Role: ...
38913897

38923898
async def create_role(

0 commit comments

Comments
 (0)