how to handle "unknown interaction" error

        try {
            return await interaction.reply(...);
        } catch (error) {
            if ((error as Error).message.includes("Unknown interaction")) {
                return await interaction.reply(...);
            {
                console.error(Error);
                return null;
            }
        }

if the "unknown interaction" error occurs, should i try to reply to the interaction again or wut?
i think the error occurs when the user is lagging
Was this page helpful?