Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/tripsit/TripBot into prisma
Browse files Browse the repository at this point in the history
  • Loading branch information
LunaUrsa committed Nov 10, 2023
2 parents 9d13250 + 249af26 commit d90af81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/discord/events/guildMemberUpdate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -467,12 +467,12 @@ export const guildMemberUpdate: GuildMemberUpdateEvent = {
// Find the difference between the two arrays
const rolesAdded = newRoles.filter(x => !oldRoles.includes(x));
if (rolesAdded.length > 0) {
log.debug(F, `${rolesAdded.length} roles added`);
// log.debug(F, `${rolesAdded.length} roles added`);
await roleAddProcess(newMember, oldMember, rolesAdded);
}
const rolesRemoved = oldRoles.filter(x => !newRoles.includes(x));
if (rolesRemoved.length > 0) {
log.debug(F, `${rolesRemoved.length} roles removed`);
// log.debug(F, `${rolesRemoved.length} roles removed`);
await roleRemProcess(newMember, rolesRemoved);
}
}
Expand Down

0 comments on commit d90af81

Please sign in to comment.