We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b78107e commit 84fed56Copy full SHA for 84fed56
src/Discord/Voice/VoiceClient.php
@@ -1393,12 +1393,12 @@ protected function sendBuffer(string $data): void
1393
*/
1394
public function setSpeaking(int|bool $speaking = self::MICROPHONE): void
1395
{
1396
+ $speaking = (int) $speaking;
1397
+
1398
if ($this->speaking === $speaking) {
1399
return;
1400
}
1401
- $speaking = (int) $speaking;
-
1402
if (! $this->ready) {
1403
throw new \RuntimeException('Voice Client is not ready.');
1404
@@ -1408,6 +1408,7 @@ public function setSpeaking(int|bool $speaking = self::MICROPHONE): void
1408
[
1409
'speaking' => $speaking,
1410
'delay' => 0,
1411
+ 'ssrc' => $this->ssrc,
1412
],
1413
));
1414
0 commit comments