Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions discord/role.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ def _update(self, data: RolePayload):
self._permissions: int = int(data.get("permissions", 0))
self.position: int = data.get("position", 0)
self._colour: int = data.get("color", 0)
self.colours: RoleColours | None = RoleColours._from_payload(data["colors"])
self.colours: RoleColours = RoleColours._from_payload(data["colors"])
self.hoist: bool = data.get("hoist", False)
self.managed: bool = data.get("managed", False)
self.mentionable: bool = data.get("mentionable", False)
Expand Down Expand Up @@ -574,8 +574,8 @@ async def edit(
permissions: Permissions = MISSING,
colour: Colour | int = MISSING,
color: Colour | int = MISSING,
colours: RoleColours | None = MISSING,
colors: RoleColours | None = MISSING,
colours: RoleColours = MISSING,
colors: RoleColours = MISSING,
holographic: bool = MISSING,
hoist: bool = MISSING,
mentionable: bool = MISSING,
Expand Down
Loading