Compare commits
2 Commits
3e1bb11104
...
577f286773
| Author | SHA1 | Date | |
|---|---|---|---|
| 577f286773 | |||
| 51053b043b |
@@ -14,7 +14,6 @@ pub async fn join(ctx: &Context, msg: &Message) -> CommandResult {
|
||||
.voice_states
|
||||
.get(&msg.author.id)
|
||||
.and_then(|voice_state| voice_state.channel_id);
|
||||
msg.channel_id.say(&ctx.http, "pong!").await?;
|
||||
|
||||
let connect_to = match channel_id {
|
||||
Some(channel) => channel,
|
||||
@@ -25,7 +24,7 @@ pub async fn join(ctx: &Context, msg: &Message) -> CommandResult {
|
||||
},
|
||||
};
|
||||
|
||||
vc::join(ctx.clone(), guild.clone(), connect_to);
|
||||
vc::join(ctx.clone(), guild.clone(), connect_to).await;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user