fixes some bug
Some checks failed
CodeQL / Analyze (go) (push) Has been cancelled
Go / Test (1.22) (push) Has been cancelled
Go / Test (^1.22) (push) Has been cancelled

This commit is contained in:
2025-08-26 23:38:23 +08:00
parent 7b60edc248
commit 540ba15e83
3 changed files with 21 additions and 13 deletions

View File

@ -51,7 +51,7 @@ const (
// Message is a message sent by other
type Message struct {
Text string `json:"text" nbt:"text"`
Text string `json:"text" nbt:"text,omitempty"`
Bold bool `json:"bold,omitempty" nbt:"bold,omitempty"` // 粗体
Italic bool `json:"italic,omitempty" nbt:"italic,omitempty"` // 斜体