Skip to content

Commit

Permalink
Fix call to VoiceManager.join in example 06
Browse files Browse the repository at this point in the history
`VoiceManager.join(&mut self, guild_id: Option<GuildId>, ...)`
has been changed to
`VoiceManager.join<G>(&mut self, guild_id: G, ...) where G: Into<GuildId>`.

We should no longer wrap `guild_id` with `Some`.
  • Loading branch information
barzamin authored and zeyla committed May 19, 2017
1 parent eb43b9c commit 6853daf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/06_voice/src/main.rs
Expand Up @@ -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())));
});
Expand Down

0 comments on commit 6853daf

Please sign in to comment.