Class Mention
A mention of a user inside a message body.
public sealed record Mention : IEquatable<Mention>
- Inheritance
-
Mention
- Implements
- Inherited Members
Constructors
Mention(string, int, int, string?)
A mention of a user inside a message body.
public Mention(string Author, int Start, int Length, string? Name = null)
Parameters
AuthorstringPhone number or UUID of the mentioned user.
StartintStart position of the mention in the text (UTF-16 code units).
LengthintLength of the mention placeholder in the text.
NamestringDisplay name of the mentioned user (received mentions only).
Properties
Author
Phone number or UUID of the mentioned user.
public string Author { get; init; }
Property Value
Length
Length of the mention placeholder in the text.
public int Length { get; init; }
Property Value
Name
Display name of the mentioned user (received mentions only).
public string? Name { get; init; }
Property Value
Start
Start position of the mention in the text (UTF-16 code units).
public int Start { get; init; }