Parse @mentions out of chat message text.
@mentions
Mentions are encoded as [@display](sessionId).
[@display](sessionId)
The raw message text.
The mentions found, with their display text and character offsets.
import { parseMentions } from "@urth/metatell-sdk/chat";parseMentions("hi [@Alice](a1b2c3d4)"); // [{ sessionId, display, start, end }] Copy
import { parseMentions } from "@urth/metatell-sdk/chat";parseMentions("hi [@Alice](a1b2c3d4)"); // [{ sessionId, display, start, end }]
Parse
@mentionsout of chat message text.Mentions are encoded as
[@display](sessionId).