Home > Blockchain >  discord.js disable “interaction failed”
discord.js disable “interaction failed”

Time:11-10

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?

CodePudding user response:

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.deferUpdate();
inter.channel.send("some content")
  • Related