reset loop state on leave/stop

This commit is contained in:
2024-06-18 15:49:58 +02:00
parent c0d9f6cad5
commit dbaf1a1374
7 changed files with 51 additions and 19 deletions

View File

@@ -23,6 +23,10 @@ pub(crate) async fn stop(
return Ok(());
};
state.guild_settings.entry(guild_id).and_modify(|settings| {
settings.loop_queue = false;
});
if let Some(call_lock) = state.songbird.get(guild_id) {
let call = call_lock.lock().await;
call.queue().stop();