Skip to content

Fix message_create not using correct deserialization method

Mateusz Brawański requested to merge github/fork/uwx/patch-68-or-so into master

Created by: uwx

Summary

I broke it so now I fixe it

Details

Same problem as #264 except this time it's on receiving message through socket instead of through REST. Fixes #266 (closed).

Changes proposed

  • Make message_create and message_update use ToDiscordObject for deserializing DiscordMessage
  • Log error instead of swallowing socket message exceptions (normally it would only log exceptions in event listeners...)

Notes

Special thanks to Allan on discord for finding the affecting commit! Please merge this as soon as possible. Please. They've been keeping me here for months and forcing me to contribute. I haven't eaten in weeks. Send help.

Merge request reports

Loading