Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

225
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!