We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ecf9b53 + 4fdde73 commit 2f03485Copy full SHA for 2f03485
discord_components/component.py
@@ -400,6 +400,9 @@ def __getitem__(self, index: int) -> Component:
400
def __setitem__(self, index: int, value: Component):
401
self._components[index] = value
402
403
+ def __delitem__(self, key: int):
404
+ del self._components[key]
405
+
406
def to_dict(self) -> dict:
407
data = {"type": 1, "components": [component.to_dict() for component in self.components]}
408
return data
0 commit comments