Skip to content

Commit

Permalink
Merge pull request SwitchbladeBot#907 from SwitchbladeBot/ignore
Browse files Browse the repository at this point in the history
[REDACTED]
  • Loading branch information
Doges authored Jun 20, 2019
2 parents 07ffb72 + ebac746 commit 106ad32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/http/api/contributors.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module.exports = class Contributors extends Route {
id: role.id,
name: role.name,
members: members.map(member => {
if (member.roles.has(role.id) && !member.user.bot && !alreadyFound.includes(member.id)) {
if (member.roles.has(role.id) && !member.user.bot && !alreadyFound.includes(member.id) && !process.env.IGNORE_USERS.split(',').includes(member.id)) {
alreadyFound.push(member.id)
const { id, user: { username, discriminator, avatar, presence: { status } } } = member
return { username, discriminator, id, avatar, status }
Expand Down

0 comments on commit 106ad32

Please sign in to comment.