From 6853daf4d04719a9a8a081151bd85336e160a752 Mon Sep 17 00:00:00 2001 From: ---redacted--- Date: Fri, 19 May 2017 00:05:14 -0500 Subject: [PATCH] Fix call to VoiceManager.join in example 06 `VoiceManager.join(&mut self, guild_id: Option, ...)` has been changed to `VoiceManager.join(&mut self, guild_id: G, ...) where G: Into`. We should no longer wrap `guild_id` with `Some`. --- examples/06_voice/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/06_voice/src/main.rs b/examples/06_voice/src/main.rs index 979ea1f6f00..6bc7fb5e3ec 100644 --- a/examples/06_voice/src/main.rs +++ b/examples/06_voice/src/main.rs @@ -99,7 +99,7 @@ command!(join(ctx, msg, args) { }; let mut shard = ctx.shard.lock().unwrap(); - shard.manager.join(Some(guild_id), connect_to); + shard.manager.join(guild_id, connect_to); check_msg(msg.channel_id.say(&format!("Joined {}", connect_to.mention()))); });