Answers for "How to create a command that receives attributes in Discord in js"

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
Posted by: Guest on May-07-2020
0

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}`);
}
Posted by: Guest on January-12-2021
0

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
Posted by: Guest on January-12-2021

Code answers related to "How to create a command that receives attributes in Discord in js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language