aboutsummaryrefslogtreecommitdiff
path: root/tests/resources
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2017-12-17 21:45:25 -0800
committerZeyla Hellyer <[email protected]>2017-12-17 21:46:30 -0800
commit2abeea53745b5ddfce33d9e1160c682888850344 (patch)
tree81b535e64c25b27d5819f5c24caf6442101bce8d /tests/resources
parentDefault serde on a couple Ready structfields (diff)
downloadserenity-2abeea53745b5ddfce33d9e1160c682888850344.tar.xz
serenity-2abeea53745b5ddfce33d9e1160c682888850344.zip
Fix `Guild` deser without `system_channel_id`
Fix the deserialization of `model::guild::Guild` when `Guild::system_channel_id` is not present. Additionally, add a test case for this.
Diffstat (limited to 'tests/resources')
-rw-r--r--tests/resources/guild_system_channel_id_missing.json23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/resources/guild_system_channel_id_missing.json b/tests/resources/guild_system_channel_id_missing.json
new file mode 100644
index 0000000..be5c89d
--- /dev/null
+++ b/tests/resources/guild_system_channel_id_missing.json
@@ -0,0 +1,23 @@
+{
+ "id": "244567637332328449",
+ "name": "testtest",
+ "icon": "3af6e2ebf46e85158a5fbc1a4f934bd6",
+ "owner_id": "114941315417899012",
+ "region": "us-east",
+ "afk_timeout": 60,
+ "verification_level": 2,
+ "roles": [],
+ "emojis": [],
+ "features": [],
+ "large": false,
+ "voice_states": [],
+ "unavailable": false,
+ "member_count": 1337,
+ "members": [],
+ "channels": [],
+ "presences": [],
+ "default_message_notifications": 1,
+ "explicit_content_filter": 0,
+ "joined_at": "2017-12-12T00:10:08.769400+00:00",
+ "mfa_level": 0
+}