Error that i cannot fix.

I know that i asked help for this once but i still need help. This is my codes: index.js https://sourceb.in/LrDkNyzADH commands\contest.js https://sourceb.in/BO3kmjr7MH And the error I got: D:\dcbot321312\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:105 if (this.deferred || this.replied) throw new DiscordjsError(ErrorCodes.InteractionAlreadyReplied); ^ Error [InteractionAlreadyReplied]: The reply to this interaction has already been sent or deferred. at ButtonInteraction.reply (D:\dcbot321312\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:105:46) at InteractionCollector.<anonymous> (D:\dcbot321312\commands\contest.js:82:11) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) { code: 'InteractionAlreadyReplied' } Node.js v22.8.0
2 Replies
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! - Marked as resolved by OP
BMmarci1234
BMmarci1234OP2mo ago
Please tell me exaclty what lines i did wrong and how to fix that oh. What if i want to do it in the contest.js? if i do will the problem be solved? okay ill give it a try sir i am asking you about what to remove. I know that what you said and things, but I dont seem to find any buttons in the index.js. Like i mean that is the only thing i found but then it wont send the message there in the index.js const embed = new EmbedBuilder() .setColor(0x00FF00) .setTitle('GitHub Submission') .setDescription(${interaction.user} submitted the following GitHub repository:) .addFields({ name: 'Repository Link', value: githubLink }) .setTimestamp(); const resultChannel = interaction.client.channels.cache.get(config.resultChannelId); await resultChannel.send({ embeds: [embed] });
Want results from more Discord servers?
Add your server