fix: change mentionedIds type from ChatId[] to string[] in Message (#3581)
* fix: change mentionedIds type from ChatId[] to string[] in Message interface * fix: correct types for mentionedIds and groupMentions --------- Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com>
This commit is contained in:
parent
57cdc88b6a
commit
94ce20b4a5
1 changed files with 4 additions and 18 deletions
|
|
@ -186,26 +186,16 @@ class Message extends Base {
|
|||
toId: typeof data.to === 'object' && '_serialized' in data.to ? data.to._serialized : data.to
|
||||
} : undefined;
|
||||
|
||||
/**
|
||||
* @typedef {Object} Mention
|
||||
* @property {string} server
|
||||
* @property {string} user
|
||||
* @property {string} _serialized
|
||||
*/
|
||||
|
||||
/**
|
||||
* Indicates the mentions in the message body.
|
||||
* @type {Mention[]}
|
||||
* @type {string[]}
|
||||
*/
|
||||
this.mentionedIds = data.mentionedJidList || [];
|
||||
|
||||
/**
|
||||
* @typedef {Object} GroupMention
|
||||
* @property {string} groupSubject The name of the group
|
||||
* @property {Object} groupJid The group ID
|
||||
* @property {string} groupJid.server
|
||||
* @property {string} groupJid.user
|
||||
* @property {string} groupJid._serialized
|
||||
* @property {string} groupJid The group ID
|
||||
*/
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue