Change type of Value in InteractionOption to JsonElement because it's unknown at deserialization time what type it will be

This commit is contained in:
Daan Boerlage 2021-09-20 02:10:19 +02:00
parent 65bb7f6cac
commit 2de6381f9d
Signed by: daan
GPG key ID: FCE070E1E4956606

View file

@ -1,4 +1,5 @@
using System.Collections.Generic;
using System.Text.Json;
using System.Text.Json.Serialization;
using Geekbot.Core.Interactions.ApplicationCommand;
@ -23,7 +24,7 @@ namespace Geekbot.Core.Interactions.Request
/// the value of the pair
/// </summary>
[JsonPropertyName("value")]
public object Value { get; set; }
public JsonElement Value { get; set; }
/// <summary>
/// present if this option is a group or subcommand