aboutsummaryrefslogtreecommitdiff
path: root/tests/test_msg_builder.rs
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2017-12-20 10:56:15 -0800
committerZeyla Hellyer <[email protected]>2017-12-20 11:06:24 -0800
commitf2fa349d831c1db59993341284049ffbd56dde3b (patch)
treeab31444f6e44d0102f938ef646ccee6da38ff411 /tests/test_msg_builder.rs
parentAdd variant adapters to Channel (#238) (diff)
downloadserenity-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_msg_builder.rs')
-rw-r--r--tests/test_msg_builder.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test_msg_builder.rs b/tests/test_msg_builder.rs
index bbb0dd7..c291bf5 100644
--- a/tests/test_msg_builder.rs
+++ b/tests/test_msg_builder.rs
@@ -33,6 +33,7 @@ fn no_free_formatting() {
fn mentions() {
let content_emoji = MessageBuilder::new()
.emoji(&Emoji {
+ animated: false,
id: EmojiId(32),
name: "Rohrkatze".to_string(),
managed: false,