3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-10 04:25:01 +00:00

fix: isCommunicationDisabled()

This commit is contained in:
Dragory 2023-04-01 20:15:03 +03:00
parent 7c8573c6d5
commit 017ef5674a
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
3 changed files with 3 additions and 8 deletions

View file

@ -47,7 +47,7 @@ export const UnmuteCmd = modActionsCmd({
if (
!(await pluginData.state.mutes.isMuted(user.id)) &&
!hasMuteRole &&
!memberToUnmute?.communicationDisabledUntilTimestamp
!memberToUnmute?.isCommunicationDisabled()
) {
sendErrorMessage(pluginData, msg.channel, "Cannot unmute: member is not muted");
return;