Skip to content

Commit 7ba0c11

Browse files
authored
fix: Use raw message_id instead of ctx.message.id in wait_for_component (#1759)
1 parent 27b5a85 commit 7ba0c11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interactions/client/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1256,7 +1256,7 @@ async def wait_for_component(
12561256
async def _check(event: events.Component) -> bool:
12571257
ctx: ComponentContext = event.ctx
12581258
# if custom_ids is empty or there is a match
1259-
wanted_message = not message_ids or ctx.message.id in (
1259+
wanted_message = not message_ids or ctx.message_id in (
12601260
[message_ids] if isinstance(message_ids, int) else message_ids
12611261
)
12621262
wanted_component = not custom_ids or ctx.custom_id in custom_ids

0 commit comments

Comments
 (0)