mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-27 22:27:44 +02:00
Fix MDN Results
This commit is contained in:
@@ -42,9 +42,9 @@ module.exports = class MDNCommand extends Command {
|
|||||||
const embed = new MessageEmbed()
|
const embed = new MessageEmbed()
|
||||||
.setColor(0x066FAD)
|
.setColor(0x066FAD)
|
||||||
.setAuthor('MDN', 'https://i.imgur.com/DFGXabG.png', 'https://developer.mozilla.org/')
|
.setAuthor('MDN', 'https://i.imgur.com/DFGXabG.png', 'https://developer.mozilla.org/')
|
||||||
.setURL(data.url)
|
.setURL(data.mdn_url)
|
||||||
.setTitle(data.title)
|
.setTitle(data.title)
|
||||||
.setDescription(data.excerpt);
|
.setDescription(data.summary);
|
||||||
return msg.embed(embed);
|
return msg.embed(embed);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
|
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);
|
||||||
|
|||||||
Reference in New Issue
Block a user