1

I'm trying to make a discord bot with discord.js. My current code is:

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"
  }

When I try to run it I get the error TypeError: command is not a constructor (line 4)

Any help would be appreciated

André
  • 3,766
  • 4
  • 24
  • 47
TRSI
  • 87
  • 1
  • 1
  • 6

0 Answers0