Skip to content

Commit 406ffc9

Browse files
authored
Merge branch 'wwebjs:main' into auth-stores
2 parents dc3e79c + b0e8693 commit 406ffc9

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/structures/Message.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,10 @@ class Message extends Base {
403403
async getMentions() {
404404
return await Promise.all(
405405
this.mentionedIds.map(
406-
async (m) => await this.client.getContactById(m),
406+
async (m) =>
407+
await this.client.getContactById(
408+
typeof m === 'string' ? m : m._serialized,
409+
),
407410
),
408411
);
409412
}

0 commit comments

Comments
 (0)