Skip to content

Commit

Permalink
fix: Fixed detect mentionedList for invalid wids (#427)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhutikcodes committed May 31, 2022
1 parent c94e3c4 commit c701dc3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/chat/functions/prepareRawMessage.ts
Expand Up @@ -110,7 +110,9 @@ export async function prepareRawMessage<T extends RawMessage>(
const ids = text?.match(/(?<=@)(\d+)\b/g) || [];

for (const id of ids) {
options.mentionedList.push(assertWid(id));
try {
options.mentionedList.push(assertWid(id));
} catch (err) {}
}
}

Expand Down

0 comments on commit c701dc3

Please sign in to comment.