Skip to content
This repository was archived by the owner on Mar 8, 2022. It is now read-only.

Commit 26992cc

Browse files
committed
updated readme
1 parent 5b214ea commit 26992cc

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ You can find more (and better) examples [here](https://github.com/discord-py-ui/
179179
<summary>4.3.7</summary>
180180

181181
## **Fixed**
182-
- Issue with SLashOptions
182+
- Issue with SlashOptions
183183
> required is now false by default again
184184
185185
</details>

discord_ui/client.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,8 @@ async def on_connect():
150150
async def _on_slash_response(self, msg):
151151
if discord.__version__.startswith("2"):
152152
# comment decompressing out in canse it is needed in the future for some reason
153-
# if isinstance(msg, bytes):
153+
if isinstance(msg, bytes):
154+
raise NotImplementedError("decompressing was removed! Please upgrade your discord.py version")
154155
# try:
155156
# self._buffer.extend(msg)
156157
# if len(msg) < 4 or msg[-4:] != b'\x00\x00\xff\xff':
@@ -1307,7 +1308,8 @@ def remove_cog_override(*args, **kwargs):
13071308
async def _on_component_response(self, msg):
13081309
if discord.__version__.startswith("2"):
13091310
# disable deecompressing
1310-
# if isinstance(msg, bytes):
1311+
if isinstance(msg, bytes):
1312+
raise NotImplementedError("decompressing was removed! Please upgrade your discord.py version")
13111313
# self._buffer.extend(msg)
13121314

13131315
# if len(msg) < 4 or msg[-4:] != b'\x00\x00\xff\xff':

0 commit comments

Comments
 (0)