fix: group

This commit is contained in:
ikechan8370 2023-07-03 11:21:47 +08:00
parent 9be8b54faf
commit 3b807211c2

View file

@ -31,8 +31,8 @@ export class JinyanTool extends AbstractTool {
qq = qq !== 'all'
? isNaN(qq) || !qq ? e.sender.user_id : parseInt(qq.trim())
: 'all'
let group = await Bot.pickGroup(groupId)
if (qq !== 'all') {
let group = await Bot.pickGroup(groupId)
let m = await group.getMemberMap()
if (!m.has(qq)) {
return `failed, the user ${qq} is not in group ${groupId}`