3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-23 01:25: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:23:41 +01:00 committed by GitHub
parent 61c7189851
commit 45dffbd532
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -96,9 +96,7 @@ export const ChangeRolesAction = automodAction({
const memberRoleLock = await pluginData.locks.acquire(memberRolesLock(member));
const rolesArr = Array.from(memberRoles.values());
await member.edit({
roles: rolesArr,
});
await member.roles.set(rolesArr);
memberRoleLock.unlock();
}),