Skip to content

Commit

Permalink
implement MEMBER_MUTE_EXPIRED (#437)
Browse files Browse the repository at this point in the history
Signed-off-by: GitHub <[email protected]>
  • Loading branch information
metal0 authored Dec 29, 2023
1 parent 8a4a2d3 commit 3217f35
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/src/plugins/Mutes/functions/clearMute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,10 @@ export async function clearMute(
await member.timeout(null);
}
}
pluginData.getPlugin(LogsPlugin).logMemberMuteExpired({ member });
} catch {
pluginData.getPlugin(LogsPlugin).logBotAlert({
body: `Failed to remove mute role from ${verboseUserMention(member.user)}`,
body: `Failed to clear mute from ${verboseUserMention(member.user)}`,
});
} finally {
lock.unlock();
Expand Down

0 comments on commit 3217f35

Please sign in to comment.