aboutsummaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorAustin Hellyer <[email protected]>2017-01-26 09:04:43 -0800
committerAustin Hellyer <[email protected]>2017-01-26 09:04:43 -0800
commitea14cfdcdcbb5d2563848b9e3cdc2207e0abfbea (patch)
treef88a8613abb479948719fdc47789dbb7a402875b /src/client
parentMake Guild::create_channel return a GuildChannel (diff)
downloadserenity-ea14cfdcdcbb5d2563848b9e3cdc2207e0abfbea.tar.xz
serenity-ea14cfdcdcbb5d2563848b9e3cdc2207e0abfbea.zip
Update examples for OOP update
Diffstat (limited to 'src/client')
-rw-r--r--src/client/context.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/context.rs b/src/client/context.rs
index e2371a0..bb87c35 100644
--- a/src/client/context.rs
+++ b/src/client/context.rs
@@ -161,7 +161,7 @@ impl Context {
///
/// ```rust,ignore
/// // assuming you are in a context
- /// context.broadcast_typing(context.channel_id);
+ /// let _ = context.broadcast_typing();
/// ```
///
/// # Errors
@@ -530,7 +530,7 @@ impl Context {
///
/// // assuming you are in a context
///
- /// let guild_id = message.guild_id.unwrap();
+ /// let guild_id = message.guild_id().unwrap();
/// context.get_guilds(GuildPagination::After(guild_id, 10)).unwrap();
/// ```
///
@@ -790,7 +790,7 @@ impl Context {
///
/// ```rust,ignore
/// // assuming you are in a context
- /// let _ = context.send_message(message.channel_id, |f| f.content("test"));
+ /// let _ = context.send_message(|f| f.content("test"));
/// ```
///
/// Send a message on `!ping` with a very descriptive [`Embed`]. This sends
@@ -829,7 +829,7 @@ impl Context {
/// let cache = CACHE.read().unwrap();
/// let channel = cache.get_guild_channel(message.channel_id);
///
- /// let _ = context.send_message(message.channel_id, |m| m
+ /// let _ = context.send_message(|m| m
/// .content("Pong! Here's some info")
/// .embed(|e| e
/// .colour(Colour::dark_gold())