REST dont make Slash Commands

My guild Slash Commands dont register any more

A few days ago, all was still working. But I added a context menu handler to my bot with a similar code what I has taken for my guild Slash Commands.

(async () => {
            try {
                await rest.put(
                    GUILD_ID ?
                    Routes.applicationGuildCommands(CLIENT_ID, GUILD_ID) :
                    Routes.applicationCommands(CLIENT_ID), 
                    { body: slashCommands }
                );
                console.log(chalk.yellow('Slash Commands • Registered'))
            } catch (error) {
                console.log(error);
            }
    })();


My problem is, that the context menus are still working after deleting the context menu handler file and the slash commands dont register.
Was this page helpful?