Function Message.replaceMentions

Returns the message contents, replacing all mentions with the result from the specified delegate.

Prototype

string replaceMentions(
  string delegate(Message, User) fu,
  string delegate(Message, Role) fr
);