我正在尝试用discord.js制作一个discord bot。我目前的代码是:
const Discord = require("discord.js");
module.exports.run = (bot, message, args) => {
let user = message.mention.users.first();
const embed = new Discord.RichEmbed()
.addField('Bot Info')
};
module.exports.help = {
name: "userinfo"
}
当我尝试运行它时,我得到错误TypeError:command不是构造函数(第4行)
任何帮助将不胜感激