Skip to content

Respect the port number from VoiceServerUpdate#285

Merged
GnomedDev merged 1 commit intoserenity-rs:currentfrom
GnomedDev:remove-port-stripping
Jul 25, 2025
Merged

Respect the port number from VoiceServerUpdate#285
GnomedDev merged 1 commit intoserenity-rs:currentfrom
GnomedDev:remove-port-stripping

Conversation

@GnomedDev
Copy link
Copy Markdown
Member

Discord Staff have notified bot/library developers that they will be adding voice servers soon with port numbers other than the fixed port that has been used forever, and we need to respect this.

Although the code only stripped 80 from the endpoint, let's get rid of all hard coding and just pass it in sensibly.

Copy link
Copy Markdown
Member

@FelixMcFelix FelixMcFelix left a comment

Choose a reason for hiding this comment

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

Fair enough. This behaviour has been in since time immemorial at this point. The change makes sense, I think you just need to cargo +nightly fmt.

@GnomedDev GnomedDev force-pushed the remove-port-stripping branch from 0020676 to ef06ae1 Compare July 25, 2025 22:47
@GnomedDev GnomedDev merged commit 18c282e into serenity-rs:current Jul 25, 2025
10 checks passed
@GnomedDev GnomedDev deleted the remove-port-stripping branch July 25, 2025 23:00
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