From 1a0d318fe16444e9dbc6c09741e1089a69b99da4 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sat, 30 Jan 2021 23:12:00 -0500 Subject: [PATCH] Fix MDN Results --- commands/search/mdn.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/search/mdn.js b/commands/search/mdn.js index 8cd07704..b680ef7a 100644 --- a/commands/search/mdn.js +++ b/commands/search/mdn.js @@ -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!`);