Skip to content

fix: wire setDucking into PlayerManager - #239

Merged
1Lucas1apk merged 1 commit into
PerformanC:devfrom
Akinori107:dev
Sep 16, 2026
Merged

1Lucas1apk merged 1 commit into
PerformanC:devfrom
Akinori107:dev

Conversation

@Akinori107

Copy link
Copy Markdown
Contributor

Changes

PlayerManager gets the missing setDucking(guildId, enabled) bridge, mirroring setLoudnessNormalizer, routes to runClusterMutation when clustered, otherwise resolves the local player and forwards to player.setDucking(enabled)

Why

setDucking was already declared on the route interfaces (sessions.id.players.ts, sessions.id.groups.ts) and implemented on Player, but PlayerManager never got the bridging method, so session.players.setDucking(...) didn't exist and toggling ducking crashed with a 500 on both endpoints

Checkmarks

  • The modified endpoints have been tested.
  • Used the same indentation as the rest of the project.
  • Still compatible with LavaLink clients.

Additional information

tsc passes

@1Lucas1apk 1Lucas1apk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Could you run "npm run build" (or "npx tsc") before merging this?

It looks like the generated output hasn't been updated yet. Since we keep "dist" tracked in the repository, we should make sure the compiled files are in sync with the source changes.

Other than that, LGTM!

setDucking was declared in the route interface and already implemented on
Player, but PlayerManager never got the bridging method, so toggling
ducking crashed with a 500
@Akinori107

Copy link
Copy Markdown
Contributor Author

Could you run "npm run build" (or "npx tsc") before merging this?

It looks like the generated output hasn't been updated yet. Since we keep "dist" tracked in the repository, we should make sure the compiled files are in sync with the source changes.

Other than that, LGTM!

thanks for the review, fixed it

@1Lucas1apk
1Lucas1apk merged commit 3da2f6c into PerformanC:dev Sep 16, 2026
1 check passed
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 16, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants