This commit is contained in:
Daniel Odendahl Jr
2017-07-24 03:06:55 +00:00
parent 0c1f3fd2ca
commit 2a18d149cc
+3 -3
View File
@@ -34,11 +34,11 @@ module.exports = class NPMCommand extends Command {
.addField(' Version',
body['dist-tags'].latest, true)
.addField(' License',
body.license, true)
body.license || 'None', true)
.addField(' Author',
body.author.name, true)
body.author ? body.author.name : 'Unknown', true)
.addField(' Keywords',
body.keywords.join(', '))
body.keywords ? body.keywords.join(', ') : 'None')
.addField(' Maintainers',
body.maintainers.map((user) => user.name).join(', '));
return msg.embed(embed);