File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717use Discord \Factory \SocketFactory ;
1818use Discord \Parts \Voice \UserConnected ;
1919use Discord \Voice \Client ;
20+ use Discord \Voice \Resumed ;
2021use Discord \Voice \SessionDescription ;
2122use Discord \Voice \Speaking ;
2223use 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 ]);
You can’t perform that action at this time.
0 commit comments