File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -596,20 +596,18 @@ public function handleSendingOfLoginFrame(): void
596596 return ;
597597 }
598598
599+ $ data = [
600+ 'server_id ' => $ this ->vc ->channel ->guild_id ,
601+ 'user_id ' => $ this ->data ['user_id ' ],
602+ 'token ' => $ this ->data ['token ' ],
603+ 'max_dave_protocol_version ' => self ::MAX_DAVE_PROTOCOL_VERSION ,
604+ ];
599605 if (isset ($ this ->discord ->voice_sessions [$ this ->vc ->channel ->guild_id ])) {
600606 $ this ->data ['session ' ] = $ this ->discord ->voice_sessions [$ this ->vc ->channel ->guild_id ];
607+ $ data ['session_id ' ] = $ this ->data ['session ' ];
601608 }
602609
603- $ payload = VoicePayload::new (
604- Op::VOICE_IDENTIFY ,
605- [
606- 'server_id ' => $ this ->vc ->channel ->guild_id ,
607- 'user_id ' => $ this ->data ['user_id ' ],
608- 'session_id ' => $ this ->data ['session ' ],
609- 'token ' => $ this ->data ['token ' ],
610- 'max_dave_protocol_version ' => self ::MAX_DAVE_PROTOCOL_VERSION ,
611- ],
612- );
610+ $ payload = VoicePayload::new (Op::VOICE_IDENTIFY , $ data );
613611
614612 $ this ->discord ->logger ->debug ('sending identify ' , ['packet ' => $ payload ->__debugInfo ()]);
615613
You can’t perform that action at this time.
0 commit comments