Embed style, better yugioh api

This commit is contained in:
Daniel Odendahl Jr
2018-04-20 13:15:38 +00:00
parent a880d2578b
commit 116582e6a8
35 changed files with 207 additions and 384 deletions
+1 -2
View File
@@ -42,8 +42,7 @@ module.exports = class NewYorkTimesCommand extends Command {
.setURL(data.web_url)
.setTitle(data.headline.main)
.setDescription(shorten(data.snippet))
.addField(' Publish Date',
new Date(data.pub_date).toDateString(), true);
.addField(' Publish Date', new Date(data.pub_date).toDateString(), true);
return msg.embed(embed);
} catch (err) {
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);