Updated cast type for interaction options

This commit is contained in:
Matthew Watt 2021-03-17 21:48:13 +00:00 committed by Szymon Uglis
parent 0f31294fd1
commit 01980ce692
No known key found for this signature in database
GPG key ID: 112376C5BEE91FE2

View file

@ -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) {