Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DiscordAPIError[40060]: Interaction has already been acknowledged. #771

Open
LunaUrsa opened this issue Apr 20, 2024 · 1 comment
Open
Labels
E2: Low A couple hours P2: Medium This is high impact but not breaking anything S1: Confirmed This has been approved by a lead dev

Comments

@LunaUrsa
Copy link
Contributor

View details in Rollbar: https://app.rollbar.com/a/tripsit/fix/item/TripBot/71

DiscordAPIError[40060]: Interaction has already been acknowledged.
    at handleErrors (/usr/src/app/node_modules/@discordjs/rest/src/lib/handlers/Shared.ts:148:10)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at BurstHandler.runRequest (/usr/src/app/node_modules/@discordjs/rest/src/lib/handlers/BurstHandler.ts:143:20)
    at _REST.request (/usr/src/app/node_modules/@discordjs/rest/src/lib/REST.ts:211:20)
    at ButtonInteraction.update (/usr/src/app/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:233:5)
    at acknowledgeButton (/usr/src/app/src/discord/commands/guild/d.moderate.ts:1264:3)
    at buttonClick (/usr/src/app/src/discord/events/buttonClick.ts:80:5)
@LunaUrsa
Copy link
Contributor Author

When someone is warned/timed out, and they click the agree/reject button, it will sometimes respond with this error

On the Tripsit side, we will sometimes get double "this person has acknowledged/rejected their warning" messages, so something is causing this function to run twice?

@LunaUrsa LunaUrsa added S1: Confirmed This has been approved by a lead dev P2: Medium This is high impact but not breaking anything E2: Low A couple hours labels Apr 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
E2: Low A couple hours P2: Medium This is high impact but not breaking anything S1: Confirmed This has been approved by a lead dev
Projects
None yet
Development

No branches or pull requests

1 participant