所以我正在创建笑话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"))