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/client/mod.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/client/mod.rs')
| -rw-r--r-- | src/client/mod.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/client/mod.rs b/src/client/mod.rs index a8b44dd..cc7164f 100644 --- a/src/client/mod.rs +++ b/src/client/mod.rs @@ -379,7 +379,7 @@ impl Client { /// /// [`GuildCreate`]: ../model/enum.Event.html#variant.GuildCreate pub fn on_guild_create<F>(&mut self, handler: F) - where F: Fn(Context, LiveGuild) + Send + Sync + 'static { + where F: Fn(Context, Guild) + Send + Sync + 'static { self.event_store.lock() .unwrap() .on_guild_create = Some(Arc::new(handler)); @@ -852,7 +852,7 @@ impl Client { /// [`Role`]: ../model/struct.Role.html /// [`Cache`]: ../ext/cache/struct.Cache.html pub fn on_guild_delete<F>(&mut self, handler: F) - where F: Fn(Context, Guild, Option<LiveGuild>) + Send + Sync + 'static { + where F: Fn(Context, PartialGuild, Option<Guild>) + Send + Sync + 'static { self.event_store.lock() .unwrap() .on_guild_delete = Some(Arc::new(handler)); @@ -919,7 +919,7 @@ impl Client { /// /// [`GuildUpdate`]: ../model/enum.Event.html#variant.GuildUpdate pub fn on_guild_update<F>(&mut self, handler: F) - where F: Fn(Context, Option<LiveGuild>, Guild) + Send + Sync + 'static { + where F: Fn(Context, Option<Guild>, PartialGuild) + Send + Sync + 'static { self.event_store.lock() .unwrap() .on_guild_update = Some(Arc::new(handler)); @@ -1001,7 +1001,7 @@ impl Client { /// [`Role`]: ../model/struct.Role.html /// [`Cache`]: ../ext/cache/struct.Cache.html pub fn on_guild_delete<F>(&mut self, handler: F) - where F: Fn(Context, Guild) + Send + Sync + 'static { + where F: Fn(Context, PartialGuild) + Send + Sync + 'static { self.event_store.lock() .unwrap() .on_guild_delete = Some(Arc::new(handler)); @@ -1065,7 +1065,7 @@ impl Client { /// /// [`GuildUpdate`]: ../model/enum.Event.html#variant.GuildUpdate pub fn on_guild_update<F>(&mut self, handler: F) - where F: Fn(Context, Guild) + Send + Sync + 'static { + where F: Fn(Context, PartialGuild) + Send + Sync + 'static { self.event_store.lock() .unwrap() .on_guild_update = Some(Arc::new(handler)); |