await axios.get(`...`) // Search in Google //
.then((response) => {
return await interaction.reply({ // (*) //
content: "Test1"
})
}).catch(async (error) => {
return await interaction.reply({
content: "Test1",
ephemeral: true
})
});
Why I sometimes get an error DiscordAPIError[40060]: Interaction has already been acknowledged.? The error points to the string (*)