diff options
| author | Austin Hellyer <[email protected]> | 2016-11-24 11:26:15 -0800 |
|---|---|---|
| committer | Austin Hellyer <[email protected]> | 2016-11-24 11:26:15 -0800 |
| commit | 290111a02f59f278374a482a8c8df12147ba4ea9 (patch) | |
| tree | a27137c29deb678557122119c882c84963d89604 /src/model/gateway.rs | |
| parent | Ignore WebSocketError::NoDataAvailable (diff) | |
| download | serenity-290111a02f59f278374a482a8c8df12147ba4ea9.tar.xz serenity-290111a02f59f278374a482a8c8df12147ba4ea9.zip | |
Rename guild structs to Guild and PartialGuild
Diffstat (limited to 'src/model/gateway.rs')
| -rw-r--r-- | src/model/gateway.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/model/gateway.rs b/src/model/gateway.rs index 113bb2f..d12205b 100644 --- a/src/model/gateway.rs +++ b/src/model/gateway.rs @@ -87,12 +87,12 @@ pub struct GuildBanRemoveEvent { #[derive(Clone, Debug)] pub struct GuildCreateEvent { - pub guild: LiveGuild, + pub guild: Guild, } #[derive(Clone, Debug)] pub struct GuildDeleteEvent { - pub guild: Guild, + pub guild: PartialGuild, } #[derive(Clone, Debug)] @@ -165,7 +165,7 @@ pub struct GuildUnavailableEvent { #[derive(Clone, Debug)] pub struct GuildUpdateEvent { - pub guild: Guild, + pub guild: PartialGuild, } #[derive(Clone, Copy, Debug)] @@ -555,7 +555,7 @@ impl Event { })) } else { Ok(Event::GuildCreate(GuildCreateEvent { - guild: try!(LiveGuild::decode(Value::Object(value))), + guild: try!(Guild::decode(Value::Object(value))), })) } } else if kind == "GUILD_DELETE" { @@ -565,7 +565,7 @@ impl Event { })) } else { Ok(Event::GuildDelete(GuildDeleteEvent { - guild: try!(Guild::decode(Value::Object(value))), + guild: try!(PartialGuild::decode(Value::Object(value))), })) } } else if kind == "GUILD_EMOJIS_UPDATE" { @@ -623,7 +623,7 @@ impl Event { })) } else if kind == "GUILD_UPDATE" { Ok(Event::GuildUpdate(GuildUpdateEvent { - guild: try!(Guild::decode(Value::Object(value))), + guild: try!(PartialGuild::decode(Value::Object(value))), })) } else if kind == "MESSAGE_ACK" { missing!(value, Event::MessageAck(MessageAckEvent { |