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.
1 parent 45d968c commit 2dc1242Copy full SHA for 2dc1242
interactions/models/component.py
@@ -348,7 +348,10 @@ def __init__(self, **kwargs) -> None:
348
self.type = ComponentType.ACTION_ROW
349
for component in self.components:
350
if isinstance(component, SelectMenu):
351
- component._json["options"] = [option._json for option in component._json["options"]]
+ component._json["options"] = [
352
+ option._json if isinstance(option, SelectOption) else option
353
+ for option in component._json["options"]
354
+ ]
355
self.components = (
356
[Component(**component._json) for component in self.components]
357
if self._json.get("components")
0 commit comments