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
704 stars 145 forks source link

Error while replying to modal #1064

Closed Meff1u closed 4 days ago

Meff1u commented 4 months ago

Which package has the bugs?

The core library

Issue description

Happens every time I use modal.reply() in client.on('interactionModalCreate') event

Error:

\node_modules\discord.js-selfbot-v13\src\structures\Modal.js:155 reject(new Error('INTERACTION_FAILED')); ^ Error: INTERACTION_FAILED at Timeout._onTimeout (\node_modules\discord.js-selfbot-v13\src\structures\Modal.js:155:16) at listOnTimeout (node:internal/timers:573:17) at process.processTimers (node:internal/timers:514:7) ### Code sample ```typescript client.on('interactionModalCreate', async (modal) => { await modal.components[0].components[0].setValue(latest); try { await modal.reply(); } catch (err) { console.lerror(err); } finally { console.log(`Replied.`); } }); ``` ### Package version 3.1.4 ### Node.js version 20 ### Operating system Windows 11 ### Priority this issue should have Low (slightly annoying) ### Checklist - [X] I have searched the open issues for duplicates. - [X] I have shared the entire traceback. - [X] I am using a user token (and it isn't visible in the code). ### Additional Information Admittedly, despite the triggered error, it correctly responds to the modal, but it causes the selfbot to shut down.