VoiceException
extends
Throwable
in
Marker interface for all DiscordPHP-Voice exceptions.
Consumers can catch any library-thrown exception with a single catch block:
$discord->voice->joinChannel($channel)->catch(function (VoiceException $e) {
// handles all voice library errors
});