Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

Commit

Permalink
Merge pull request #42 from MitchTalmadge/develop
Browse files Browse the repository at this point in the history
Don't synchronize bot's own roles.
  • Loading branch information
MitchTalmadge authored Nov 14, 2020
2 parents 604a8e2 + 71e9a4b commit 13638c4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/services/health-assurance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ export class HealthAssuranceService {
}

// Synchronize roles.
await MemberUpdateService.queueSynchronizeRolesManyMembers(this.guildContext, members.array());
await MemberUpdateService.queueSynchronizeRolesManyMembers(
this.guildContext,
members.array().filter(m => m.user.id !== this.guildContext.guild.client.user.id)
);

const users = await UserDatabaseService.getAllUsers();
for(let user of users) {
Expand Down

0 comments on commit 13638c4

Please sign in to comment.