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

<Message>.clickButton() does not return a modal #1200

Closed sv-du closed 1 day ago

sv-du commented 3 days ago

Which package has the bugs?

The core library

Issue description

Try clicking a button using the clickButton() method and it fails to load the modal

Code sample

        let modal;
        try {
            modal = await msg.clickButton();
        } catch(e) {
            console.log(e);
            return await client.logError(`Error while trying to click the button for [message](${msg.url}): ${e}`);
        }
        if(!modal || !(modal instanceof Discord.Modal)) {
            console.log(modal);
            return await client.logError(`[Message](${msg.url}) did not return a modal`);
        }

Package version

3.1.4

Node.js version

18.17.1

Operating system

Windows

Priority this issue should have

Medium (should be fixed soon)

Checklist

Additional Information

clickButton() doesn't throw an error so I'm unsure what's wrong