Closed 5-30 closed 1 year ago
This error happens if you don't respond within 3 seconds. Your minimal example does not have enough code to showcase this, though I'm assuming the real code you're using (since there are over 700 lines of code in it) is doing some computations that add up or is using blocking code. Note that your original code is also doing a followup before responding, this is a mistake.
This is not an issue with the library either way, and unfortunately I cannot help you debug this issue myself.
Summary
Random 404 errors pop up, I'm pretty sure sending a modal shouldn't take more than 5 seconds though.
Reproduction Steps
I ran the command /reupload with this code.
Minimal Reproducible Code
Where ReuploadModal is obviously defined as some modal.
Expected Results
I expected a modal to open for me to enter what I need the bot to do.
Actual Results
The modal opened, but I get this error :
It may seem as not that big of a deal, but it can completely break other parts of my code where I need to retrieve infos related to the response object.
Intents
See the code.
System Information
Checklist
Additional Context
Another weird thing is the randomness of this error. Sometimes it pops up 3 times in a row, sometimes it just never does.