Add URLs to all author embed fields

This commit is contained in:
Daniel Odendahl Jr
2018-02-26 00:09:56 +00:00
parent c9e0146459
commit 3a68ec1029
32 changed files with 39 additions and 36 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ module.exports = class NewYorkTimesCommand extends Command {
const data = body.response.docs[Math.floor(Math.random() * body.response.docs.length)];
const embed = new MessageEmbed()
.setColor(0xF6F6F6)
.setAuthor('New York Times', 'https://i.imgur.com/ZbuTWwO.png')
.setAuthor('New York Times', 'https://i.imgur.com/ZbuTWwO.png', 'https://www.nytimes.com/')
.setURL(data.web_url)
.setTitle(data.headline.main)
.setDescription(shorten(data.snippet))