mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 13:57:10 +00:00
gemini智能模式下主人可使用bot管理员禁言权限 (#708)
This commit is contained in:
parent
ac304e0ed3
commit
beaec147b5
1 changed files with 2 additions and 2 deletions
|
|
@ -232,8 +232,8 @@ export class CustomGoogleGeminiClient extends GoogleGeminiClient {
|
||||||
} else {
|
} else {
|
||||||
// execute function
|
// execute function
|
||||||
try {
|
try {
|
||||||
let isAdmin = ['admin', 'owner'].includes(this.e.sender.role)
|
let isAdmin = ['admin', 'owner'].includes(this.e.sender.role) || (this.e.group?.is_admin && this.e.isMaster)
|
||||||
let isOwner = ['owner'].includes(this.e.sender.role)
|
let isOwner = ['owner'].includes(this.e.sender.role) || (this.e.group?.is_owner && this.e.isMaster)
|
||||||
let args = Object.assign(functionCall.args, {
|
let args = Object.assign(functionCall.args, {
|
||||||
isAdmin,
|
isAdmin,
|
||||||
isOwner,
|
isOwner,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue