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 :

You can use ButtonInteraction.deferUpdate(). This will not show "This interaction failed", instead it should pretty much ignore the interaction and then send the message

inter.channel.send("some content")

Leave a Reply