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 6ef3295 commit c05f846Copy full SHA for c05f846
interactions/models/command.py
@@ -107,6 +107,8 @@ def __init__(self, **kwargs) -> None:
107
super().__init__(**kwargs)
108
self.type = OptionType(self.type)
109
self._json.update({"type": self.type.value})
110
+ if self._json.get("options"):
111
+ self._json["options"] = [option._json for option in self.options]
112
if self._json.get("choices"):
113
self._json["choices"] = [choice._json for choice in self.choices]
114
0 commit comments