Remove OptionChoice type inheritors in favour of just supporting strings as values

This commit is contained in:
Daan Boerlage 2021-10-31 23:23:02 +01:00
parent e20faa43e1
commit 913ea23732
Signed by: daan
GPG key ID: FCE070E1E4956606
3 changed files with 0 additions and 42 deletions

View file

@ -1,14 +0,0 @@
using System.Text.Json.Serialization;
namespace Geekbot.Core.Interactions.ApplicationCommand
{
/// <see href="https://discord.com/developers/docs/interactions/application-commands#application-command-object-application-command-option-choice-structure"/>
public record OptionChoiceDouble : OptionChoice
{
/// <summary>
/// value of the choice, up to 100 characters if string
/// </summary>
[JsonPropertyName("value")]
public double Value { get; set; }
}
}

View file

@ -1,14 +0,0 @@
using System.Text.Json.Serialization;
namespace Geekbot.Core.Interactions.ApplicationCommand
{
/// <see href="https://discord.com/developers/docs/interactions/application-commands#application-command-object-application-command-option-choice-structure"/>
public record OptionChoiceInteger : OptionChoice
{
/// <summary>
/// value of the choice, up to 100 characters if string
/// </summary>
[JsonPropertyName("value")]
public int Value { get; set; }
}
}

View file

@ -1,14 +0,0 @@
using System.Text.Json.Serialization;
namespace Geekbot.Core.Interactions.ApplicationCommand
{
/// <see href="https://discord.com/developers/docs/interactions/application-commands#application-command-object-application-command-option-choice-structure"/>
public record OptionChoiceString : OptionChoice
{
/// <summary>
/// value of the choice, up to 100 characters if string
/// </summary>
[JsonPropertyName("value")]
public string Value { get; set; }
}
}