ctx.author.send() gives a 404 "Unknown Channel" error #94
Comments
Fixed in 4.2.4 |
Unfortunately, this seems only partially fixed as of 4.2.6. I have the following user interaction flow that occurs in DMs:
Steps 1-3 all work fine. The bot sends the message in the DM, and the user is able to select the component, which the bot sees. However, at step 4, I get the If it matters (only mentioning this because the example code all uses them), I am not using slash commands. |
I will look at it. Thanks for reporting 😃 |
sorry for the issues, this is fixed in |
Sorry, but I'm still experiencing the error even in v4.2.7. Referring to my flow above, it now successfully completes step 4; however, upon executing step 5 (return to step 2), I get the same error as before. I have written a trivial example that generates the cached_ctx = None
@bot.command()
async def test_test(ctx):
global cached_ctx
if cached_ctx is None:
cached_ctx = ctx
await cached_ctx.author.send("Hi") # OK
else:
await cached_ctx.author.send("Bye") # Should work but generates error Thanks for the work so far! We're getting closer. discord-ui 4.2.7 |
aight thanks for your patience, this should |
It works now. Thanks for the quick work. |
When using
discord-ui
, any attempt to perform anawait ctx.author.send(...)
results in the following error:Currently, I'm working around it by manually creating a DM channel, but it's an ugly kludge.
The text was updated successfully, but these errors were encountered: