No responsed from application command
ilynl7 opened this issue · comments
ilynl7 commented
Which package has the bugs?
The core library
Issue description
Error [INTERACTION_FAILED]: No responsed from Application Command
at Timeout._onTimeoutone/container/node_modules/discord.js-selfbot-v13/src/structures/Message.js:1063:16
}
listonTimeout (node:internal/timers:573-17)
at process processTimer [node: internul/timers:574:7) (
Code sample
client.on('messageUpdate', async (oldMessage, newMessage) => {
// Check if the new message has components
if (!newMessage) return;
try {
if (newMessage.components && newMessage.components.length > 0) {
let disabledButtonCount = 0;
for (const actionRow of newMessage.components) {
for (const button of actionRow.components) {
if (button.disabled) {
disabledButtonCount++;
if (disabledButtonCount === 2) {
//console.log("Two disabled buttons found. Returning...");
return;
}
}
if (newMessage.embeds[0]) {
if (newMessage.embeds[0].title == "كراسي" && button.customId == "join") {
await newMessage.clickButton(button.id).catch(e => console.log(e));
}
if (newMessage.embeds[0].title == "اسرع زر") {
if (button.style === "SUCCESS" && !button.disabled) {
await newMessage.clickButton(button.id).catch(e => console.log(e));
console.log("Button clicked!");
return;
}
}
}
if (button.style === "PRIMARY" && button.customId.startsWith("button:")) {
if (!button.disabled) {
await newMessage.clickButton(button.id).catch(e => console.log(e));
console.log("Button clicked!");
return;
}
}
}
}
} else{return;}
} catch (error) {
console.error(error);
}
});
Package version
discord.js-selfbot-v13@latest
Node.js version
Node V20
Operating system
No response
Priority this issue should have
Low (slightly annoying)
Checklist
- I have searched the open issues for duplicates.
- I have shared the entire traceback.
- I am using a user token (and it isn't visible in the code).
Additional Information
No response