Bot will not .editReply() it's message.

Greetings,

I am running discord.js v14.14.1 and npm v 9.8.1. I have two bots with the exact same code, however one is for the main server in which it's deployed and the second bot is on my test server so I can test out new features to add. My test bot is able to edit the message just fine while the actual bot refuses to edit the messages from the deferedReply and crashes after 15 minutes. I see no signs of Rate Limiting by discord so I'm shocked. Attached is proof that the embed data is coming through the console side.

Code:
   if (targetUser) {
        interaction.deferReply(); // Deferring the reply here
        let userNickname = targetUser.nickname;
        embedUserNickname = userNickname.replace(/\[[^\]]*\]\s*/, "");
        userNickname = userNickname.replace(/\[[^\]]*\]\s*/, "").trim().toLowerCase();
        const lowercaseUserNickname = userNickname.toLowerCase();

//Just grabbed the code where deferReply is called

const embed = new EmbedBuilder()
            .setColor("White")
            .setTitle(`**${embedUserNickname}**`)
            .setThumbnail(img)
            .addFields(
          { name: "**Rank:**", value: role_name },
          { name: "**Awards:**", value: awardsList},
          { name: "**Tabs:**", value: tabsList},
          { name: "**Ribbons:**", value: ribbonList}
        )
            .setFooter({
          text: `${interaction.client.user.tag} is managed by Zer0_Access`,
          iconURL: `${interaction.client.user.avatarURL()}`,
        });
        console.log(embed);
    
      interaction.followUp({ embeds: [embed] , ephemeral: false});

It just gets stuck on the bot is thinking message. Any help would be appreciated. The code works on the test bot but not the actual bot.

Note: it doesn't error until after 15 minutes in which it says Invalid Webhook Token.
image.png
Was this page helpful?