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

Commit 16c063d

Browse files
committed
fixed channel param issue
1 parent 5f86e22 commit 16c063d

File tree

4 files changed

+14
-3
lines changed

4 files changed

+14
-3
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,15 @@ You can find more (and better) examples [here](https://github.com/discord-py-ui/
172172

173173
# Changelog
174174

175+
- <details>
176+
<summary>4.0.1</summary>
177+
178+
## **Fixed**
179+
- discord.ext import error
180+
181+
182+
</details>
183+
175184
- <details>
176185
<summary>4.0.0</summary>
177186

discord_ui/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@
4444

4545

4646
__title__ = "discord-ui"
47-
__version__ = "4.0.0"
47+
__version__ = "4.0.1"

discord_ui/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ async def _on_response(self, msg):
196196
x = self.context_commands["user"].get(data["data"]["name"])
197197
if x is not None:
198198
member = await handle_thing(data["data"]["target_id"], OptionType.MEMBER, data, self.parse_method, self._discord)
199-
context = SlashedContext(self._discord, command=x, data=data, user=user, channel=channel, param=member, guild_ids=x.guild_ids, guild_permissions=x.guild_permissions)
199+
context = SlashedContext(self._discord, command=x, data=data, user=user, param=member, guild_ids=x.guild_ids, guild_permissions=x.guild_permissions)
200200
# Handle autodefer
201201
context._handle_auto_defer(self.auto_defer)
202202

docs/source/_static/js/override_colors.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,13 @@ window.onload = function() {
4242
change_color("k", "#eb52ff")
4343
// function name
4444
change_color("nf", "#5865F2")
45+
// create class instance
46+
// change_color("n", )
4547

4648
// built-in function calls
4749
change_color("nb", "#ecfc5b")
4850
// +, -, *, /, =
49-
change_color("o", "#69f5f2")
51+
// change_color("o", "#69f5f2")
5052
//#endregion
5153

5254
// fix code

0 commit comments

Comments
 (0)