FinOCE / Modkit

Your ultimate toolkit for server moderation on Discord
https://modkit.org
GNU General Public License v3.0
0 stars 1 forks source link

Create discriminated unions and converters for api subtypes #18

Open FinOCE opened 1 month ago

FinOCE commented 1 month ago

Created but haven't tested InteractionCallbackDataConverter. It might work, and if so that approach should be able to be used for others. Most should have a type property to make the serialization cleaner and easier as well

FinOCE commented 1 month ago

Fixed above and setup converter for components. Only other type I see that could do with this treatment is channel types but first need to figure out what properties are on each channel type

FinOCE commented 1 month ago

Marking as stale since only non-essential refactoring remains for this task