implement MEMBER_MUTE_EXPIRED (#437)

Signed-off-by: GitHub <noreply@github.com>
This commit is contained in:
Tiago R 2023-12-29 14:30:40 +00:00 committed by GitHub
parent 8a4a2d3647
commit 3217f35017
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();