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 :)