Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

119
Vistas
Deleting all Slash Commands

how to delete all slash commands using discord.js? I'm using 13.5.0 version

bot.on('interactionCreate', interaction => {
          if (!interaction.isCommand()) return;
          bot.api.applications(bot.user.id).commands(interaction.commandId).delete();
});

I tried to do this, but it's just gives me error: Uncaught DiscordAPIError: Unknown application command

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Setting slash commands takes up to an hour if done globally, so use the second param, guildid, to delete the slash commands of your bot for a testing server when testing. remove the second param when you want the slash commands to appear globally.

The code would be like so:

bot.application.commands.set([], <GuildId>);
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda