mikolajkalwa / GamesDeals

MIT License
47 stars 10 forks source link

Fix interaction handling #51

Closed mikolajkalwa closed 1 year ago

mikolajkalwa commented 1 year ago

After interaction is created discord expects a first response within 3 seconds. Some operations (especially webhook commands) might take longer which leads to a situation where user doesn't receive any response from the bot.

Interaction handling should be refactored (at least for the webhook command) to send initial respond to discord as a first step, which will extend interaction lifetime to 15 minutes https://discord.com/developers/docs/interactions/receiving-and-responding#responding-to-an-interaction