#disnake.errors.InteractionTimedOut

1 messages · Page 1 of 1 (latest)

glass aspen
#
Note: This might also be caused by a misconfiguration in the components make sure you do not respond twice in case this is a component.

I used the drop-down menu, everything worked fine, but at one point an error appeared. I didn't change the code.

ripe pagoda
#

It's because there is an interaction that is taking more than 3 seconds to see an acknowledgement.
In the interaction callback, add await inter.response.defer() before running any code that might take more than 3 seconds to complete and provide a response.

Then you can use await inter.edit_original_message() to send the later response.
Or if it's a button/select, you can use await inter.response.defer(with_message=True) and never respond without any issue