-
Notifications
You must be signed in to change notification settings - Fork 229
Description
Summary
Interactions only works in non-threads
Reproduction Steps
Try to click a button from an interaction in a thread and get an exception
Code
some_interaction_button.click();Expected Results
interaction result
Actual Results
error
Traceback (most recent call last): ... interaction = await join_button.click() File "{my virtual env}/src/discord-py-self/discord/components.py", line 243, in click return await _wrapped_interaction( File "{my virtual env}/src/discord-py-self/discord/interactions.py", line 203, in _wrapped_interaction await state.http.interact(type, data, channel, nonce=nonce, **kwargs) File "{my virtual env}/src/discord-py-self/discord/http.py", line 1045, in request raise HTTPException(response, data) discord.errors.HTTPException: 400 Bad Request (error code: 10003): Unknown Channel Ignoring exception in on_ready Traceback (most recent call last): ... interaction = await join_button.click() File "{my virtual env}/src/discord-py-self/discord/components.py", line 243, in click return await _wrapped_interaction( File "{my virtual env}/src/discord-py-self/discord/interactions.py", line 203, in _wrapped_interaction await state.http.interact(type, data, channel, nonce=nonce, **kwargs) File "{my virtual env}/src/discord-py-self/discord/http.py", line 1045, in request raise HTTPException(response, data) discord.errors.HTTPException: 400 Bad Request (error code: 10003): Unknown Channel
System Information
Linux
Checklist
- I have confirmed I am using unmodified discord.py-self and not the upstream discord.py.
- I am using a user token (and it isn't visible in the code).
- I have searched the open issues for duplicates.
- I have searched closed issues for resolved duplicates.
- I have confirmed the development version doesn't resolve the issue.
- I have shared the entire traceback.
Additional Information
For whatever reason guild_id is none when I do this.