How to create a command that receives attributes in Discord in js code example

Example 1: discord.js command prompt notification

bot.on('ready', () => {
    console.log('Logged in as TEMPLATE');
  });
//link to the dev portal to make your own discord bot here: https://discord.com/developers/applications

Example 2: How to create a command that receives attributes in Discord in js

// client.on('message', message => {
if (!message.content.startsWith(prefix) || message.author.bot) return;

const args = message.content.slice(prefix.length).trim().split(' ');
const command = args.shift().toLowerCase();
// the rest of your code

Example 3: How to create a command that receives attributes in Discord in js

// using the new `command` variable, this makes it easier to manage!
// you can switch your other commands to this format as well
else if (command === 'args-info') {
	if (!args.length) {
		return message.channel.send(`You didn't provide any arguments, ${message.author}!`);
	}

	message.channel.send(`Command name: ${command}\nArguments: ${args}`);
}