showing results for - "args slice discord js"
Dino
10 Oct 2019
1const args = message.content.slice(prefix.length).trim().split(/ +/g);
2const command = args.shift().toLowerCase(); 
3
4if (command === "RandomCommand") {
5  let firstArgs = args[0]; //first argument
6  let secondArgs = args[1]; //second argument
7  if (firstArgs && secondArgs) { //check if the args are existing
8  	message.channel.send(firstArgs, secondArgs) //send the value of the args
9  }
10}