Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix deserialisation of
Token
type (serenity-rs#3086)
The `Deserialize` implementation neglects to add the `Bot ` prefix to the string when it is deserialised. This adds `TryFrom` implementations for `&str` and `String` and tells serde to deserialise `Token` using the `TryFrom<&str>` implementation, which will prepend the `Bot ` prefix. Fixes serenity-rs#3085
- Loading branch information