dank074 / Discord-video-stream

Experiment for making video streaming work for discord selfbots.
176 stars 32 forks source link

Discord Voice Updates #99

Open dank074 opened 1 week ago

dank074 commented 1 week ago

Discord announced that they will be enforcing changes to their voice connections:

Voice Encryption Modes:

Voice Gateway Version 8 & Deprecation of Older Versions:

  • Version 8: The latest voice gateway version supports Buffered Resume, which re-sends lost messages, enhancing voice connection stability.
  • ⚠️ Deprecation of Older Versions: We are deprecating voice gateway versions older than 4, which are over 7 years old.
  • ⚠️ Deprecation of Default Voice Gateway Version: Specifying a voice gateway version will be mandatory as the default option has been removed.
  • Action Required: Ensure your systems specify a voice gateway version and that you are using an available version. Versions older than 4 will also be discontinued on November 18th, 2024.

Important Note on Voice State Updates:

  • When changing channels within the same guild, you may receive a VOICE_SERVER_UPDATE with the same endpoint as before. However, the token will change, and you cannot reuse the previous session. Please handle this appropriately in your implementations.

Out of all these changes it seems that only the encryption one will impact this project. Currently we force xsalsa20_poly1305_lite encryption, which will be deprecated in November. We currently connect to version 7 of the voice gateway, so we are not impacted by the older ones being deprecated. We do specify it in the connection params

So, to summarize, these are the changes that we will probably have to make before November:

longnguyen2004 commented 1 week ago

They finally documented the AES mode after years, and after people already reverse engineered it 🤣 Better late than never I guess