Skip to content

Commit c05f846

Browse files
committed
fix: Options in subcommands correctly seralized.
1 parent 6ef3295 commit c05f846

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

interactions/models/command.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ def __init__(self, **kwargs) -> None:
107107
super().__init__(**kwargs)
108108
self.type = OptionType(self.type)
109109
self._json.update({"type": self.type.value})
110+
if self._json.get("options"):
111+
self._json["options"] = [option._json for option in self.options]
110112
if self._json.get("choices"):
111113
self._json["choices"] = [choice._json for choice in self.choices]
112114

0 commit comments

Comments
 (0)