Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

discord js stats command

client.on('message', message => {
    if (message.content.toLowerCase().startsWith(prefix + 'stats')){
        if(message.author.bot) return;
        const exampleEmbed = new Discord.MessageEmbed()
            .setColor('RANDOM')
            .setTitle("Bot's Live Status")
            .addField(" u200B ", "**Channels** : ` " + `${client.channels.cache.size}` + " `")
            .addField(" u200B ", "**Servers** : ` " + `${client.guilds.cache.size}` + " `")
            .addField(" u200B ", "**Users** : ` " + `${client.users.cache.size}` + " `")
        message.channel.send(exampleEmbed);
    }
})
 
PREVIOUS NEXT
Tagged: #discord #js #stats #command
ADD COMMENT
Topic
Name
3+2 =