Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No responsed from application command #1087

Open
3 tasks done
Ilynl7 opened this issue Mar 10, 2024 · 0 comments
Open
3 tasks done

No responsed from application command #1087

Ilynl7 opened this issue Mar 10, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Ilynl7
Copy link

Ilynl7 commented Mar 10, 2024

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

@Ilynl7 Ilynl7 added the bug Something isn't working label Mar 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant