Type Alias ColorJSONMessagePart

ColorJSONMessagePart: {
    color: ValidJSONColorType;
    text: string;
    type: "color";
}

A textual node containing color metadata.

Type declaration

  • Readonlycolor: ValidJSONColorType

    Includes the color to print this text with.

  • Readonlytext: string

    Used to supply text data for this node.

  • Readonlytype: "color"

    Used to denote the intent of the message part.

JSONMessagePart for all possible message part node subtypes.