8000 Parts serialization need to be safer · Issue #1302 · discord-php/DiscordPHP · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Parts serialization need to be safer #1302
Open
@EligiusSantori

Description

@EligiusSantori

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleInformation contained within may be old or outdated.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0