DiscordPHP-Voice Documentation

LibDaveNotFoundException extends Exception
in package
implements VoiceException

Thrown when libdave cannot be loaded and the voice connection cannot proceed.

Discord requires the DAVE E2EE protocol for all voice/video connections since March 1st, 2026.

Tags
see
https://discord.com/developers/docs/change-log#future-deprecation-and-discontinuation-of-non-e2ee-voice
since
8.1.0

Table of Contents

Interfaces

VoiceException
Marker interface for all DiscordPHP-Voice exceptions.

Methods

fromRuntimeError()  : self
Creates an instance from a message string.

Methods

fromRuntimeError()

Creates an instance from a message string.

public static fromRuntimeError([string $message = '' ]) : self

When is provided it is used verbatim; this is the path taken by Runtime::resolveDefaultLibraryPath() when the library file cannot be found on disk.

When is omitted (empty string), a descriptive message is built that includes the Discord announcement link, installation instructions, and the runtime load error (if one is available from Runtime::getLastLoadError()). This is the path taken by callers that check Runtime::isAvailable() after a failed load.

Parameters
$message : string = ''
Tags
throws
LibDaveNotFoundException
Return values
self
On this page

Search results