Skip to content

Commit 84fed56

Browse files
committed
Speaking payload must contain SSRC
1 parent b78107e commit 84fed56

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Discord/Voice/VoiceClient.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1393,12 +1393,12 @@ protected function sendBuffer(string $data): void
13931393
*/
13941394
public function setSpeaking(int|bool $speaking = self::MICROPHONE): void
13951395
{
1396+
$speaking = (int) $speaking;
1397+
13961398
if ($this->speaking === $speaking) {
13971399
return;
13981400
}
13991401

1400-
$speaking = (int) $speaking;
1401-
14021402
if (! $this->ready) {
14031403
throw new \RuntimeException('Voice Client is not ready.');
14041404
}
@@ -1408,6 +1408,7 @@ public function setSpeaking(int|bool $speaking = self::MICROPHONE): void
14081408
[
14091409
'speaking' => $speaking,
14101410
'delay' => 0,
1411+
'ssrc' => $this->ssrc,
14111412
],
14121413
));
14131414

0 commit comments

Comments
 (0)