Unknown Interaction error

i've tried all things to fix the issue but none of them worked. Even chatgpted it but still. Anyone knows why?

client.on('interactionCreate', async (interaction) => {
    if (interaction.isCommand()) {
        await interactionHandlers.handleCommand(interaction, db);
    } else if (interaction.isButton()) {
        await interactionHandlers.handleButton(interaction, db);
    } else if (interaction.isStringSelectMenu()) {
        await interactionHandlers.handleStringSelect(interaction, db);
    } else if (interaction.isModalSubmit()) {
        await interactionHandlers.handleModal(interaction, db);
    }
});
Was this page helpful?