diff options
| author | Zeyla Hellyer <[email protected]> | 2017-12-20 10:56:15 -0800 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-12-20 11:06:24 -0800 |
| commit | f2fa349d831c1db59993341284049ffbd56dde3b (patch) | |
| tree | ab31444f6e44d0102f938ef646ccee6da38ff411 /tests/resources | |
| parent | Add variant adapters to Channel (#238) (diff) | |
| download | serenity-f2fa349d831c1db59993341284049ffbd56dde3b.tar.xz serenity-f2fa349d831c1db59993341284049ffbd56dde3b.zip | |
Add `animated` to `Emoji` and `ReactionType`
Adds an animated structfield to `Emoji` and `ReactionType`'s `Custom`
variant, which defaults to false if not present.
A test has been added for deserializing it, taken from a REST API GET
Emojis response.
(cherry picked from commit 5286949f424e824784344ebb7b7af4e52fb819c3)
Diffstat (limited to 'tests/resources')
| -rw-r--r-- | tests/resources/emoji_animated.json | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/resources/emoji_animated.json b/tests/resources/emoji_animated.json new file mode 100644 index 0000000..18173bb --- /dev/null +++ b/tests/resources/emoji_animated.json @@ -0,0 +1,14 @@ +{ + "managed": false, + "name": "abc", + "roles": [], + "user": { + "username": "zeyla", + "discriminator": "5479", + "id": "114941315417899012", + "avatar": "d8c3dacd468ef9e48ca28add856fbfe2" + }, + "require_colons": true, + "animated": false, + "id": "300000000000000000" +} |