mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
feat: extra metadata on groupMetadata (#1374)
This commit is contained in:
@@ -4,6 +4,7 @@ export type GroupParticipant = Contact & {
|
||||
isAdmin?: boolean
|
||||
isSuperAdmin?: boolean
|
||||
admin?: 'admin' | 'superadmin' | null
|
||||
jid?: string | undefined
|
||||
}
|
||||
|
||||
export type ParticipantAction = 'add' | 'remove' | 'promote' | 'demote' | 'modify'
|
||||
@@ -17,15 +18,19 @@ export interface GroupMetadata {
|
||||
/** group uses 'lid' or 'pn' to send messages */
|
||||
addressingMode: 'pn' | 'lid'
|
||||
owner: string | undefined
|
||||
ownerJid?: string | undefined
|
||||
subject: string
|
||||
/** group subject owner */
|
||||
subjectOwner?: string
|
||||
subjectOwnerJid?: string
|
||||
/** group subject modification date */
|
||||
subjectTime?: number
|
||||
creation?: number
|
||||
desc?: string
|
||||
descOwner?: string
|
||||
descOwnerJid?: string
|
||||
descId?: string
|
||||
descTime?: number
|
||||
/** if this group is part of a community, it returns the jid of the community to which it belongs */
|
||||
linkedParent?: string
|
||||
/** is set when the group only allows admins to change group settings */
|
||||
|
||||
Reference in New Issue
Block a user