Fix: Message get Mentions (#201669)

* fix Message get Mentions

* Update Message.js

check if m is a string

* Update Message.js

* Update Message.js

* Update Message.js

* Update Message.js

* Update Message.js

* Update Message.js

* Update Message.js

* Update Message.js

* Update Message.js

* Update Message.js
This commit is contained in:
BenyFilho 2026-03-17 23:18:06 -03:00 • committed by GitHub
commit b0e869317f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -403,7 +403,10 @@ class Message extends Base {
async getMentions() {
return await Promise.all(
this.mentionedIds.map(
async (m) => await this.client.getContactById(m),
async (m) =>
await this.client.getContactById(
typeof m === 'string' ? m : m._serialized,
),
),
);
}