mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 13:27:08 +00:00
fix: 兼容性修复
This commit is contained in:
parent
e4acfcf162
commit
e68c4fdd50
1 changed files with 1 additions and 1 deletions
|
|
@ -33,7 +33,7 @@ export class EditCardTool extends AbstractTool {
|
|||
if (!mm.has(qq)) {
|
||||
return `failed, the user ${qq} is not in group ${groupId}`
|
||||
}
|
||||
if (mm.get(e.bot.uin).role === 'member') {
|
||||
if (mm.get(e.bot.uin) && mm.get(e.bot.uin).role === 'member') {
|
||||
return `failed, you, not user, don't have permission to edit card in group ${groupId}`
|
||||
}
|
||||
logger.info('edit card: ', groupId, qq)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue