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 b06ab72 commit 64e967cCopy full SHA for 64e967c
src/Discord/Discord.php
@@ -673,7 +673,7 @@ protected function handleVoiceStateUpdate(object $data): void
673
$voiceStateUpdate = $this->factory->part(VoiceStateUpdate::class, (array) $data->d, true);
674
675
$this->logger->debug('voice state update received', ['guild' => $voiceStateUpdate->guild_id, 'data' => $voiceStateUpdate]);
676
- if (isset($this->voice->clients[$voiceStateUpdate->guild_id])) {
+ if (isset($this->voice, $this->voice->clients[$voiceStateUpdate->guild_id])) {
677
/** @var VoiceClient */
678
$client = $this->voice->clients[$voiceStateUpdate->guild_id];
679
$client->handleVoiceStateUpdate($voiceStateUpdate);
0 commit comments