Skip to content

Commit

Permalink
BPM vs BPS (#769)
Browse files Browse the repository at this point in the history
* BPM vs BPS

* Update to 384kpbs (Nitro Level 3)

* Update VoiceClient.php

space before unit

* bump disord-php/http version

* bump version

Co-authored-by: SQKo <[email protected]>
  • Loading branch information
key2peace and SQKo authored Mar 28, 2022
1 parent ddb6392 commit 5801f85
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"react/http": "^1.1",
"ext-json": "*",
"ext-zlib": "*",
"discord-php/http": "^9.0.9",
"discord-php/http": "^9.0.10",
"react/child-process": "^0.6.2",
"discord/interactions": "^2.2"
},
Expand Down
2 changes: 1 addition & 1 deletion src/Discord/Discord.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class Discord
*
* @var string Version.
*/
public const VERSION = 'v7.0.5';
public const VERSION = 'v7.0.6';

/**
* The logger.
Expand Down
4 changes: 2 additions & 2 deletions src/Discord/Voice/VoiceClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -988,8 +988,8 @@ public function setFrameSize(int $fs): void
*/
public function setBitrate(int $bitrate): void
{
if ($bitrate > 128000 || $bitrate < 8000) {
throw new \InvalidArgumentException("{$bitrate} is not a valid option. The bitrate must be between 8,000bpm and 128,000bpm.");
if ($bitrate > 384000 || $bitrate < 8000) {
throw new \InvalidArgumentException("{$bitrate} is not a valid option. The bitrate must be between 8,000 bps and 384,000 bps.");
}

if ($this->speaking) {
Expand Down

0 comments on commit 5801f85

Please sign in to comment.