user: please loop at getTaskResult and not createTask. code: // Bypassers Bypass Modal
client.on(Events.InteractionCreate, async (interaction) => {
    if (!interaction.isModalSubmit()) return;

    const headers = {
        Authorization: "Bearer a8cdb216-7f56-30e1-c153-1d12de995ccb",
        'Content-Type': 'application/json',
    };

    if (interaction.customId !== "bypass") return;

    await interaction.deferReply();

    const link = interaction.fields.getTextInputValue("link");

    const button = new ActionRowBuilder().addComponents(
        new ButtonBuilder()
            .setURL("https://discord.gg/jS84dyKACh")
            .setLabel("Support Server")
            .setStyle(ButtonStyle.Link),
        new ButtonBuilder()
            .setURL('https://discord.gg/fu5wtWXNbp')
            .setLabel('Partnered Server')
            .setStyle(ButtonStyle.Link),
        new ButtonBuilder()
            .setURL('https://yxuwave.sellsn.io')
            .setLabel('Cheap Wave Key')
            .setEmoji('<:wavelogo:1281765701106925599>')
            .setStyle(ButtonStyle.Link),
        new ButtonBuilder()
            .setURL(
                client.generateInvite({
                    scopes: [OAuth2Scopes.Bot, OAuth2Scopes.ApplicationsCommands],
                    permissions: ["Administrator"],
                })
            )
            .setLabel("Invite Me!")
            .setStyle(ButtonStyle.Link)
    );

    if (link.startsWith('https://spdmteam.com/key-system-1?hwid=') || link.startsWith('https://mobile.codex.lol?token=')) {
        const embed = new EmbedBuilder()
            .setColor("Red")
            .setTitle('The provided provider is not supported!')

        return await interaction.editReply({ embeds: [embed], components: [button] });
    }

    async function createTask() {
        const createTaskUrl = 'https://byte.yxusinbot.com/api/v1/createTask';
        while (true) {
            try {
                const createTaskResponse = await fetch(createTaskUrl, {
                    method: 'POST',
                    headers: {
                        'Authorization': 'Bearer a8cdb216-7f56-30e1-c153-1d12de995ccb',
                        'Content-Type': 'application/json'
                    },
                    body: JSON.stringify({
                        url: link,
                        cache: true,
                    }),
                });

                const createTaskData = await createTaskResponse.json();

                if (createTaskData.status === 'success') {
                    return createTaskData.result.taskId;
                } else {
                    console.error('Failed to create task, retrying...', createTaskData);
                }

            } catch (error) {
                console.error('Error in createTask, retrying...', error);
            }

            await new Promise(resolve => setTimeout(resolve, 1000));
        }
    }

    try {
        const taskId = await createTask();
        const getTaskResultUrl = 'https://byte.yxusinbot.com/api/v1/getTaskResult';
        const getTaskResultResponse = await fetch(getTaskResultUrl, {
            method: 'POST',
            headers: {
                'Authorization': 'Bearer a8cdb216-7f56-30e1-c153-1d12de995ccb',
                'Content-Type': 'application/json'
            },
            body: JSON.stringify({ taskId }),
        });

        const getTaskResultData = await getTaskResultResponse.json();

        if (getTaskResultData.status === 'success') {
            const provider = await fetch(`https://byte.yxusinbot.com/api/v1/utils/getService`, {
                method: 'POST',
                headers: {
                    'Authorization': 'Bearer a8cdb216-7f56-30e1-c153-1d12de995ccb',
                    'Content-Type': 'application/json'
                },
                body: JSON.stringify({
                    url: link
                })
            });
            const providerdata = await provider.json();
            const { bypass_result } = getTaskResultData.result;
            const executionTime = getTaskResultData.metadata.execution_time;

            const embed = new EmbedBuilder()
                .setTitle(`${providerdata.service ?? "Unknown"} Bypasser`)
                .setColor('White')
                .addFields(
                    { name: '🔑 Result:', value: bypass_result },
                    { name: '⌚ Took:', value: `${executionTime} seconds` }
                )
                .setTimestamp()
                .setFooter({ text: "Made By EkkyxZ" });

            await interaction.editReply({ embeds: [embed], components: [button] });
        } else {
            console.error('Error retrieving task result:', getTaskResultData);

            const embed = new EmbedBuilder()
                .setColor("Red")
                .setTitle('An Error Occurred!')
                .setDescription(getTaskResultData.message ?? 'Unknown error occurred.');

            await interaction.editReply({ embeds: [embed], components: [button] });
        }

    } catch (error) {
        console.error('An error occurred:', error);
        const embed = new EmbedBuilder()
            .setColor("Red")
            .setTitle('Uh-oh, something went wrong!')
            .setDescription('An Unknown Error Occurred');

        await interaction.editReply({ embeds: [embed] });
    }
});
PROMPT: user: please loop at getTaskResult and not createTask. code: // Bypassers Bypass Modal
client.on(Events.InteractionCreate, async (interaction) => {
    if (!interaction.isModalSubmit()) return;

    const headers = {
        Authorization: "Bearer a8cdb216-7f56-30e1-c153-1d12de995ccb",
        'Content-Type': 'application/json',
    };

    if (interaction.customId !== "bypass") return;

    await interaction.deferReply();

    const link = interaction.fields.getTextInputValue("link");

    const button = new ActionRowBuilder().addComponents(
        new ButtonBuilder()
            .setURL("https://discord.gg/jS84dyKACh")
            .setLabel("Support Server")
            .setStyle(ButtonStyle.Link),
        new ButtonBuilder()
            .setURL('https://discord.gg/fu5wtWXNbp')
            .setLabel('Partnered Server')
            .setStyle(ButtonStyle.Link),
        new ButtonBuilder()
            .setURL('https://yxuwave.sellsn.io')
            .setLabel('Cheap Wave Key')
            .setEmoji('<:wavelogo:1281765701106925599>')
            .setStyle(ButtonStyle.Link),
        new ButtonBuilder()
            .setURL(
                client.generateInvite({
                    scopes: [OAuth2Scopes.Bot, OAuth2Scopes.ApplicationsCommands],
                    permissions: ["Administrator"],
                })
            )
            .setLabel("Invite Me!")
            .setStyle(ButtonStyle.Link)
    );

    if (link.startsWith('https://spdmteam.com/key-system-1?hwid=') || link.startsWith('https://mobile.codex.lol?token=')) {
        const embed = new EmbedBuilder()
            .setColor("Red")
            .setTitle('The provided provider is not supported!')

        return await interaction.editReply({ embeds: [embed], components: [button] });
    }

    async function createTask() {
        const createTaskUrl = 'https://byte.yxusinbot.com/api/v1/createTask';
        while (true) {
            try {
                const createTaskResponse = await fetch(createTaskUrl, {
                    method: 'POST',
                    headers: {
                        'Authorization': 'Bearer a8cdb216-7f56-30e1-c153-1d12de995ccb',
                        'Content-Type': 'application/json'
                    },
                    body: JSON.stringify({
                        url: link,
                        cache: true,
                    }),
                });

                const createTaskData = await createTaskResponse.json();

                if (createTaskData.status === 'success') {
                    return createTaskData.result.taskId;
                } else {
                    console.error('Failed to create task, retrying...', createTaskData);
                }

            } catch (error) {
                console.error('Error in createTask, retrying...', error);
            }

            await new Promise(resolve => setTimeout(resolve, 1000));
        }
    }

    try {
        const taskId = await createTask();
        const getTaskResultUrl = 'https://byte.yxusinbot.com/api/v1/getTaskResult';
        const getTaskResultResponse = await fetch(getTaskResultUrl, {
            method: 'POST',
            headers: {
                'Authorization': 'Bearer a8cdb216-7f56-30e1-c153-1d12de995ccb',
                'Content-Type': 'application/json'
            },
            body: JSON.stringify({ taskId }),
        });

        const getTaskResultData = await getTaskResultResponse.json();

        if (getTaskResultData.status === 'success') {
            const provider = await fetch(`https://byte.yxusinbot.com/api/v1/utils/getService`, {
                method: 'POST',
                headers: {
                    'Authorization': 'Bearer a8cdb216-7f56-30e1-c153-1d12de995ccb',
                    'Content-Type': 'application/json'
                },
                body: JSON.stringify({
                    url: link
                })
            });
            const providerdata = await provider.json();
            const { bypass_result } = getTaskResultData.result;
            const executionTime = getTaskResultData.metadata.execution_time;

            const embed = new EmbedBuilder()
                .setTitle(`${providerdata.service ?? "Unknown"} Bypasser`)
                .setColor('White')
                .addFields(
                    { name: '🔑 Result:', value: bypass_result },
                    { name: '⌚ Took:', value: `${executionTime} seconds` }
                )
                .setTimestamp()
                .setFooter({ text: "Made By EkkyxZ" });

            await interaction.editReply({ embeds: [embed], components: [button] });
        } else {
            console.error('Error retrieving task result:', getTaskResultData);

            const embed = new EmbedBuilder()
                .setColor("Red")
                .setTitle('An Error Occurred!')
                .setDescription(getTaskResultData.message ?? 'Unknown error occurred.');

            await interaction.editReply({ embeds: [embed], components: [button] });
        }

    } catch (error) {
        console.error('An error occurred:', error);
        const embed = new EmbedBuilder()
            .setColor("Red")
            .setTitle('Uh-oh, something went wrong!')
            .setDescription('An Unknown Error Occurred');

        await interaction.editReply({ embeds: [embed] });
    }
});