diff --git a/docs/Message.html b/docs/Message.html index 7dffecd..1a91ee8 100644 --- a/docs/Message.html +++ b/docs/Message.html @@ -98,6 +98,9 @@
type
+
vCards
+
+
@@ -241,6 +244,11 @@

Message type

+

vCards +  Array of string

+

List of vCards contained in the message.

+
+

Methods

diff --git a/docs/index.html b/docs/index.html index 18f6ce5..851e808 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1606,6 +1606,11 @@ client.initialize();
+
+ Message#vCards +
+
+
diff --git a/docs/structures_Message.js.html b/docs/structures_Message.js.html index 8a48185..599a185 100644 --- a/docs/structures_Message.js.html +++ b/docs/structures_Message.js.html @@ -148,6 +148,12 @@ class Message extends Base { */ this.location = data.type === MessageTypes.LOCATION ? new Location(data.lat, data.lng, data.loc) : undefined; + /** + * List of vCards contained in the message. + * @type {Array<string>} + */ + this.vCards = data.type === MessageTypes.CONTACT_CARD_MULTI ? data.vcardList.map((c) => c.vcard) : data.type === MessageTypes.CONTACT_CARD ? [data.body] : []; + /** * Indicates the mentions in the message body. * @type {Array<string>}