diff options
| author | Illia K <[email protected]> | 2016-11-28 12:28:23 +0000 |
|---|---|---|
| committer | Austin Hellyer <[email protected]> | 2016-11-28 10:16:22 -0800 |
| commit | 6c2c7b73d9fb5ed46b642e323065c560ffef9ef2 (patch) | |
| tree | 8cb587fd6fcd8e3e06f8960475ea2a54432e3d18 /src/ext/cache | |
| parent | Add an initial tiny test suite to get Travis going (diff) | |
| download | serenity-6c2c7b73d9fb5ed46b642e323065c560ffef9ef2.tar.xz serenity-6c2c7b73d9fb5ed46b642e323065c560ffef9ef2.zip | |
Improve docs and add new message builder methods
Add documentation for some missing methods - such as Game methods - and
add more methods to the Message Builder.
Diffstat (limited to 'src/ext/cache')
| -rw-r--r-- | src/ext/cache/mod.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ext/cache/mod.rs b/src/ext/cache/mod.rs index d07f7a6..0981cf3 100644 --- a/src/ext/cache/mod.rs +++ b/src/ext/cache/mod.rs @@ -325,7 +325,7 @@ impl Cache { /// Some(channel) => channel, /// None => { /// context.say("Could not find guild's channel data") - /// .map_err(|why| println!("Err sending message: {:?}", why)); + /// .map_err(|why| println!("Error sending message: {:?}", why)); /// /// return; /// }, @@ -373,8 +373,8 @@ impl Cache { /// let channel = match cache.get_guild_channel(message.channel_id) { /// Some(channel) => channel, /// None => { - /// if let Err(why) = context.say("Err finding channel data") { - /// println!("Err sending message: {:?}", why); + /// if let Err(why) = context.say("Error finding channel data") { + /// println!("Error sending message: {:?}", why); /// } /// }, /// }; @@ -382,8 +382,8 @@ impl Cache { /// match cache.get_member(channel.guild_id, message.author.id) { /// Some(member) => member, /// None => { - /// if let Err(why) = context.say("Err finding member data") { - /// println!("Err sending message: {:?}", why); + /// if let Err(why) = context.say("Error finding member data") { + /// println!("Error sending message: {:?}", why); /// } /// }, /// } @@ -392,7 +392,7 @@ impl Cache { /// let msg = format!("You have {} roles", member.roles.len()); /// /// if let Err(why) = context.say(&msg) { - /// println!("Err sending message: {:?}", why); + /// println!("Error sending message: {:?}", why); /// } /// ``` /// |