代码:
const specifyembed = new Discord.MessageEmbed()
.setAuthor("Auto-Partner", client.user.displayAvatarURL())
.setThumbnail(client.user.displayAvatarURL())
.setDescription("**__Want to grow fast?__** \nWith this bot you can gain up to **3,000 Members** per week! \nThis bot will share your server in many active servers and to many active users! \nSimply add me to your server and use the command ``-partner {MESSAGE}``")
.addFields([
{
name: '**__Bot Invite Link:__**',
value: '[- Click To Add Bot -](your link goes here)'
}
])
.setTimestamp()
.setFooter("© Auto-Partner")
if(!args[0]) return message.channel.send(specifyembed)
错误:
(node:7920) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'client' of undefined
因此,如果有人对如何解决此问题有任何解决方案,请帮帮我。
答案 0 :(得分:1)
问题出在util.js和命令处理程序中,我没有将util.js与命令处理程序连接,这取决于您的问题,希望这对您有所帮助,我知道它可以依靠。