Skip to content

Conversation

Paillat-dev
Copy link
Member

@Paillat-dev Paillat-dev commented Aug 19, 2025

Summary

fixes: #2865

Docs reference: https://discord.com/developers/docs/topics/opcodes-and-status-codes#voice-voice-close-event-codes

For some reason, when receiving 4014 py-cord tried to resume the connection, even though discord explicitly stated

Disconnect individual client (you were kicked, the main gateway session was dropped, etc.). Should not reconnect.

Information

  • This PR fixes an issue.
  • This PR adds something new (e.g. new method or parameters).
  • This PR is a breaking change (e.g. methods or parameters removed/renamed).
  • This PR is not a code change (e.g. documentation, README, typehinting,
    examples, ...).

Checklist

  • I have searched the open pull requests for duplicates.
  • If code changes were made then they have been tested.
    • I have updated the documentation to reflect the changes.
  • If type: ignore comments were used, a comment is also left explaining why.
  • I have updated the changelog to include these changes.

@Paillat-dev
Copy link
Member Author

Actually, this has more to it than I thought.

@Paillat-dev
Copy link
Member Author

The more to it in question is that voice in py-cord is massively outdated and makes a lot of incorrect assumptions about how the voice ws work.

@Paillat-dev Paillat-dev marked this pull request as ready for review August 19, 2025 10:02
@Paillat-dev Paillat-dev requested a review from a team as a code owner August 19, 2025 10:02
@pullapprove4 pullapprove4 bot requested review from Lulalaby and plun1331 August 19, 2025 10:02
@Paillat-dev
Copy link
Member Author

Actually, Discord is not a stable platform

@Paillat-dev Paillat-dev deleted the fix/voice-4014 branch August 20, 2025 11:30
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.

When disconnecting the bot during audio playback, ffmpeg continues to lock the file.
1 participant