Open
Description
Environment
- PHP Version:
- 8.2
- DiscordPHP Version:
- v10.0.0-RC6
Describe the bug
Hello. I get Given type "poll_result" is not a valid embed type.
and Given type "auto_moderation_message" is not a valid embed type.
errors when trying to serialize some messages (for log purposes). My library version is a bit obsolete but I haven't found "poll_result" and "auto_moderation_message" strings in v10.4.0 code too. Ofc you can implement missed Embed types, but there is no guarantee that library will be well maintained in future.
To Reproduce
Steps to reproduce the behavior:
json_encode($message, 0, 16);
Expected behavior
Original server response would be perfect there, but just skipping unknown parts may work too.