From aab9a33071e34341782feeb961eb64782bad3464 Mon Sep 17 00:00:00 2001 From: Josh Dassinger Date: Thu, 19 Aug 2021 15:58:00 -0500 Subject: [PATCH] Remove some test code --- Oxide.Ext.Discord/Entities/Gatway/EventPayload.cs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Oxide.Ext.Discord/Entities/Gatway/EventPayload.cs b/Oxide.Ext.Discord/Entities/Gatway/EventPayload.cs index 244d36c9b..58d8354bd 100644 --- a/Oxide.Ext.Discord/Entities/Gatway/EventPayload.cs +++ b/Oxide.Ext.Discord/Entities/Gatway/EventPayload.cs @@ -1,7 +1,6 @@ using Newtonsoft.Json; using Newtonsoft.Json.Linq; using Oxide.Ext.Discord.Entities.Gatway.Events; -using Oxide.Ext.Discord.Helpers.Converters; using Oxide.Ext.Discord.WebSockets; namespace Oxide.Ext.Discord.Entities.Gatway @@ -12,11 +11,6 @@ namespace Oxide.Ext.Discord.Entities.Gatway [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public class EventPayload { - private static readonly JsonSerializer Serializer = new JsonSerializer - { - Converters = { new DiscordEnumConverter() } - }; - /// /// Op Code for the payload /// @@ -44,7 +38,7 @@ public class EventPayload /// /// Returns a DispatchCode enum value for the EventName if the extension supports it; Else the code will be Unknown /// - public DispatchCode EventCode => EventName?.ToObject(Serializer) ?? DispatchCode.Unknown; + public DispatchCode EventCode => EventName?.ToObject() ?? DispatchCode.Unknown; /// /// Data as JObject