Skip to content

Interactions fail when they are interacted with in a thread. #885

@HugKitten

Description

@HugKitten

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions