Browse Source

Merge dbf7af2306 into 2fbed93624

pull/10453/merge
Soheab 1 month ago
committed by GitHub
parent
commit
c82bbf6f4d
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      discord/components.py
  2. 2
      discord/ui/container.py

2
discord/components.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

2
discord/ui/container.py

@ -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 = {

Loading…
Cancel
Save