Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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
Source by discordjs.guide #
 
PREVIOUS NEXT
Tagged: #How #create #command #receives #attributes #Discord #js
ADD COMMENT
Topic
Name
5+6 =