Skip to content

Commit

Permalink
gemini智能模式下主人可使用bot管理员禁言权限 (#708)
Browse files Browse the repository at this point in the history
  • Loading branch information
misaka20002 committed Aug 3, 2024
1 parent ac304e0 commit beaec14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/CustomGoogleGeminiClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,8 @@ export class CustomGoogleGeminiClient extends GoogleGeminiClient {
} else {
// execute function
try {
let isAdmin = ['admin', 'owner'].includes(this.e.sender.role)
let isOwner = ['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) || (this.e.group?.is_owner && this.e.isMaster)
let args = Object.assign(functionCall.args, {
isAdmin,
isOwner,
Expand Down

0 comments on commit beaec14

Please sign in to comment.