aiko-chan-ai / discord.js-selfbot-v13

An unofficial discord.js fork for creating selfbots
https://discordjs-self-v13.netlify.app
GNU General Public License v3.0
751 stars 160 forks source link

Can't handle error: INTERACTION_FAILED #1227

Open Damnbuoy opened 1 month ago

Damnbuoy commented 1 month ago

Which package has the bugs?

The core library

Issue description

I have seen duplicate issues in the past but they don't have any answer either I guess. How can I handle this error and just ignore it? It just crashes when I get the error. I get the error when I use multiple clients though.

msg.clickButton({ X: index, Y: 0 }).catch();

Code sample

/node_modules/discord.js-selfbot-v13/src/util/Util.js:855
        reject(new Error('INTERACTION_FAILED'));
               ^

Error: INTERACTION_FAILED
    at Timeout._onTimeout (/storage/emulated/0/Evil/sofi-tools/salter/node_modules/discord.js-selfbot-v13/src/util/Util.js:855:16)
    at listOnTimeout (node:internal/timers:581:17)
    at process.processTimers (node:internal/timers:519:7)

Package version

discord.js-selfbot-v13@3.3.0

Node.js version

Node.js v22.4.1

Operating system

Windows, linux

Priority this issue should have

Medium (should be fixed soon)

Checklist

Additional Information

I have tried everything I could. Im not experienced enough🙏

aiko-chan-ai commented 1 month ago

Most issues related to this error are due to one of the following reasons:

Damnbuoy commented 1 month ago

Its probably because the bot can't handle too many button clicks so it returns interaction failed. Is it not possible to somehow ignore the error? I need a quick fix t-t