mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Added method to revokes link of group chat (#421)
This commit is contained in:
@@ -182,4 +182,9 @@ export class WAConnection extends Base {
|
||||
const response = await this.query({ json: ['action', 'invite', jid], expect200: true })
|
||||
return response
|
||||
}
|
||||
/** Revokes the current invite link for a group chat */
|
||||
async revokeInvite(jid) {
|
||||
const response = await this.query({ json: ['action', 'inviteReset', jid], expect200: true })
|
||||
return response
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user