Compare commits

...

2 Commits

Author SHA1 Message Date
577f286773 Unbound Future 2023-03-12 14:46:09 -04:00
51053b043b Remove hello from join 2023-03-12 14:15:02 -04:00

View File

@@ -14,7 +14,6 @@ pub async fn join(ctx: &Context, msg: &Message) -> CommandResult {
.voice_states .voice_states
.get(&msg.author.id) .get(&msg.author.id)
.and_then(|voice_state| voice_state.channel_id); .and_then(|voice_state| voice_state.channel_id);
msg.channel_id.say(&ctx.http, "pong!").await?;
let connect_to = match channel_id { let connect_to = match channel_id {
Some(channel) => channel, 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(()) Ok(())
} }