From 836fadf19e87fa23eb5b7bb10d62d8aeab33fdd1 Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Wed, 22 Jul 2020 22:23:47 +0300 Subject: [PATCH] Fix usage of 'this' in pluginUtils#canActOn --- backend/src/pluginUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/pluginUtils.ts b/backend/src/pluginUtils.ts index 56422b2a..c5efa2cd 100644 --- a/backend/src/pluginUtils.ts +++ b/backend/src/pluginUtils.ts @@ -13,7 +13,7 @@ import { IZeppelinGlobalConfig, IZeppelinGuildConfig, TZeppelinKnub } from "./ty const { getMemberLevel } = helpers; export function canActOn(pluginData: PluginData, member1: Member, member2: Member, allowSameLevel = false) { - if (member2.id === this.client.user.id) { + if (member2.id === pluginData.client.user.id) { return false; }