diff options
| author | Zeyla Hellyer <[email protected]> | 2017-12-15 14:33:21 -0800 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-12-15 14:34:10 -0800 |
| commit | 99d17d2975143b0d588c969f7ae6f8d11e62a9e1 (patch) | |
| tree | 74ea2a369180ee343b285cb1c0394f1c8161313a /tests/test_deser.rs | |
| parent | Change type of a couple Guild/PartialGuild fields (diff) | |
| download | serenity-99d17d2975143b0d588c969f7ae6f8d11e62a9e1.tar.xz serenity-99d17d2975143b0d588c969f7ae6f8d11e62a9e1.zip | |
Fix deserialization of `Guild::application_id`
Fix the deserialization of the `Guild::application_id` structfield.
Additionally, create a new ID type for it.
A test has been added for this.
Diffstat (limited to 'tests/test_deser.rs')
| -rw-r--r-- | tests/test_deser.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_deser.rs b/tests/test_deser.rs index 5288da2..4d6c176 100644 --- a/tests/test_deser.rs +++ b/tests/test_deser.rs @@ -58,6 +58,12 @@ fn guild_channel_1_rest() { p!(GuildChannel, "guild_channel_rest_1"); } +// A guild that has some application ID. +#[test] +fn guild_some_application_id() { + p!(Guild, "guild_some_application_id"); +} + // A Discord API GUILD_CREATE. #[test] fn guild_create() { |