DiscordPHP-Voice Documentation

VoiceException extends Throwable

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
});
Tags
since
10.19.0

Table of Contents

On this page
  • Table Of Contents

Search results