Skip to content

Commit e06b2bb

Browse files
committed
handleResumed
1 parent 4716574 commit e06b2bb

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

  • src/Discord/Voice/Client

src/Discord/Voice/Client/WS.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
use Discord\Factory\SocketFactory;
1818
use Discord\Parts\Voice\UserConnected;
1919
use Discord\Voice\Client;
20+
use Discord\Voice\Resumed;
2021
use Discord\Voice\SessionDescription;
2122
use Discord\Voice\Speaking;
2223
use Discord\WebSockets\Op;
@@ -386,6 +387,18 @@ protected function handleHello(Payload $data): void
386387
);
387388
}
388389

390+
/**
391+
* Handles the 'resumed' event for the voice client.
392+
*
393+
* @param Payload $data
394+
*/
395+
protected function handleResumed(object $data): void
396+
{
397+
/** @var Resumed */
398+
$resumed = $this->discord->factory(Resumed::class, (array) $data->d, true);
399+
$this->discord->getLogger()->debug('received resumed packet', ['data' => $resumed]);
400+
}
401+
389402
protected function handleDavePrepareTransition($data): void
390403
{
391404
$this->discord->logger->debug('DAVE Prepare Transition', ['data' => $data]);

0 commit comments

Comments
 (0)