fix weird behaviour of choices while command sync
@@ -110,7 +110,9 @@ class Option(DictSerializerMixin):
if self._json.get("options"):
self._json["options"] = [option._json for option in self.options]
if self._json.get("choices"):
- self._json["choices"] = [choice._json for choice in self.choices]
+ self._json["choices"] = [
+ choice if type(choice) == dict else choice._json for choice in self.choices
+ ]
class Permission(DictSerializerMixin):
