Skip to content

Don't cause an error to be logged when Discord sends a payload body the lib is not designed to handle

Mateusz Brawański requested to merge github/fork/uwx/patch-77 into master

Created by: uwx

Summary

This occurs with events such as PRESENCE_REPLACE and SESSIONS_REPLACE, which are not meant to be sent to bot accounts but they are because HAHA WHY NOT

Changes proposed

  • Log a warning instead of an error when the dispatch payload data is not a JSON object

Notes

I love this API

Merge request reports

Loading