Fix usage of 'this' in pluginUtils#canActOn

This commit is contained in:
Dragory 2020-07-22 22:23:47 +03:00
parent b1f9b54be4
commit 836fadf19e
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1

View file

@ -13,7 +13,7 @@ import { IZeppelinGlobalConfig, IZeppelinGuildConfig, TZeppelinKnub } from "./ty
const { getMemberLevel } = helpers;
export function canActOn(pluginData: PluginData<any>, member1: Member, member2: Member, allowSameLevel = false) {
if (member2.id === this.client.user.id) {
if (member2.id === pluginData.client.user.id) {
return false;
}