Skip to content

Commit

Permalink
Fix voice error 4020 (#1248)
Browse files Browse the repository at this point in the history
Add type hint to 'd', preventing this from being sent as a string which is now rejected.
  • Loading branch information
micksam7 authored Aug 5, 2024
1 parent d0ed3de commit 3a1aee0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Discord/Voice/VoiceClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ public function handleWebSocketConnection(WebSocket $ws): void
$sendHeartbeat = function () {
$this->send([
'op' => Op::VOICE_HEARTBEAT,
'd' => microtime(true),
'd' => (int) microtime(true),
]);
$this->logger->debug('sending heartbeat');
$this->emit('ws-heartbeat', []);
Expand Down

0 comments on commit 3a1aee0

Please sign in to comment.