const GphApiClient = require("giphy-js-sdk-core");
var giphy = GphApiClient ;
exports.run = (bot, message, args, client) => {
giphy.search("gifs", { q: "fail" })
.then(response => {
var totalResponses = response.data.length;
var responseIndex = Math.floor((Math.random() * 10) + 1) % totalResponses;
var responseFinal = response.data[responseIndex]
const embed = new Discord.RichEmbed() // Here is my problem it says 'Discord' is not defined
.setAuthor('x')
.setColor('RANDOM')
.setTimestamp()
.setDescription('')
.setImage(responseFinal.images.fixed_height.url)
message.channel.send(embed)
}
)
}
exports.conf = {
enabled: true,
guildOnly: false,
aliases: [],
permLevel: 0
};
exports.help = {
name: 'hug',
description: 'Free Hug!',
usage: 'hug'
};
我需要帮助:c 我刚开始编码。我不知道它刚刚说的错误是什么
“不和谐”未定义
如果您发现错误,请在 discord 上联系我。万和达#2722