Class ChatColors
Shared color attributes for chat rendering (timestamps, system messages).
public static class ChatColors
- Inheritance
-
ChatColors
- Inherited Members
Fields
AudioAttr
public static readonly Attribute AudioAttr
Field Value
EmbedBorderAttr
public static readonly Attribute EmbedBorderAttr
Field Value
EmbedDescAttr
public static readonly Attribute EmbedDescAttr
Field Value
EmbedTitleAttr
public static readonly Attribute EmbedTitleAttr
Field Value
EmbedUrlAttr
public static readonly Attribute EmbedUrlAttr
Field Value
FileAttr
public static readonly Attribute FileAttr
Field Value
MentionHighlightAttr
public static readonly Attribute MentionHighlightAttr
Field Value
MentionTextAttr
public static readonly Attribute MentionTextAttr
Field Value
SystemAttr
public static readonly Attribute SystemAttr
Field Value
TimestampAttr
public static readonly Attribute TimestampAttr
Field Value
Methods
SplitMentions(string, Attribute?)
Split text around @mentions, giving each @word the MentionTextAttr accent color. Non-mention text uses the provided default color.
public static List<ChatSegment> SplitMentions(string text, Attribute? defaultColor = null)
Parameters
Returns
- List<ChatSegment>