Idk我在做什么错,在主文件中看起来像这样:
if (message.content.startsWith(config.prefix + "help")) {
client.commands.get('help').execute(message, args);
}
在help.js中,它的定义如下:
const Discord = require("D:/Discord Bot/Unfinity/lib/node_modules/discord.js");
const client = new Discord.Client();
module.exports = {
name: "help",
description: "Shows standard help menu",
async execute(message, args) {
const helpui = new Discord.RichEmbed()
.setColor('#994DF7')
.setTitle("*Unfinity's Help Menu*")
.addField("8BALL", "Ask the magical ball.")
.addField("AVATAR", "Previews the avatar of user.")
.addField("HELP", "Shows this menu.")
.addField("INFO", "Shows information about the bot.")
.addField("PING", "Tests Unfinity's response time.")
.addField("PREFIX", "Displays bot's prefix.")
.addField("USER", "Shows information about the user.")
.addBlankField()
.addField("To view moderation commands use", "**" + config.modprefix + "help**")
.setFooter("Requested by " + message.author.tag, message.author.avatarURL)
message.channel.send(helpui);
}
}
我真的也需要帮助 the console error here
答案 0 :(得分:0)