3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-10 04:25:01 +00:00

Logs - role change compare only role IDs instead of a collection (#264)

This commit is contained in:
metal 2021-09-04 17:15:16 +01:00 committed by GitHub
parent e73d6d4e1c
commit 2d777a03db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 5 deletions

View file

@ -14,8 +14,8 @@ export const RunAutomodOnMemberUpdate = typedGuildEventListener<AutomodPluginTyp
if (isEqual(oldRoles, newRoles)) return;
const addedRoles = diff(oldRoles, newRoles);
const removedRoles = diff(newRoles, oldRoles);
const addedRoles = diff(newRoles, oldRoles);
const removedRoles = diff(oldRoles, newRoles);
if (addedRoles.length || removedRoles.length) {
const context: AutomodContext = {