Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

247
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda