queue system improved

This commit is contained in:
2024-08-08 20:46:22 +02:00
parent 772d5d2a97
commit 10b7d4d7e3
23 changed files with 196 additions and 275 deletions

View File

@@ -15,12 +15,12 @@ use poise::CreateReply;
pub async fn leave(ctx: Context<'_>) -> Result<(), Error> {
let guild_id = ctx.guild_id().unwrap();
let manager = songbird::get(&ctx.serenity_context())
let manager = songbird::get(ctx.serenity_context())
.await
.expect("Songbird client placed at init")
.clone();
if !manager.get(guild_id).is_some() {
if manager.get(guild_id).is_none() {
let msg = "I am not in a voice channel!";
ctx.send(CreateReply::default().embed(error_embed(ctx, msg).await.unwrap()))
.await?;