aboutsummaryrefslogtreecommitdiff
path: root/tests/resources/message_create_2.json
Commit message (Collapse)AuthorAgeFilesLines
* Fix negative nonces failing to deserializeZeyla Hellyer2017-06-101-0/+23
Negative message nonces caused deserialization errors, as serde would not deserialize integers into strings. To fix this, change `Message::nonce` into an `Option<Snowflake>` from an `Option<String>`. This new `Snowflake` is a wrapper around an `i64`. Use a new `I64Visitor` to deserialize i64s, u64s, and strs into the wanted i64.