From 4c8b18940603f1ed3df4ad9c7e76ba9982b74d39 Mon Sep 17 00:00:00 2001 From: zhiyu1998 Date: Wed, 15 Feb 2023 15:06:37 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix:=20#R=E6=8F=92=E4=BB=B6?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/update.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/update.js b/apps/update.js index 23b476d..672fa0f 100644 --- a/apps/update.js +++ b/apps/update.js @@ -48,12 +48,12 @@ export class update extends plugin { * @returns {Promise} */ async rconsoleUpdate(e) { - if (!this.e.isMaster) { - await this.e.reply("您无权操作"); + if (!e.isMaster) { + await e.reply("您无权操作"); return true; } - let isForce = !!this.e.msg.includes("强制"); + let isForce = !!e.msg.includes("强制"); const pluginName = "rconsole-plugin";