Class ChatColors
Shared color attributes for chat rendering (timestamps, system messages).
public static class ChatColors
- Inheritance
-
ChatColors
- Inherited Members
Fields
EmbedBorderAttr
public static readonly Attribute EmbedBorderAttr
Field Value
- Attribute
EmbedDescAttr
public static readonly Attribute EmbedDescAttr
Field Value
- Attribute
EmbedTitleAttr
public static readonly Attribute EmbedTitleAttr
Field Value
- Attribute
EmbedUrlAttr
public static readonly Attribute EmbedUrlAttr
Field Value
- Attribute
MentionHighlightAttr
public static readonly Attribute MentionHighlightAttr
Field Value
- Attribute
MentionTextAttr
public static readonly Attribute MentionTextAttr
Field Value
- Attribute
SystemAttr
public static readonly Attribute SystemAttr
Field Value
- Attribute
TimestampAttr
public static readonly Attribute TimestampAttr
Field Value
- Attribute
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
textstringdefaultColorAttribute?
Returns
- List<ChatSegment>