Closed Creveoolus closed 2 years ago
You are most likely deferring after the 3 second period where you must respond
Check the hosts speed. Maybe execute a speedtest. This is no lib issue.
Check the hosts speed. Maybe execute a speedtest. This is no lib issue.
Actually it's running on my computer. So it can not be the problem.
You are most likely deferring after the 3 second period where you must respond
Thanks for the answer, i might test it
Allright, i tested it, doesn't work. Defer stops working after the on_message event, might that help.
I got this same error in a situation that might help someone. My Discord Bot Vulkan works with the multiprocessing python module to create other processes to play the music. When a process is created it duplicates the code in memory, in fact you increase the number of instances of your program. If any slash command is send, the command is received by all yours program instances, and when the copies of the principal process try to defer the interaction object they will fail with this http 404 error, because they cannot access the interaction object (due to others processing).
Summary
await ctx.defer() do 404 Not Found (error code: 10062): Unknown interaction
Reproduction Steps
await ctx.defer()
await ctx.defer()
Minimal Reproducible Code