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 | |
| 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')
| -rw-r--r-- | src/ext/cache/mod.rs | 12 | ||||
| -rw-r--r-- | src/ext/voice/threading.rs | 6 |
2 files changed, 9 insertions, 9 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); /// } /// ``` /// diff --git a/src/ext/voice/threading.rs b/src/ext/voice/threading.rs index 4110c5f..113c23d 100644 --- a/src/ext/voice/threading.rs +++ b/src/ext/voice/threading.rs @@ -13,7 +13,7 @@ pub fn start(target_id: Target, rx: MpscReceiver<Status>) { ThreadBuilder::new() .name(name) .spawn(move || runner(rx)) - .expect("Err starting voice"); + .expect("Error starting voice"); } fn runner(rx: MpscReceiver<Status>) { @@ -29,7 +29,7 @@ fn runner(rx: MpscReceiver<Status>) { connection = match Connection::new(info) { Ok(connection) => Some(connection), Err(why) => { - error!("Err connecting via voice: {:?}", why); + error!("Error connecting via voice: {:?}", why); None }, @@ -71,7 +71,7 @@ fn runner(rx: MpscReceiver<Status>) { match update { Ok(()) => false, Err(why) => { - error!("Err updating voice connection: {:?}", why); + error!("Error updating voice connection: {:?}", why); true }, |