Browse Source

Merge branch 'feat/components-v2' of https://github.com/DA-344/d.py into feat/components-v2

pull/10166/head
DA-344 3 weeks ago
parent
commit
afedd77fe1
  1. 2
      discord/ui/container.py

2
discord/ui/container.py

@ -234,7 +234,7 @@ class Container(Item[V]):
@accent_colour.setter @accent_colour.setter
def accent_colour(self, value: Optional[Union[Colour, int]]) -> None: def accent_colour(self, value: Optional[Union[Colour, int]]) -> None:
if not isinstance(value, (int, Colour)): if value is not None and not isinstance(value, (int, Colour)):
raise TypeError(f'expected an int, or Colour, not {value.__class__.__name__!r}') raise TypeError(f'expected an int, or Colour, not {value.__class__.__name__!r}')
self._colour = value self._colour = value

Loading…
Cancel
Save