Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while replying to modal #1064

Open
3 tasks done
Meff1u opened this issue Feb 24, 2024 · 0 comments
Open
3 tasks done

Error while replying to modal #1064

Meff1u opened this issue Feb 24, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Meff1u
Copy link

Meff1u commented Feb 24, 2024

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

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

  • I have searched the open issues for duplicates.
  • I have shared the entire traceback.
  • 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.

@Meff1u Meff1u added the bug Something isn't working label Feb 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant