Skip to content

fix: Use raw message_id instead of ctx.message.id in wait_for_component #1759

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 4, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion interactions/client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1256,7 +1256,7 @@ async def wait_for_component(
async def _check(event: events.Component) -> bool:
ctx: ComponentContext = event.ctx
# if custom_ids is empty or there is a match
wanted_message = not message_ids or ctx.message.id in (
wanted_message = not message_ids or ctx.message_id in (
[message_ids] if isinstance(message_ids, int) else message_ids
)
wanted_component = not custom_ids or ctx.custom_id in custom_ids
Expand Down
Loading