DiscordPHP-Voice Documentation

TransitionPayload
in package

FinalYes

Table of Contents

Properties

$payload  : string
$transitionId  : int

Methods

__construct()  : mixed
isZeroTransition()  : bool
Returns true when this is a "zero transition" — executed locally, no gateway round-trip.
parse()  : self|null
Parse a raw binary string where the first 2 bytes are a big-endian uint16 transition_id and the remainder is the MLS payload.

Properties

Methods

__construct()

public __construct(int $transitionId, string $payload) : mixed
Parameters
$transitionId : int

The 16-bit transition id this MLS payload belongs to.

$payload : string

The MLS message bytes that follow the 2-byte id prefix.

isZeroTransition()

Returns true when this is a "zero transition" — executed locally, no gateway round-trip.

public isZeroTransition() : bool
Return values
bool

parse()

Parse a raw binary string where the first 2 bytes are a big-endian uint16 transition_id and the remainder is the MLS payload.

public static parse(string $raw) : self|null

Returns null if the input is less than 2 bytes.

Parameters
$raw : string
Return values
self|null
On this page

Search results