From 09464e56e30dc6ff0bc4f817e5919c48fbda7212 Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Sun, 4 Aug 2019 13:16:01 +0300 Subject: [PATCH] Mutes: fix mutes/unmutes sometimes not applying/removing the role --- src/plugins/Mutes.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/Mutes.ts b/src/plugins/Mutes.ts index 926cc84d..de9c6e38 100644 --- a/src/plugins/Mutes.ts +++ b/src/plugins/Mutes.ts @@ -139,7 +139,7 @@ export class MutesPlugin extends ZeppelinPlugin { } const user = await this.resolveUser(userId); - const member = await this.getMember(user.id); + const member = await this.getMember(user.id, true); // Grab the fresh member so we don't have stale role info if (member) { // Apply mute role if it's missing @@ -264,7 +264,7 @@ export class MutesPlugin extends ZeppelinPlugin { if (!existingMute) return; const user = await this.resolveUser(userId); - const member = await this.getMember(userId); + const member = await this.getMember(userId, true); // Grab the fresh member so we don't have stale role info if (unmuteTime) { // Schedule timed unmute (= just set the mute's duration)