diff --git a/backend/src/plugins/ModActions.ts b/backend/src/plugins/ModActions.ts index 6079c383..e10d8a71 100644 --- a/backend/src/plugins/ModActions.ts +++ b/backend/src/plugins/ModActions.ts @@ -1044,7 +1044,7 @@ export class ModActionsPlugin extends ZeppelinPlugin { if (!user) return this.sendErrorMessage(msg.channel, `User not found`); const memberToUnmute = await this.getMember(user.id); const mutesPlugin = this.getPlugin("mutes"); - const hasMuteRole = mutesPlugin.hasMutedRole(memberToUnmute); + const hasMuteRole = memberToUnmute && mutesPlugin.hasMutedRole(memberToUnmute); // Check if they're muted in the first place if (!(await this.mutes.isMuted(args.user)) && !hasMuteRole) {