Closed TSShadowYT closed 3 months ago
https://discordjs-self-v13.netlify.app/#/docs/docs/main/class/Message?scrollTo=clickButton
message.clickButton({ x: 1, y: 0 });
/home/container/node_modules/discord.js-selfbot-v13/src/structures/Message.js:1017
button = button.toJSON();
^
TypeError: Cannot read properties of undefined (reading 'toJSON')
at Message.clickButton (/home/container/node_modules/discord.js-selfbot-v13/src/structures/Message.js:1017:21)
at Client.
I didn't type the code correctly, the X and Y are supposed to be capital like the following
message.clickButton({ X: 1, Y: 0 });
Which package is the feature request for?
The core library
Feature
I want to click the second or third button but how do i do it?
Ideal solution or implementation
client.on("messageCreate", async (message) => { if (message.author.id === "438057969251254293" && sit === true) { const embed = message.embeds[0]; if (embed && embed.footer && embed.footer.text === "ahh") { await sleep(1000) try { await message.clickButton() } catch(error) { console.log(chalk.red("Error logged!", error)) } } } } );
I want to click the second/third button i want to but i cant do it..
Alternative solutions or implementations
No response
Other context
No response