User
in package
FinalYes
Tags
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
$stream
protected
ReceiveStream
$stream
$voiceClient
protected
VoiceClient
$voiceClient
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.