mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-09 01:04:16 +02:00
22.0.0
This commit is contained in:
@@ -34,21 +34,21 @@ module.exports = class GithubCommand extends Command {
|
||||
.setTitle(body.full_name)
|
||||
.setDescription(body.description)
|
||||
.setThumbnail(body.owner.avatar_url)
|
||||
.addField('Creation Date',
|
||||
.addField('❯ Creation Date',
|
||||
moment(body.created_at).format('MMMM Do YYYY'), true)
|
||||
.addField('Last Updated On',
|
||||
.addField('❯ Last Updated On',
|
||||
moment(body.updated_at).format('MMMM Do YYYY'), true)
|
||||
.addField('Stargazers',
|
||||
.addField('❯ Stargazers',
|
||||
body.stargazers_count, true)
|
||||
.addField('Watchers',
|
||||
.addField('❯ Watchers',
|
||||
body.watchers_count, true)
|
||||
.addField('Open Issues',
|
||||
.addField('❯ Open Issues',
|
||||
body.open_issues_count, true)
|
||||
.addField('Language',
|
||||
.addField('❯ Language',
|
||||
body.language, true);
|
||||
return msg.embed(embed);
|
||||
} catch (err) {
|
||||
return msg.say(`${err.name}: ${err.message}`);
|
||||
return msg.say(err.message);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user