Closed Karewen closed 2 years ago
I moved libraries from Discord S.C.U.M to this because I couldn't get button clicks to work on Discum. However, I am faced with the same issue on this library. This could have something to do with Discord changing something in their API. Regardless, this should be looked upon and fixed ASAP.
I moved libraries from Discord S.C.U.M to this because I couldn't get button clicks to work on Discum. However, I am faced with the same issue on this library. This could have something to do with Discord changing something in their API. Regardless, this should be looked upon and fixed ASAP.
Thank you for letting me know, I will proceed to debug and fix this
I moved libraries from Discord S.C.U.M to this because I couldn't get button clicks to work on Discum. However, I am faced with the same issue on this library. This could have something to do with Discord changing something in their API. Regardless, this should be looked upon and fixed ASAP.
Thank you for letting me know, I will proceed to debug and fix this
Thank you for your earliest response. Before you dive deep into this, I have tried the self-bot part with a fresh account that is only in one server; it worked like a charm. The account I was using previously was in several servers with the Anigame bot. With the information given, is it possible for you to describe what went wrong?
Great library by the way, only found about this today and I am hooked. I can finally say goodbye to Python for some time now.
message.embeds.forEach(async e => {
if(!e.title) return;
if(!e.footer) return;
if(e.title.includes("What's this?") && e.footer.text.includes(`Click on the claim button first to claim this card!`)) {
const label = 'Claim!'
const row = message.components[0];
const button = row.components.find(button_ => button_.label
== label);
if(!button) return;
button.click(message);
const hook = new WebhookClient({ url: config.webhook });
const d = new Date();
const x = d/1000;
hook.send(`<t:${Math.floor(x)}t:> | Claimed card in [${message.channel.name}](${message.channel.url})`)
console.log(`Claimed card in ${message.channel.name}`)
}
})
hmmm u can try this
@Karewen I've tweaked the response data a bit, it will return a Snowflake
which you can check with events
https://github.com/aiko-chan-ai/discord.js-selfbot-v13/blob/main/Documents/SlashCommand.md#events
You can check when the button is interacted, the interactionCreate
event is emitted
Then check for events interactionFailure
and interactionSuccess
Pay attention to the nonce
data, that is Snowflake
when the interaction is created
It's all in the documentation
https://discordjs-self-v13.netlify.app/#/
Working now, I will close this issue. Thanks.
Which package has the bugs?
The core library
Issue description
Code sample
Package version
discord.js-selfbot-v13@2.3.64
Node.js version
v18.2.0
Operating system
Windows
Priority this issue should have
High (immediate attention needed)
Checklist
Additional Information
No response