diff --git a/index.d.ts b/index.d.ts index 53a59c9..5d511f4 100644 --- a/index.d.ts +++ b/index.d.ts @@ -991,15 +991,11 @@ declare namespace WAWebJS { /** MediaKey that represents the sticker 'ID' */ mediaKey?: string, /** Indicates the mentions in the message body. */ - mentionedIds: ChatId[], + mentionedIds: string[], /** Indicates whether there are group mentions in the message body */ groupMentions: { groupSubject: string; - groupJid: { - server: string; - user: string; - _serialized: string; - }; + groupJid: string; }[], /** Unix timestamp for when the message was created */ timestamp: number, diff --git a/src/structures/Message.js b/src/structures/Message.js index 58f4fcf..afb9ca7 100644 --- a/src/structures/Message.js +++ b/src/structures/Message.js @@ -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 */ /**