Skip to content

Commit

Permalink
attempted fix at isMuted #2
Browse files Browse the repository at this point in the history
Signed-off-by: GitHub <[email protected]>
  • Loading branch information
metal0 authored and FlokieW committed Feb 20, 2023
1 parent efdd1e3 commit 23269a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/plugins/ModActions/commands/UnmuteCmd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const UnmuteCmd = modActionsCmd({
const hasMuteRole = memberToUnmute && mutesPlugin.hasMutedRole(memberToUnmute);

// Check if they're muted in the first place
if (!(await pluginData.state.mutes.isMuted(args.user)) && !hasMuteRole) {
if (!(await pluginData.state.mutes.isMuted(user.id)) && !hasMuteRole) {
sendErrorMessage(pluginData, msg.channel, "Cannot unmute: member is not muted");
return;
}
Expand Down

0 comments on commit 23269a9

Please sign in to comment.