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

Fix queue loop not repeating song after it's finished #294

Merged
merged 1 commit into from
Mar 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions wavelink/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
if TYPE_CHECKING:
from discord.types.voice import GuildVoiceState as GuildVoiceStatePayload
from discord.types.voice import VoiceServerUpdate as VoiceServerUpdatePayload
from typing_extensions import Self

Check warning on line 61 in wavelink/player.py

View workflow job for this annotation

GitHub Actions / Type Coverage and Linting @ 3.x

Import "typing_extensions" could not be resolved from source (reportMissingModuleSource)

from .node import Node
from .types.request import Request as RequestPayload
Expand Down Expand Up @@ -787,6 +787,7 @@

old_previous = self._previous
self._previous = self._current
self.queue._loaded = track

pause: bool
if paused is not None:
Expand All @@ -809,6 +810,7 @@
try:
await self.node._update_player(self.guild.id, data=request, replace=replace)
except LavalinkException as e:
self.queue._loaded = old_previous
self._current = None
self._original = None
self._previous = old_previous
Expand Down
Loading