@@ -22,13 +22,6 @@ module.exports = class GithubFollowers extends GithubAuthService {
|
||||
}
|
||||
}
|
||||
|
||||
static render({ followers }) {
|
||||
return {
|
||||
message: metric(followers),
|
||||
color: '4183C4',
|
||||
}
|
||||
}
|
||||
|
||||
static get examples() {
|
||||
return [
|
||||
{
|
||||
@@ -51,6 +44,13 @@ module.exports = class GithubFollowers extends GithubAuthService {
|
||||
}
|
||||
}
|
||||
|
||||
static render({ followers }) {
|
||||
return {
|
||||
message: metric(followers),
|
||||
color: '4183C4',
|
||||
}
|
||||
}
|
||||
|
||||
async handle({ user }) {
|
||||
const { followers } = await this._requestJson({
|
||||
url: `/users/${user}`,
|
||||
|
||||
Reference in New Issue
Block a user