#404 Unknown Interaction/Webhook with Async

1 messages ยท Page 1 of 1 (latest)

valid dragon
#

error example:

crisp kernel
#

show the code that causes that

valid dragon
last olive
#

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.

crisp kernel
#

and please for the love of everything use cogs..

#

your main file is 1775 lines

last olive
#

Oh god I didn't realise it was a single file

crisp kernel
#

i just saw no self and.. yea

valid dragon
valid dragon
untold cape
#

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