Transport Entities
Created by: Neuheit
Summary
There are several "transport" entities that can be found here that seem unnecessary to have.
Details
From what I could gather, these transport entities are serialized by Newtonsoft which are then used to initialize the actual entities, either in the client or that entity's constructor. I'm confused on why the library does this, as it would make more sense to just serialize those properties directly (like what is done in DiscordGuild
).
Here is an example:
xp.Activity = new DiscordActivity(xp.RawActivity);
This just seems unneeded when the raw activity could have just been the actual activity. Is there a reason why the lib does it this way, and not directly like in a DiscordGuild
?