const { Client, clickButton } = require('discord.js-selfbot-v13');
const client = new Client({
checkUpdate: false,
});
client.on('ready', async () => {
const channelId = '1190781950944886870';
const channel = client.channels.cache.get(channelId);
if (channel) {
console.log(`Channel found: ${channel.name}`);
const message_id = await channel.sendSlash('999736048596816014', 'config channel', channelId);
console.log('Slash Command Sent! | '+message_id)
await message_id.clickButton()
} else {
console.error('Channel not found.');
}
});
client.login('my token');
Error:
await message_id.clickButton()
^
TypeError: message_id.clickButton is not a function
I don't know why it says that .clickButton is not an function, the Docs say otherwise...