3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-22 09:15:03 +00:00

Update DJS

This commit is contained in:
Dark 2021-07-04 17:41:44 +02:00
parent d8cf71d475
commit e5730d0b85
23 changed files with 71 additions and 56 deletions

View file

@ -1,3 +1,4 @@
import { Snowflake } from "discord.js";
import { LogType } from "../../../data/LogType";
import { stripObjectToScalars } from "../../../utils";
import { memberRolesLock } from "../../../utils/lockNameHelpers";
@ -15,7 +16,7 @@ export const ReapplyActiveMuteOnJoinEvt = mutesEvt({
if (muteRole) {
const memberRoleLock = await pluginData.locks.acquire(memberRolesLock(member));
await member.roles.add(muteRole);
await member.roles.add(muteRole as Snowflake);
memberRoleLock.unlock();
}