Discord · 40060
Discord error 40060: Interaction has already been acknowledged
Your bot tried to answer a slash command or button press twice. Discord accepts exactly one first answer per interaction, and the second one gets this error.
What you are seeing
discord.js
DiscordAPIError[40060]: Interaction has already been acknowledged.discord.py
discord.errors.HTTPException: 400 Bad Request (error code: 40060): Interaction has already been acknowledged.One answer per interaction
An interaction can be answered once: with a reply, a defer, or a modal. After that, the only way to say more is a follow-up message or an edit of the first answer. Anything that tries to give a second first answer — replying after a defer, replying twice in one handler, or an error handler that replies after the command already did — fails with 40060.
The other cause is the same one behind Unknown Interaction: two copies of the bot. Both receive the interaction, one answers first, and the other gets 40060 if it was quick or 10062 if it was slow. If the error is intermittent and your command is fast, check the bot is not running twice.
Defer, then edit — never reply twice
The usual form of this bug is a slow command: the handler defers so the user sees "thinking", does the work, and then calls reply instead of editing the deferred reply. The defer was already the answer. Edit it, or send a follow-up.
discord.js
await interaction.deferReply();
const result = await somethingSlow();
// Not reply() — the defer was already the first answer.
await interaction.editReply(`Done: ${result}`);
// In an error handler, answer however the interaction stands:
if (interaction.replied || interaction.deferred) {
await interaction.followUp('Something went wrong.');
} else {
await interaction.reply('Something went wrong.');
}discord.py
await interaction.response.defer()
result = await something_slow()
# Not response.send_message() — the defer was already the first answer.
await interaction.followup.send(f"Done: {result}")FAQ
Questions
Is 40060 the same as 10062 Unknown Interaction?
No. 10062 means the interaction expired before any answer — too slow, or answered by another copy first. 40060 means your code answered it and then tried to answer again.
Can I send a second message after the first answer?
Yes, as a follow-up: followUp in discord.js or followup.send in discord.py. What you cannot do is give a second first answer.
Read next