DiscordPHP-Voice Documentation

User
in package

FinalYes
Tags
since
10.19.0

Table of Contents

Properties

$decoder  : Process
$discord  : Discord
$part  : Speaking|null
$ssrc  : int
$stream  : ReceiveStream
$voiceClient  : VoiceClient

Methods

__construct()  : mixed

Properties

$decoder

protected Process $decoder

$discord

protected Discord $discord

$part

protected Speaking|null $part = null

$ssrc

protected int $ssrc

Methods

__construct()

public __construct(Discord $discord, VoiceClient $voiceClient, int $ssrc, Process $decoder, ReceiveStream $stream[, Speaking|null $part = null ]) : mixed
Parameters
$discord : Discord

The Discord client.

$voiceClient : VoiceClient

The voice connection this user is heard on.

$ssrc : int

The RTP SSRC assigned to this user's audio.

$decoder : Process

The per-user Opus-to-PCM decoder process.

$stream : ReceiveStream

The stream emitting this user's decoded audio.

$part : Speaking|null = null

The last received speaking payload, if any.

On this page

Search results