mirror of
https://github.com/Jerryplusy/crystelf-plugin.git
synced 2025-10-14 05:39:18 +00:00
fix:修复管理员逻辑错误
This commit is contained in:
parent
bab7795f32
commit
c764ecc9f9
@ -38,7 +38,8 @@ export class carbonAuthSetting extends plugin {
|
||||
return e.reply('只有群主或管理员可以设置验证..', true);
|
||||
const botMember = await e.group?.pickMember?.(e.bot.uin);
|
||||
const info = await botMember?.getInfo();
|
||||
if (info.role !== 'admin' || info.role !== 'owner') {
|
||||
//logger.info(info.role);
|
||||
if (info.role !== 'admin' && info.role !== 'owner') {
|
||||
return e.reply(`${ConfigControl.get('profile')?.nickName}不是管理,没法帮你验证啦..`, true);
|
||||
}
|
||||
const { cfg, groupCfg } = await this._getCfg(e);
|
||||
|
Loading…
x
Reference in New Issue
Block a user