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

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); await member.timeout(null);
} }
} }
pluginData.getPlugin(LogsPlugin).logMemberMuteExpired({ member });
} catch { } catch {
pluginData.getPlugin(LogsPlugin).logBotAlert({ pluginData.getPlugin(LogsPlugin).logBotAlert({
body: `Failed to remove mute role from ${verboseUserMention(member.user)}`, body: `Failed to clear mute from ${verboseUserMention(member.user)}`,
}); });
} finally { } finally {
lock.unlock(); lock.unlock();