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:
parent
61c7189851
commit
45dffbd532
1 changed files with 1 additions and 3 deletions
|
@ -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();
|
||||
}),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue