Updated cast type for interaction options
This commit is contained in:
parent
0f31294fd1
commit
01980ce692
|
@ -23,7 +23,7 @@ class InteractionOption {
|
|||
this.type = CommandArgType(raw["type"] as int);
|
||||
|
||||
if (raw["options"] != null) {
|
||||
this.args = (raw["options"] as List<Map<String, dynamic>>).map((e) => InteractionOption._new(e));
|
||||
this.args = (raw["options"] as List<dynamic>).map((e) => InteractionOption._new(e));
|
||||
}
|
||||
|
||||
if (raw["choices"] != null) {
|
||||
|
|
Loading…
Reference in a new issue