Skip to content

Add type converter for DiscordComponent

Mateusz Brawański requested to merge github/fork/VelvetThePanda/master into master

Created by: VelvetThePanda

Summary

Fixes an issue where type information is lost in DiscordMessage#Components because the serializer doesn't handle inheritence.

Details

Added a type converter for the current component types.

Old behavior:

Fixed behavior:

Changes proposed

Deserializes components to their proper types when receiving messages from gateway/REST

Notes

I did a good for once :)

Merge request reports

Loading