MeesageEmbed

This commit is contained in:
Daniel Odendahl Jr
2017-07-03 23:49:09 +00:00
parent 7214aea5e8
commit 58807cd222
39 changed files with 79 additions and 79 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
const Command = require('../../structures/Command');
const { RichEmbed } = require('discord.js');
const { MessageEmbed } = require('discord.js');
const snekfetch = require('snekfetch');
const { cleanXML } = require('../../structures/Util');
const { promisifyAll } = require('tsubaki');
@@ -32,7 +32,7 @@ module.exports = class AnimeCommand extends Command {
.query({ q: query });
const { anime } = await xml.parseStringAsync(text);
const synopsis = cleanXML(anime.entry[0].synopsis[0].substr(0, 2000));
const embed = new RichEmbed()
const embed = new MessageEmbed()
.setColor(0x2D54A2)
.setAuthor('My Anime List', 'https://i.imgur.com/R4bmNFz.png')
.setURL(`https://myanimelist.net/anime/${anime.entry[0].id[0]}`)