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

244
Vistas
Is it possible to include arguments in slash commands (Discord.js)

I am currently trying to build a discord.js bot that links to an NBA api in order to output statistics when requested. I am able to connect to the api and output my results eg. /seasons will output all seasons on record.

What i am now trying to achieve is a command such as /player-stats [player name] which will then output the stats of the requested player but i am unable to find a way to register the argument (players name) along with the command (/player-stats).

Any help would be greatly appreciated.

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

0

It is possible to add arguments in interaction commands.

If you are new you can use a gui for making slash commands also

https://slash-commands-gui.androz2091.fr/

You can get help from here also https://www.youtube.com/watch?v=pXehoXnFxPM

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