mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-05 22:01:54 +02:00
Fix MDN Results
This commit is contained in:
@@ -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!`);
|
||||
|
||||
Reference in New Issue
Block a user