#404 Unknown Interaction/Webhook with Async
1 messages ยท Page 1 of 1 (latest)
show the code that causes that
I'm assuming the 404 is raised when you try to ctx.edit?
And off-topic to your issue, you could use decorators to avoid repeating the same ban check and premium check
And why are you giving options that you know are required a default value? Just leave them as required if they're quite literally required for the command to work, you're doing pointless checks with that.
Oh god I didn't realise it was a single file
i just saw no self and.. yea
Lol don't judge it too hard ๐๐ I know it sucks I'm rewriting it atm
And it happens with any ctx response or edit
The unknown interaction occurs when the interaction times out. Be default discord expects a response within 3 seconds of sending the interaction. If you need more time (running slow code) you can ctx.defer() to get up to 15 minutes.
In your case you are calling an AI which can be a slow operation so you should be defering. I am unsure about the unknown webhook issue but see If what I said fixes it first