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:
parent
9899f4027a
commit
b0e869317f
1 changed files with 4 additions and 1 deletions
|
|
@ -403,7 +403,10 @@ class Message extends Base {
|
||||||
async getMentions() {
|
async getMentions() {
|
||||||
return await Promise.all(
|
return await Promise.all(
|
||||||
this.mentionedIds.map(
|
this.mentionedIds.map(
|
||||||
async (m) => await this.client.getContactById(m),
|
async (m) =>
|
||||||
|
await this.client.getContactById(
|
||||||
|
typeof m === 'string' ? m : m._serialized,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue