Fix MDN Results

This commit is contained in:
Dragon Fire
2021-01-30 23:12:00 -05:00
parent 3ec12da6e7
commit 1a0d318fe1
+2 -2
View File
@@ -42,9 +42,9 @@ module.exports = class MDNCommand extends Command {
const embed = new MessageEmbed()
.setColor(0x066FAD)
.setAuthor('MDN', 'https://i.imgur.com/DFGXabG.png', 'https://developer.mozilla.org/')
.setURL(data.url)
.setURL(data.mdn_url)
.setTitle(data.title)
.setDescription(data.excerpt);
.setDescription(data.summary);
return msg.embed(embed);
} catch (err) {
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);