diff options
| author | illia k <[email protected]> | 2017-05-22 22:49:07 +0300 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-05-22 12:49:07 -0700 |
| commit | 8f88c6b0613199492ebca8cd9f2bf4dd5c97add7 (patch) | |
| tree | ea2f86a016e8e6a4dc91f8b7492fcb716f946915 /tests/test_deser.rs | |
| parent | Add support for retrieving invites with counts (diff) | |
| download | serenity-8f88c6b0613199492ebca8cd9f2bf4dd5c97add7.tar.xz serenity-8f88c6b0613199492ebca8cd9f2bf4dd5c97add7.zip | |
Handle message type 7 (member join)
When message type 7 is received from the gateway, transform the content
if the type is 7 to a proper greeting.
Additionally, when the type is 6, provide a proper content notifying that a
user has pinned a message to the channel.
These transformations are not done at REST-level when retrieving messages, and
are instead done in `ChannelId::message` and `ChannelId::messages`.
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 8216c57..f4387bc 100644 --- a/tests/test_deser.rs +++ b/tests/test_deser.rs @@ -156,3 +156,8 @@ fn voice_state_update() { fn webhooks_update() { p!(WebhookUpdateEvent, "webhooks_update_1"); } + +#[test] +fn message_type_7() { + p!(MessageCreateEvent, "message_type_7"); +} |