Documentation ¶
Index ¶
Constants ¶
View Source
const ( Chat = 0 System = 1 GameInfo = 2 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct { // String component Text string `json:"text,omitempty"` // Translation component Translate string `json:"translate,omitempty"` With []Message `json:"with,omitempty"` // Common Bold bool `json:"bold,boolean,omitempty"` Italic bool `json:"italic,boolean,omitempty"` Underlined bool `json:"underlined,boolean,omitempty"` Strikethrough bool `json:"strikethrough,boolean,omitempty"` Obfuscated bool `json:"obfuscated,boolean,omitempty"` Color string `json:"color,omitempty"` Extra []Message `json:"extra,omitempty"` }
func NewStringComponent ¶
func NewTranslationComponent ¶
Click to show internal directories.
Click to hide internal directories.