Skip to content

DAVE voice encryption not supported #3

@valzargaming

Description

@valzargaming

Environment

  • PHP Version:
    • ^8.1.2
  • DiscordPHP Version:
    • ^10.46.2

Describe the bug
DiscordPHP currently does not support DAVE (Discord Audio/Video Encryption). When connecting to voice, Discord may negotiate DAVE instead of the older encryption modes, which results in the voice connection failing or remaining unusable because the encryption mode is not implemented in DiscordPHP.

This appears to be due to Discord transitioning voice connections toward DAVE, while DiscordPHP still expects the legacy voice encryption modes.

To Reproduce
Steps to reproduce the behavior:

  1. Create a DiscordPHP client.
  2. Attempt to connect to a voice channel.
  3. Observe that the voice connection cannot properly initialize when DAVE is negotiated.

Example:

$discord->on('ready', function ($discord) {
    if ($channel = $discord->getChannel('VOICE_CHANNEL_ID')) {
        $discord->joinVoiceChannel($channel);
    }
});

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requesthelp wantedExtra attention is needed
No fields configured for Feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions