diff options
| author | Maiddog <[email protected]> | 2017-08-27 17:54:16 -0500 |
|---|---|---|
| committer | alex <[email protected]> | 2017-08-28 00:54:16 +0200 |
| commit | 4e360cf86a74051e2d4f98758c65ae29b97b7b8b (patch) | |
| tree | 6f2a02381b507432b089dbdeeabeb89ff496efe8 /examples/06_voice/src | |
| parent | Prevent malformed opus data from crashing the bot process (#149) (diff) | |
| download | serenity-4e360cf86a74051e2d4f98758c65ae29b97b7b8b.tar.xz serenity-4e360cf86a74051e2d4f98758c65ae29b97b7b8b.zip | |
Fix examples (#151)
Diffstat (limited to 'examples/06_voice/src')
| -rw-r--r-- | examples/06_voice/src/main.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/06_voice/src/main.rs b/examples/06_voice/src/main.rs index d074eb8..40d8817 100644 --- a/examples/06_voice/src/main.rs +++ b/examples/06_voice/src/main.rs @@ -191,7 +191,7 @@ command!(play(ctx, msg, args) { }, }; - if let Some(handler) = ctx.shard.lock().unwrap().manager.get(guild_id) { + if let Some(handler) = ctx.shard.lock().manager.get(guild_id) { let source = match voice::ytdl(url) { Ok(source) => source, Err(why) => { @@ -221,7 +221,7 @@ command!(undeafen(ctx, msg) { }, }; - if let Some(handler) = ctx.shard.lock().unwrap().manager.get(guild_id) { + if let Some(handler) = ctx.shard.lock().manager.get(guild_id) { handler.deafen(false); check_msg(msg.channel_id.say("Undeafened")); @@ -240,7 +240,7 @@ command!(unmute(ctx, msg) { }, }; - if let Some(handler) = ctx.shard.lock().unwrap().manager.get(guild_id) { + if let Some(handler) = ctx.shard.lock().manager.get(guild_id) { handler.mute(false); check_msg(msg.channel_id.say("Unmuted")); |