diff options
| author | Zeyla Hellyer <[email protected]> | 2017-04-27 17:04:13 -0700 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-04-27 17:04:13 -0700 |
| commit | 822a4fe9d369f942948fafe5b8b8b8a869116ccb (patch) | |
| tree | 45ff36071232745cfc4ca26b6d5337bb14cf3fda /src/ext/framework | |
| parent | Add `is_nsfw` check to channels (diff) | |
| download | serenity-822a4fe9d369f942948fafe5b8b8b8a869116ccb.tar.xz serenity-822a4fe9d369f942948fafe5b8b8b8a869116ccb.zip | |
Fix non-custom emoji deserialization
Deserializing a non-custom emoji would fail, as an Id would always be
expected.
To fix this, special-case that if a name and id are both present, to
deserialize it as a Custom emoji reaction. Otherwise, use only the name
and deserialize as a basic reaction.
Diffstat (limited to 'src/ext/framework')
0 files changed, 0 insertions, 0 deletions