function mentionedUsernames
mentionedUsernames(body: string): string[]

Returns the names body mentions, in lower case, each once. Code, fenced or inline, and URLs mention no one, as Markdown shows them. The server notifies by it, and the chat highlights and chimes by it.

Parameters

body: string

Return Type

string[]

Usage

import { mentionedUsernames } from "shared/mention.ts";