Skip to content
Version 2.35.0
↓ Get the launcher

ChatTextSegment record

One display run of a ChatHypertext: plain text, or a link with its typed target.

public record ChatTextSegment
name description
ChatTextSegment() The default constructor.
ItemId { get; set; } Item config id for an Item link (also the fish id of a fishing share); 0 otherwise.
ItemQuality { get; set; } The item’s quality tier (ItemTable Quality, higher = rarer — the game colours the name by it); 0 when unknown or not an item.
Kind { get; set; } Text for plain text, otherwise what the link points at.
PlayerId { get; set; } Char id of the player a Player link names, or the owner of a Home share; 0 when unknown / not a player link.
Position { get; set; } The position a Position link points at; null for every other kind.
Text { get; set; } Display text (sanitised; see Segments). Brackets the game draws around a share link ([ … ]) are in the neighbouring text runs, not in the link’s own text.