Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A toggle for clearing the queue after the bot has left the channel #166

Merged
merged 2 commits into from
Jun 18, 2024

Conversation

thisRandomm
Copy link

In Lavalink 4.X.X the queue is managed by Lavalink itself, and becuase of that, the tracks in the queue persist even after the bot leaves the channel, and they stay there until Lavalink is restarted. I found this a little bit annoying at times, so I added a toggle in the config for whether or not the queue should be cleared upon calling Lavanode.LeaveAsync()

In Lavalink 4.X.X the queue is managed by Lavalink itself, and becuase of that, the tracks in the queue persist even after the bot leaves the channel, and they stay there until Lavalink is restarted. I found this a little bit annoying at times, so I added a toggle in the config for whether or not the queue should be cleared upon calling Lavanode.LeaveAsync()
@Yucked
Copy link
Owner

Yucked commented Jun 16, 2024

LavaPlayerExtensions.Queue.TryRemove(voiceChannel.GuildId, out _); should be sufficient

@Yucked Yucked added the 🐞Buggy Bug Buggy bug buggies. label Jun 16, 2024
src/LavaNode.cs Show resolved Hide resolved
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need for preserving queue

It just clears the queue now
@Yucked Yucked merged commit 1c7ca60 into Yucked:v7 Jun 18, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞Buggy Bug Buggy bug buggies.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants