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
@@ -44,7 +44,7 @@ module.exports = class UrbanDictionaryCommand extends Command {
const data = body.list[type === 'top' ? 0 : Math.floor(Math.random() * body.list.length)];
const embed = new MessageEmbed()
.setColor(0x32A8F0)
.setAuthor('Urban Dictionary', 'https://i.imgur.com/Fo0nRTe.png')
.setAuthor('Urban Dictionary', 'https://i.imgur.com/Fo0nRTe.png', 'https://www.urbandictionary.com/')
.setURL(data.permalink)
.setTitle(data.word)
.setDescription(shorten(data.definition))