Remove OptionChoice type inheritors in favour of just supporting strings as values
This commit is contained in:
parent
e20faa43e1
commit
913ea23732
3 changed files with 0 additions and 42 deletions
|
@ -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; }
|
||||
}
|
||||
}
|
|
@ -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; }
|
||||
}
|
||||
}
|
|
@ -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; }
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue