'discord.js disable “interaction failed”

If an interaction (for example button click) is not replied, discord will display “interaction failed” in the client

What they expect you to do: inter.reply(‘stuff’)

What I want to do: inter.channel.send(‘stuff’)

This is not an error I just want to prevent “interaction failed” from showing up, is there anyway to do that?



Solution 1:[1]

You can use ButtonInteraction.deferUpdate(). This will not show "This interaction failed", it replies with saying that you will edit it later[1], though it won't show any content like the Bot is thinking...

inter.deferUpdate();
inter.channel.send("some content")

[1]: You don't have to update it after

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1