Closed sv-du closed 1 day ago
The core library
Try clicking a button using the clickButton() method and it fails to load the modal
clickButton()
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`); }
3.1.4
18.17.1
Windows
Medium (should be fixed soon)
clickButton() doesn't throw an error so I'm unsure what's wrong
Which package has the bugs?
The core library
Issue description
Try clicking a button using the
clickButton()
method and it fails to load the modalCode sample
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