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

Commit 8001f3a

Browse files
committed
fixed Message.wait_for
1 parent bf62adf commit 8001f3a

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-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.3</summary>
177+
178+
## **Fixed**
179+
- Message.wait_for
180+
181+
182+
</details>
183+
175184
- <details>
176185
<summary>4.0.2</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.2"
47+
__version__ = "4.0.3"

discord_ui/receive.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,8 +563,8 @@ async def wait_for(self, event_name: typing.Literal["select", "button"], client,
563563
:type: :class:`~PressedButton` | :class:`~SelectedMenu`
564564
"""
565565
if event_name.lower() in ["button", "select"]:
566-
def _check(com, msg):
567-
if msg.id == self.id:
566+
def _check(com):
567+
if com.message.id == self.id:
568568
statements = []
569569
if custom_id is not MISSING:
570570
statements.append(com.custom_id == custom_id)

0 commit comments

Comments
 (0)