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

221
Vistas
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 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