DiscordAPIError Interaction has already been acknowledged.

I suddenly got this error, and idk why (they're both fine in my last test)
Started refreshing application (/) commands.
Successfully reloaded application (/) commands.
Ready! Logged in as Shikimori-san~#6050

------------------------------------
Harshfeudal#0001(622450109317251088) in #hall triggered an interaction.
Id: 997533401114492948
Date: 15/7/2022 (timeflake: 1657900895545)
------------------------------------

DiscordAPIError: Interaction has already been acknowledged.
at RequestHandler.execute (E:\Trung Son\Code Project\Discord Bot Project\Server Bot\Shikimori-ButtonRole\node_modules\discord.js\src\rest\RequestHandler.js:350:13)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async RequestHandler.push (E:\Trung Son\Code Project\Discord Bot Project\Server Bot\Shikimori-ButtonRole\node_modules\discord.js\src\rest\RequestHandler.js:51:14)
at async CommandInteraction.reply (E:\Trung Son\Code Project\Discord Bot Project\Server Bot\Shikimori-ButtonRole\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:103:5)
at async Object.execute (E:\Trung Son\Code Project\Discord Bot Project\Server Bot\Shikimori-ButtonRole\commands\selfRole-button.js:38:13)
at async Client.<anonymous> (E:\Trung Son\Code Project\Discord Bot Project\Server Bot\Shikimori-ButtonRole\index.js:39:3) {
method: 'post',
path: '/interactions/997533401114492948/aW50ZXJhY3Rpb246OTk3NTMzNDAxMTE0NDkyOTQ4OlFlVzJSdzBtbmdiMWZyVUNqbWpSVkRBamNFaXhWbFRZd05MSzVJMGQ2UTB4cUtuOVg3QnRlQW5URFJIUkJ1QjluaXNrMVlBd1hYeXZ2TkUwdEo4OFRodzZ2Sm40RUh1MUxSTzBFY0t6d1FWVWFWWmVOTzhTOFZBMzVsOTJ1ckty/callback',
code: 40060,
httpStatus: 400,
requestData: { json: { type: 4, data: [Object] }, files: [] }
}
E:\Trung Son\Code Project\Discord Bot Project\Server Bot\Shikimori-ButtonRole\node_modules\discord.js\src\rest\RequestHandler.js:350
throw new DiscordAPIError(data, res.status, request);
^

DiscordAPIError: Interaction has already been acknowledged.
at RequestHandler.execute (E:\Trung Son\Code Project\Discord Bot Project\Server Bot\Shikimori-ButtonRole\node_modules\discord.js\src\rest\RequestHandler.js:350:13)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async RequestHandler.push (E:\Trung Son\Code Project\Discord Bot Project\Server Bot\Shikimori-ButtonRole\node_modules\discord.js\src\rest\RequestHandler.js:51:14)
at async CommandInteraction.reply (E:\Trung Son\Code Project\Discord Bot Project\Server Bot\Shikimori-ButtonRole\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:103:5)
at async Client.<anonymous> (E:\Trung Son\Code Project\Discord Bot Project\Server Bot\Shikimori-ButtonRole\index.js:42:3) {
method: 'post',
path: '/interactions/997533401114492948/aW50ZXJhY3Rpb246OTk3NTMzNDAxMTE0NDkyOTQ4OlFlVzJSdzBtbmdiMWZyVUNqbWpSVkRBamNFaXhWbFRZd05MSzVJMGQ2UTB4cUtuOVg3QnRlQW5URFJIUkJ1QjluaXNrMVlBd1hYeXZ2TkUwdEo4OFRodzZ2Sm40RUh1MUxSTzBFY0t6d1FWVWFWWmVOTzhTOFZBMzVsOTJ1ckty/callback',
code: 40060,
httpStatus: 400,
requestData: {
json: {
type: 4,
data: {
content: 'There was an error while executing this command!',
tts: false,
nonce: undefined,
embeds: undefined,
components: undefined,
username: undefined,
avatar_url: undefined,
allowed_mentions: undefined,
flags: 64,
message_reference: undefined,
attachments: undefined,
sticker_ids: undefined
}
},
files: []
}
}
Started refreshing application (/) commands.
Successfully reloaded application (/) commands.
Ready! Logged in as Shikimori-san~#6050

------------------------------------
Harshfeudal#0001(622450109317251088) in #hall triggered an interaction.
Id: 997533401114492948
Date: 15/7/2022 (timeflake: 1657900895545)
------------------------------------

DiscordAPIError: Interaction has already been acknowledged.
at RequestHandler.execute (E:\Trung Son\Code Project\Discord Bot Project\Server Bot\Shikimori-ButtonRole\node_modules\discord.js\src\rest\RequestHandler.js:350:13)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async RequestHandler.push (E:\Trung Son\Code Project\Discord Bot Project\Server Bot\Shikimori-ButtonRole\node_modules\discord.js\src\rest\RequestHandler.js:51:14)
at async CommandInteraction.reply (E:\Trung Son\Code Project\Discord Bot Project\Server Bot\Shikimori-ButtonRole\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:103:5)
at async Object.execute (E:\Trung Son\Code Project\Discord Bot Project\Server Bot\Shikimori-ButtonRole\commands\selfRole-button.js:38:13)
at async Client.<anonymous> (E:\Trung Son\Code Project\Discord Bot Project\Server Bot\Shikimori-ButtonRole\index.js:39:3) {
method: 'post',
path: '/interactions/997533401114492948/aW50ZXJhY3Rpb246OTk3NTMzNDAxMTE0NDkyOTQ4OlFlVzJSdzBtbmdiMWZyVUNqbWpSVkRBamNFaXhWbFRZd05MSzVJMGQ2UTB4cUtuOVg3QnRlQW5URFJIUkJ1QjluaXNrMVlBd1hYeXZ2TkUwdEo4OFRodzZ2Sm40RUh1MUxSTzBFY0t6d1FWVWFWWmVOTzhTOFZBMzVsOTJ1ckty/callback',
code: 40060,
httpStatus: 400,
requestData: { json: { type: 4, data: [Object] }, files: [] }
}
E:\Trung Son\Code Project\Discord Bot Project\Server Bot\Shikimori-ButtonRole\node_modules\discord.js\src\rest\RequestHandler.js:350
throw new DiscordAPIError(data, res.status, request);
^

DiscordAPIError: Interaction has already been acknowledged.
at RequestHandler.execute (E:\Trung Son\Code Project\Discord Bot Project\Server Bot\Shikimori-ButtonRole\node_modules\discord.js\src\rest\RequestHandler.js:350:13)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async RequestHandler.push (E:\Trung Son\Code Project\Discord Bot Project\Server Bot\Shikimori-ButtonRole\node_modules\discord.js\src\rest\RequestHandler.js:51:14)
at async CommandInteraction.reply (E:\Trung Son\Code Project\Discord Bot Project\Server Bot\Shikimori-ButtonRole\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:103:5)
at async Client.<anonymous> (E:\Trung Son\Code Project\Discord Bot Project\Server Bot\Shikimori-ButtonRole\index.js:42:3) {
method: 'post',
path: '/interactions/997533401114492948/aW50ZXJhY3Rpb246OTk3NTMzNDAxMTE0NDkyOTQ4OlFlVzJSdzBtbmdiMWZyVUNqbWpSVkRBamNFaXhWbFRZd05MSzVJMGQ2UTB4cUtuOVg3QnRlQW5URFJIUkJ1QjluaXNrMVlBd1hYeXZ2TkUwdEo4OFRodzZ2Sm40RUh1MUxSTzBFY0t6d1FWVWFWWmVOTzhTOFZBMzVsOTJ1ckty/callback',
code: 40060,
httpStatus: 400,
requestData: {
json: {
type: 4,
data: {
content: 'There was an error while executing this command!',
tts: false,
nonce: undefined,
embeds: undefined,
components: undefined,
username: undefined,
avatar_url: undefined,
allowed_mentions: undefined,
flags: 64,
message_reference: undefined,
attachments: undefined,
sticker_ids: undefined
}
},
files: []
}
}
2 Replies
d.js docs
d.js docs3y ago
DiscordAPIError: Interaction has already been acknowledged[INTERACTION_ALREADY_REPLIED]: The reply to this interaction has already been sent or deferred. You have already replied to the interaction. • Use <Interaction>.followUp() to send a new message • If you deferred reply it's better to use <Interaction>.editReply() • Responding to slash commands / buttons / select menus
harshfeudal
harshfeudalOP3y ago
I mean at first it works well. Then I just only restart it and run again and it cause this. So that’s why idk why it appears Ahh i solved, that's because i still hosting my bot on a service. When i turn it off, it has no error now
Want results from more Discord servers?
Add your server