X
X
XXXVladsXXX2020-05-18 15:51:42
JavaScript
XXXVladsXXX, 2020-05-18 15:51:42

When I write !p(What would the profile show) It shows me undefined What's wrong?

const Discord = module.require("discord.js");
const fs = require("fs");
let profile = require("../profile.json");
const bot = new Discord.Client();
module.exports.run = async (bot,message,args) => {
    let embed = new Discord.RichEmbed()
    .setDescription("✅Профиль",message.author)
    .setColor('#FF8C00')
    .addField("Монет:",`**${message.author.coins}**`)

    bot.send(embed);

};
module.exports.help = {
    name: "p"
};

When I write !p(What would the profile show) It shows me undefined
What's wrong?
5ec284c51da70799738153.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2020-05-18
@HistoryART

The problem is here:
`**${message.author.coins}**`

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question