mirror of
https://github.com/eRgo35/lyra.git
synced 2026-02-04 12:26:10 +01:00
loop plus fixes
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user