mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-25 14:21:41 +02:00
Fix NPM
This commit is contained in:
@@ -34,11 +34,11 @@ module.exports = class NPMCommand extends Command {
|
|||||||
.addField('❯ Version',
|
.addField('❯ Version',
|
||||||
body['dist-tags'].latest, true)
|
body['dist-tags'].latest, true)
|
||||||
.addField('❯ License',
|
.addField('❯ License',
|
||||||
body.license, true)
|
body.license || 'None', true)
|
||||||
.addField('❯ Author',
|
.addField('❯ Author',
|
||||||
body.author.name, true)
|
body.author ? body.author.name : 'Unknown', true)
|
||||||
.addField('❯ Keywords',
|
.addField('❯ Keywords',
|
||||||
body.keywords.join(', '))
|
body.keywords ? body.keywords.join(', ') : 'None')
|
||||||
.addField('❯ Maintainers',
|
.addField('❯ Maintainers',
|
||||||
body.maintainers.map((user) => user.name).join(', '));
|
body.maintainers.map((user) => user.name).join(', '));
|
||||||
return msg.embed(embed);
|
return msg.embed(embed);
|
||||||
|
|||||||
Reference in New Issue
Block a user