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:
parent
65bb7f6cac
commit
2de6381f9d
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue