3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-23 09:35:02 +00:00

Update backend/src/plugins/Automod/actions/changeRoles.ts

Co-authored-by: Almeida <almeidx@pm.me>
This commit is contained in:
metal 2021-09-08 14:22:58 +01:00 committed by GitHub
parent 1fdc24a92f
commit 61c7189851
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -84,7 +84,7 @@ export const ChangeRolesAction = automodAction({
ignoreRoleChange(pluginData, member.id, roleId);
}
for (const roleId of rolesToRemove) {
memberRoles.delete(roleId as Snowflake);
memberRoles.delete(roleId);
ignoreRoleChange(pluginData, member.id, roleId);
}