Error 40060 means an interaction has already been acknowledged. It commonly appears in bot logs when another path attempts a second initial response. The useful question is which handler acknowledged first, not how to reset the user’s Discord account.
This is developer-facing guidance. If you are using someone else’s bot, give its maintainer the command name, approximate time and error. Avoid repeatedly triggering a command that changes something important.
Separate the initial response from later messages
An interaction has one initial acknowledgement. After a reply or defer, use the relevant edit or follow-up operation for subsequent output. A deferred result is already acknowledged even when the user is still waiting for its content.
A typical faulty sequence is: defer, perform work, then use the initial-reply path again. A safer design chooses the acknowledgement once and routes the eventual result through the completion path. The exact SDK method names vary by library and version.
Find every path that can respond
- Trace the command-specific handler and any shared middleware.
- Inspect exception handlers and cleanup code for unconditional replies.
- Check whether a framework automatically acknowledges components or commands.
- Check for duplicate event listeners and more than one process handling the same event.
- Record the first acknowledgement attempt and its outcome before inspecting the request that returned 40060.
For example, a command can send a successful reply and then hit a logging exception. If a broad catch block tries another initial reply, the user may already have received the result while the logs show an error. Fix the exception handling rather than telling the user that the original command necessarily failed.
Give acknowledgement ownership to one handler
Choose one place in the application to own the response lifecycle. Command modules can return results to that owner instead of each module deciding independently whether to acknowledge. If events can reach several workers, use a coordination design that prevents two workers from claiming the same interaction.
A local “already replied” check can help inside one process, but it is not an atomic lock across multiple processes. When duplicate workers are plausible, investigate deployment topology rather than adding more delays around the reply.
Handle an ambiguous network result carefully
A connection timeout does not prove Discord rejected the first acknowledgement. Log the uncertainty separately and avoid blindly sending the same initial response again. Use the SDK’s documented state and recovery behaviour, and inspect whether a result already exists where the API supports doing so.
Keep the business operation idempotent as well. Preventing duplicate acknowledgements does not by itself prevent two workers from creating two tickets, charging twice or granting an item twice.
What a useful regression check looks like
Exercise a normal success, a slow result after deferring, an exception before responding and an exception after responding. Each should have one initial acknowledgement and an intentional final outcome. Record a correlation ID and handler name, but redact tokens and private content. Avoid swallowing every 40060 exception without understanding the duplicate path.
Sources and scope
Checked against Discord’s official documentation on 27 November 2026. Diagnostic examples are suggested checks, not claims of a reproduced Discord incident. Interface labels and SDK details can change.
For more troubleshooting and app help, browse our Discord guides.