diff options
| author | Zeyla Hellyer <[email protected]> | 2017-04-25 15:46:18 -0700 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-04-25 15:46:18 -0700 |
| commit | 9739d918931978f46cfb16ca1d860936d7a4a6dd (patch) | |
| tree | f8c6c7e3105747514adbce4a9975553a0cbc6af1 /tests/resources | |
| parent | Fix embed length check (diff) | |
| download | serenity-9739d918931978f46cfb16ca1d860936d7a4a6dd.tar.xz serenity-9739d918931978f46cfb16ca1d860936d7a4a6dd.zip | |
Fix decoding for `CurrentUser.discriminator`
Due to the serde 1.0 upgrade, integers are no longer automatically
deserialized from Strings. To resolve this, create a visitor that
performs the operation based on the input.
Diffstat (limited to 'tests/resources')
| -rw-r--r-- | tests/resources/ready_1.json | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/resources/ready_1.json b/tests/resources/ready_1.json new file mode 100644 index 0000000..fa3737a --- /dev/null +++ b/tests/resources/ready_1.json @@ -0,0 +1 @@ +{"v":6,"user_settings":{},"user":{"verified":true,"username":"Ein","mfa_enabled":true,"id":"272502210401665025","email":null,"discriminator":"7305","bot":true,"avatar":"baa93b1247ec074e2aa0cd407ac61794"},"session_id":"f97bdc3210d0da33a3c61d8363e68579","relationships":[],"private_channels":[{"type":1,"recipients":[{"username":"zeyla","id":"114941315417899012","discriminator":"5479","avatar":"a_84b17244128d893e1f09d8d9ac5d8448"}],"last_message_id":"284553955302834176","id":"284553953918582785"}],"presences":[],"guilds":[{"unavailable":true,"id":"244567637332328449"}],"_trace":["discord-gateway-prd-1-19","discord-sessions-prd-1-6"]} |