PrivateContact
Source: Structures/
Represents a Private Contact on WhatsApp
Properties
new PrivateContact()
- Extends
- Contact
Properties
id unknown
ID that represents the contact
- Inherited from
- Contact#id
isBlocked unknown
Indicates if you have blocked this contact
- Inherited from
- Contact#isBlocked
isBusiness unknown
Indicates if the contact is a business contact
- Inherited from
- Contact#isBusiness
isEnterprise unknown
Indicates if the contact is an enterprise contact
- Inherited from
- Contact#isEnterprise
isGroup unknown
Indicates if the contact is a group contact
- Inherited from
- Contact#isGroup
isMe unknown
Indicates if the contact is the current user's contact
- Inherited from
- Contact#isMe
isMyContact unknown
Indicates if the number is saved in the current phone's contacts
- Inherited from
- Contact#isMyContact
isUser unknown
Indicates if the contact is a user contact
- Inherited from
- Contact#isUser
isWAContact unknown
Indicates if the number is registered on WhatsApp
- Inherited from
- Contact#isWAContact
name unknown
The contact's name, as saved by the current user
- Inherited from
- Contact#name
number unknown
Contact's phone number
- Inherited from
- Contact#number
pushname unknown
The name that the contact has configured to be shown publically
- Inherited from
- Contact#pushname
shortName unknown
A shortened version of name
- Inherited from
- Contact#shortName
Methods
block() → Promise containing boolean
Blocks this contact from WhatsApp
- Inherited from
- Contact#block
- Returns
getAbout() → Promise containing nullable string
Gets the Contact's current "about" info. Returns null if you don't have permission to read their status.
- Inherited from
- Contact#getAbout
- Returns
getChat() → Promise containing Chat
Returns the Chat that corresponds to this Contact. Will return null when getting chat for currently logged in user.
- Inherited from
- Contact#getChat
- Returns
getCommonGroups() → Promise containing Array of WAWebJS.ChatId
Gets the Contact's common groups with you. Returns empty array if you don't have any common group.
- Inherited from
- Contact#getCommonGroups
- Returns
getCountryCode() → Promise containing string
Returns the contact's countrycode, ([email protected]) => (1)
- Inherited from
- Contact#getCountryCode
- Returns
getFormattedNumber() → Promise containing string
Returns the contact's formatted phone number, ([email protected]) => (+1 (234) 5678-901)
- Inherited from
- Contact#getFormattedNumber
- Returns
getProfilePicUrl() → Promise containing string
Returns the contact's profile picture URL, if privacy settings allow it
- Inherited from
- Contact#getProfilePicUrl
- Returns
unblock() → Promise containing boolean
Unblocks this contact from WhatsApp
- Inherited from
- Contact#unblock
- Returns