loop plus fixes

This commit is contained in:
2024-02-08 22:57:59 +01:00
parent 70c249787c
commit 4a0184811e
10 changed files with 174 additions and 14 deletions

View File

@@ -16,18 +16,10 @@ async fn stop(ctx: &Context, msg: &Message) -> CommandResult {
.clone();
if let Some(handler_lock) = manager.get(guild_id) {
let mut handler = handler_lock.lock().await;
let handler = handler_lock.lock().await;
let queue = handler.queue();
queue.stop();
if let Err(e) = handler.deafen(false).await {
check_msg(
msg.channel_id
.say(&ctx.http, format!("Failed: {:?}", e))
.await,
);
}
check_msg(msg.channel_id.say(&ctx.http, "Playback stopped!").await);
} else {
check_msg(