3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-23 09:35:02 +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

@ -16,7 +16,7 @@ export async function clearExpiredMutes(pluginData: GuildPluginData<MutesPluginT
const muteRole = pluginData.config.get().mute_role;
if (muteRole) {
await member.roles.remove(muteRole);
await member.roles.remove(muteRole as Snowflake);
}
if (mute.roles_to_restore) {
const guildRoles = pluginData.guild.roles.cache;
@ -26,7 +26,7 @@ export async function clearExpiredMutes(pluginData: GuildPluginData<MutesPluginT
for (const toRestore of mute.roles_to_restore) {
if (guildRoles.has(toRestore as Snowflake) && toRestore !== muteRole) newRoles.push(toRestore);
}
await member.roles.set(newRoles);
await member.roles.set(newRoles as Snowflake[]);
}
lock.unlock();