Trying to cycle embed with pictures and confirm, but have errors

Hi everybody, First, here his my code: https://sourceb.in/ZcNpnYRC32 I'm currently trying to make a command, this is what I aim to do: * This command aim to help users to custom their character sheet (which will be displayed with an other command with napis-canva) by displaying a first menu which make them choose between 3 types of assets (which they own in a mongoDB database but it's not the problem here), currently it's 3 types (backgrounds, avatar mask and embedcolor) but I'll soon remove the possibility to modify the embed color because the final picture will not be in an embed anymore. * When the asset type is chosen, the assets owned by the user are displayed in an embedBuilder with some buttons, this way the user can see the different pictures he owns and choose one with a confirmation button When choice is made, the bot update the database with the chosen asset. For more technical details, the bot take in a first model database the assets from the User, and then update it in the activeCharacter database (which is an other model) Here are the problems I'm encountering: * When I try to confirm the asset I want, I have very briefly the confirmation message ("Selection confirmed!") and then like 0.5 sec later the error message et an error "Interaction has already been acknowledged". However, the asset is well updated in my database. Here is the complete error: https://sourceb.in/YQ3d6m0ONl (I replaced my personnal datas with .. so it's easier to read) * When I try to change page (to see the next asset in my inventory) the next asset is well displayed but I have an error DiscordAPIError[10062]: Unknown interaction In both cases, the bot crash. Here is the complete error: https://sourceb.in/ICZTGJaNpd (I replaced my personnal datas with .. so it's easier to read) I know I clearly do something wrong here, but I don't find where and why and I can't get through this. If someone has time to help me I would be grateful Thx by advance and don't hesitate if you have questions or if you need more details.
SourceBin
customize.js
Instantly share your code with the world.
SourceBin
Confirm error
Instantly share your code with the world.
SourceBin
Cycle error
Instantly share your code with the world.
1 Reply
d.js toolkit
d.js toolkit2mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!