interaction.reply and web3 library issue
I receive an error during
interaction.reply
.
I use discord.js (ver. 13.16) and web3 library to send transaction from one account to another and transaction is passed, but after doing it my bot turn off and show me an error:
this is code what I use:
4 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.Common causes of
DiscordAPIError[10062]: Unknown interaction
:
- Initial response took more than 3 seconds ➞ defer the response *.
- Wrong interaction object inside a collector.
* Note: you cannot defer modal or autocomplete value responseswhat dose it mean?
should I use some
await
?
I think values in interaction.reply
are okif your bot's reply takes longer than 3 seconds until sending you need to defer it
You'd need to await the defer