Make Embed Types Deserializable

This commit is contained in:
Daan Boerlage 2021-11-06 18:18:09 +01:00
parent fe1063167f
commit eb648b94d9
Signed by: daan
GPG key ID: FCE070E1E4956606

View file

@ -1,4 +1,5 @@
using System.Runtime.Serialization; using System.Runtime.Serialization;
using System.Text.Json.Serialization;
namespace Geekbot.Core.Interactions.Embed 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. /// Embed types should be considered deprecated and might be removed in a future API version.
/// </summary> /// </summary>
/// <see href="https://discord.com/developers/docs/resources/channel#embed-object-embed-types" /> /// <see href="https://discord.com/developers/docs/resources/channel#embed-object-embed-types" />
[JsonConverter(typeof(JsonStringEnumConverter))]
public enum EmbedTypes public enum EmbedTypes
{ {
/// <summary> /// <summary>