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

222
Visualizações
Specific keywords not working inside of a command

I'm trying to make a "help" command for my bot and it works sometimes. Currently I'm having it find all the arguments of the message sent in discord, and right now I'm only having it console.log those arguments. For some reason when I do -help hello it will console.log hello but when I do -help ban it doesn't log anything and then the help command stops working. Here is my current code to find the arguments. var args:any = message.content.slice(prefix.length).split(/ +/); and then the actual help command itself

name: 'help',
description: "Provides more detail about commands",
async execute(message:any, args:any, Discord:any) {
    
    console.log(`args.length: ${args.length}`);
    console.log(args);

I'm wondering if there are specific words that don't work with Discord. Thanks :)

about 4 years ago · Juan Pablo Isaza
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