0.2.0 player update

This commit is contained in:
2024-02-07 23:36:46 +01:00
parent 4cf290c840
commit 70c249787c
16 changed files with 112 additions and 122 deletions

View File

@@ -17,7 +17,8 @@ async fn stop(ctx: &Context, msg: &Message) -> CommandResult {
if let Some(handler_lock) = manager.get(guild_id) {
let mut handler = handler_lock.lock().await;
let _queue = handler.queue();
let queue = handler.queue();
queue.stop();
if let Err(e) = handler.deafen(false).await {
check_msg(
@@ -31,10 +32,10 @@ async fn stop(ctx: &Context, msg: &Message) -> CommandResult {
} else {
check_msg(
msg.channel_id
.say(&ctx.http, "Not in a voice channel to undeafen in")
.say(&ctx.http, "Not in a voice channel!")
.await,
);
}
Ok(())
}
}