| @@ -86,9 +86,9 @@ namespace Discord.WebSocket | |||||
| break; | break; | ||||
| case ApplicationCommandOptionType.Integer: | case ApplicationCommandOptionType.Integer: | ||||
| { | { | ||||
| if (model.Value.Value is int val) | |||||
| if (model.Value.Value is long val) | |||||
| this.Value = val; | this.Value = val; | ||||
| else if (int.TryParse(model.Value.Value.ToString(), out int res)) | |||||
| else if (long.TryParse(model.Value.Value.ToString(), out long res)) | |||||
| this.Value = res; | this.Value = res; | ||||
| } | } | ||||
| break; | break; | ||||
| @@ -109,7 +109,7 @@ namespace Discord.WebSocket | |||||
| } | } | ||||
| break; | break; | ||||
| } | } | ||||
| } | } | ||||
| this.Options = model.Options.IsSpecified | this.Options = model.Options.IsSpecified | ||||