mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 04:25:01 +00:00
fix: isCommunicationDisabled()
This commit is contained in:
parent
7c8573c6d5
commit
017ef5674a
3 changed files with 3 additions and 8 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue