From b236b1a7122e51184df24ea61a65fa88ac439e98 Mon Sep 17 00:00:00 2001 From: yeyang <746659424@qq.com> Date: Wed, 22 Mar 2023 18:36:22 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E5=A4=B4=E8=A1=94=E6=A3=80=E6=B5=8B=E4=B8=8D=E5=88=B0?= =?UTF-8?q?=E8=89=BE=E7=89=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/groupAdmin.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/groupAdmin.js b/apps/groupAdmin.js index eec73ab..e2c71ee 100644 --- a/apps/groupAdmin.js +++ b/apps/groupAdmin.js @@ -285,9 +285,8 @@ export class GroupAdmin extends plugin { // 修改头衔 async adminsetTitle (e) { if (!common.Authentication(e, 'master', 'owner')) return - let qq = e.message.find(item => item.type == 'at')?.qq - if (qq) return e.reply('请艾特要修改的人哦~') + if (!qq) return e.reply('请艾特要修改的人哦~') let text = e.msg.replace(/#|修改头衔/, '') let res = await e.group.setTitle(qq, text) if (res) {