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/test_deser.rs | |
| 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/test_deser.rs')
| -rw-r--r-- | tests/test_deser.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_deser.rs b/tests/test_deser.rs index ae9536b..e547e9d 100644 --- a/tests/test_deser.rs +++ b/tests/test_deser.rs @@ -35,6 +35,11 @@ fn channel_update() { p!(ChannelUpdateEvent, "channel_update_1"); } +#[test] +fn emoji_animated() { + p!(Emoji, "emoji_animated"); +} + // A game with null type. #[test] fn game() { |