(节点:11773)UnhandledPromiseRejectionWarning:TypeError:无法读取未定义的属性“ find”

时间:2019-12-15 12:42:56

标签: javascript

所以我正在创建笑话commnd,并且出现此错误,我尝试了.find(),但它没有起作用,它是相同的消息,但是没有找到它,有人可以帮助我吗? 代码:

const { Client, Attachment, Collection, RichEmbed } = require('discord.js');
const Joker = require("blague.xyz");
const joker = new Joker();

module.exports = {
    name: "joke",
    category: "fun",
    description: "Sends an epic JOKE",
    run: async (client, message, args) => {
      let joke = await joker.random();

      let embed = new RichEmbed()
      .setDescription('${joke.toDiscordSpoils()}')
      .setFooter(message.language.find("JOKE_FOOTER"))
      .setColor("#cc92f7")

      message.channel.send(embed);
    }
} ```

// Error : .setFooter(message.language.find("JOKE_FOOTER"))


0 个答案:

没有答案