diff options
| author | Zeyla Hellyer <[email protected]> | 2018-01-28 10:17:38 -0800 |
|---|---|---|
| committer | Ken Swenson <[email protected]> | 2018-11-06 20:27:08 -0500 |
| commit | a5182376d11ed33ea28594e5fb2400698742be8b (patch) | |
| tree | 105d50c7851de941e976239979b9e88c1afeb942 /src/model | |
| parent | Bump version (diff) | |
| download | serenity-a5182376d11ed33ea28594e5fb2400698742be8b.tar.xz serenity-a5182376d11ed33ea28594e5fb2400698742be8b.zip | |
Make MessageUpdateEvent::embeds a Vec<Embed>
Instead of deserializing the `embeds` field as a `serde_json::Value`,
deserialize as a `model::channel::Embed`.
Diffstat (limited to 'src/model')
| -rw-r--r-- | src/model/event.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/model/event.rs b/src/model/event.rs index 191c98f..21fe2bc 100644 --- a/src/model/event.rs +++ b/src/model/event.rs @@ -842,7 +842,7 @@ pub struct MessageUpdateEvent { pub mentions: Option<Vec<User>>, pub mention_roles: Option<Vec<RoleId>>, pub attachments: Option<Vec<Attachment>>, - pub embeds: Option<Vec<Value>>, + pub embeds: Option<Vec<Embed>>, } #[cfg(feature = "cache")] |