From b0e869317f301f3bd20dea20cdcbb08e452d8f36 Mon Sep 17 00:00:00 2001 From: BenyFilho <168232825+BenyFilho@users.noreply.github.com> Date: Tue, 17 Mar 2026 23:18:06 -0300 Subject: [PATCH] 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 --- src/structures/Message.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/structures/Message.js b/src/structures/Message.js index 2711309..63ae365 100644 --- a/src/structures/Message.js +++ b/src/structures/Message.js @@ -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, + ), ), ); }