Browse Source
Update discord/role.py
Co-authored-by: Danny <1695103+Rapptz@users.noreply.github.com>
pull/10214/head
Mak
2 weeks ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
1 deletions
-
discord/role.py
|
|
@ -589,7 +589,8 @@ class Role(Hashable): |
|
|
|
else: |
|
|
|
colours['tertiary_color'] = actual_tertiary_colour.value |
|
|
|
|
|
|
|
payload['colors'] = colours |
|
|
|
if colours: |
|
|
|
payload['colors'] = colours |
|
|
|
data = await self._state.http.edit_role(self.guild.id, self.id, reason=reason, **payload) |
|
|
|
return Role(guild=self.guild, data=data, state=self._state) |
|
|
|
|
|
|
|