From 2de6381f9dbd87f346ea6fe82969cd29c0f36940 Mon Sep 17 00:00:00 2001 From: Daan Boerlage Date: Mon, 20 Sep 2021 02:10:19 +0200 Subject: [PATCH] Change type of Value in InteractionOption to JsonElement because it's unknown at deserialization time what type it will be --- src/Core/Interactions/Request/InteractionOption.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Core/Interactions/Request/InteractionOption.cs b/src/Core/Interactions/Request/InteractionOption.cs index 47400fd..6e94d67 100644 --- a/src/Core/Interactions/Request/InteractionOption.cs +++ b/src/Core/Interactions/Request/InteractionOption.cs @@ -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 /// [JsonPropertyName("value")] - public object Value { get; set; } + public JsonElement Value { get; set; } /// /// present if this option is a group or subcommand