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.
2 parents bddf256 + d5d162a commit 63efa07Copy full SHA for 63efa07
CHANGELOG.md
@@ -45,6 +45,8 @@ These changes are available on the `master` branch, but have not yet been releas
45
([#2916](https://github.com/Pycord-Development/pycord/pull/2916))
46
- Fixed a crash when processing message edit events while message cache was disabled.
47
([#2924](https://github.com/Pycord-Development/pycord/pull/2924))
48
+- Fixed OPUS Decode Error when recording audio.
49
+ ([#2925](https://github.com/Pycord-Development/pycord/pull/2925))
50
51
### Removed
52
discord/role.py
@@ -402,7 +402,7 @@ def _update(self, data: RolePayload):
402
self._permissions: int = int(data.get("permissions", 0))
403
self.position: int = data.get("position", 0)
404
self._colour: int = data.get("color", 0)
405
- self.colours: RoleColours | None = RoleColours._from_payload(data["colors"])
+ self.colours: RoleColours = RoleColours._from_payload(data["colors"])
406
self.hoist: bool = data.get("hoist", False)
407
self.managed: bool = data.get("managed", False)
408
self.mentionable: bool = data.get("mentionable", False)
@@ -574,8 +574,8 @@ async def edit(
574
permissions: Permissions = MISSING,
575
colour: Colour | int = MISSING,
576
color: Colour | int = MISSING,
577
- colours: RoleColours | None = MISSING,
578
- colors: RoleColours | None = MISSING,
+ colours: RoleColours = MISSING,
+ colors: RoleColours = MISSING,
579
holographic: bool = MISSING,
580
hoist: bool = MISSING,
581
mentionable: bool = MISSING,
discord/voice_client.py
@@ -652,9 +652,10 @@ def _decrypt_aead_xchacha20_poly1305_rtpsize(self, header, data):
652
nonce[:4] = data[-4:]
653
data = data[:-4]
654
655
- return self.strip_header_ext(
656
- box.decrypt(bytes(data), bytes(header), bytes(nonce))
657
- )
+ r = box.decrypt(bytes(data), bytes(header), bytes(nonce))
+ # Discord adds 8 bytes of data before the opus data.
+ # This can be removed, and at this time, discarded as it is unclear what they are for.
658
+ return r[8:]
659
660
@staticmethod
661
def strip_header_ext(data):
@@ -774,7 +775,7 @@ def unpack_audio(self, data):
774
775
data: :class:`bytes`
776
Bytes received by Discord via the UDP connection used for sending and receiving voice data.
777
"""
- if data[1] != 0x78:
778
+ if data[1] & 0x78 != 0x78:
779
# We Should Ignore Any Payload Types We Do Not Understand
780
# Ref RFC 3550 5.1 payload type
781
# At Some Point We Noted That We Should Ignore Only Types 200 - 204 inclusive.
renovate.json
@@ -6,10 +6,7 @@
6
":dependencyDashboard"
7
],
8
"assigneesFromCodeOwners": true,
9
- "packageRules": [
10
- {
11
- "matchManagers": ["pip_requirements"],
12
- "matchFileNames": ["requirements/*.txt"]
13
- }
14
- ]
+ "pip_requirements": {
+ "managerFilePatterns": ["requirements/*.txt"]
+ }
15
}
requirements/dev.txt
@@ -3,7 +3,7 @@ pylint~=3.3.8
3
pytest~=8.4.1
4
pytest-asyncio~=1.1.0
5
# pytest-order~=1.0.1
-mypy~=1.17.1
+mypy~=1.18.1
coverage~=7.10
pre-commit==4.3.0
codespell==2.4.1
requirements/docs.txt
@@ -1,7 +1,7 @@
1
sphinx==8.0.2
2
sphinxcontrib_trio==1.1.2
sphinxcontrib-websupport==2.0.0
-myst-parser[linkify]==4.0.0
+myst-parser[linkify]==4.0.1
sphinxext-opengraph==0.12.0
sphinx-copybutton==0.5.2
furo==2024.8.6
0 commit comments