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: do not emit audioTrackRemove event upon jumping to a track #1898

Merged
merged 1 commit into from
Apr 26, 2024

Conversation

mateie
Copy link
Contributor

@mateie mateie commented Apr 26, 2024

Changes

Added a boolean parameter named emitEvent which defaults to true for <GuildQueuePlayerNode>.jump.

I ran into an issue, where I would like to jump to a track without it emitting the event audioTrackRemove, I think that is a bug If it's not please let me know. This introduces a temporary fix for it. It can be modified to be extendable. It defaults to true, so the code doesn't break in other areas, so it's semi-optional not entirely but I don't know how to word it. It can be also changed from defaulting it to true, it being an optional parameter. It's dependent on how you want it to behave.

Status

  • [✔️] These changes have been tested and formatted properly.
  • [❌] This PR includes only documentation changes, no code change.
  • [❌] This PR introduces some Breaking changes.

Copy link

vercel bot commented Apr 26, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
discord-player-website ⬜️ Ignored (Inspect) Apr 26, 2024 5:35am

@twlite twlite changed the title Temporary fix to not emit audioTrackRemove event upon jumping to a track fix: do not emit audioTrackRemove event upon jumping to a track Apr 26, 2024
@twlite twlite merged commit d2172e8 into Androz2091:master Apr 26, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants