Soheab
1 month ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
2 additions and
2 deletions
-
discord/components.py
-
discord/ui/container.py
|
|
|
@ -1379,7 +1379,7 @@ class Container(Component): |
|
|
|
} |
|
|
|
if self.id is not None: |
|
|
|
payload['id'] = self.id |
|
|
|
if self._colour: |
|
|
|
if self._colour is not None: |
|
|
|
payload['accent_color'] = self._colour.value |
|
|
|
return payload |
|
|
|
|
|
|
|
|
|
|
|
@ -243,7 +243,7 @@ class Container(Item[V]): |
|
|
|
components = self.to_components() |
|
|
|
|
|
|
|
colour = None |
|
|
|
if self._colour: |
|
|
|
if self._colour is not None: |
|
|
|
colour = self._colour if isinstance(self._colour, int) else self._colour.value |
|
|
|
|
|
|
|
base = { |
|
|
|
|