Make Embed Types Deserializable
This commit is contained in:
parent
fe1063167f
commit
eb648b94d9
1 changed files with 2 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
|||
using System.Runtime.Serialization;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Geekbot.Core.Interactions.Embed
|
||||
{
|
||||
|
@ -8,6 +9,7 @@ namespace Geekbot.Core.Interactions.Embed
|
|||
/// Embed types should be considered deprecated and might be removed in a future API version.
|
||||
/// </summary>
|
||||
/// <see href="https://discord.com/developers/docs/resources/channel#embed-object-embed-types" />
|
||||
[JsonConverter(typeof(JsonStringEnumConverter))]
|
||||
public enum EmbedTypes
|
||||
{
|
||||
/// <summary>
|
||||
|
|
Loading…
Reference in a new issue