aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
author---redacted--- <[email protected]>2017-05-19 00:05:14 -0500
committerzeyla <[email protected]>2017-05-18 22:05:14 -0700
commit6853daf4d04719a9a8a081151bd85336e160a752 (patch)
treeecfbb9488c43589013853de603197408e4074cfc /examples
parentAllow unreachable_code lint in command! macro (diff)
downloadserenity-6853daf4d04719a9a8a081151bd85336e160a752.tar.xz
serenity-6853daf4d04719a9a8a081151bd85336e160a752.zip
Fix call to VoiceManager.join in example 06
`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`.
Diffstat (limited to 'examples')
-rw-r--r--examples/06_voice/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/06_voice/src/main.rs b/examples/06_voice/src/main.rs
index 979ea1f..6bc7fb5 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())));
});