chat

package
v0.0.0-...-054500a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClickEvent

type ClickEvent struct {
	Action string `json:"action"`
	Value  string `json:"value"`
}

type HoverEvent

type HoverEvent struct {
	Action   string          `json:"action"`
	Contents json.RawMessage `json:"contents"`
	Value    Message         `json:"value"`
}

type Message

type Message struct {
	Text string `json:"text"`
	// contains filtered or unexported fields
}

func Text

func Text(text string) Message

func (Message) Append

func (s Message) Append(extraMessage ...Message) Message

func (Message) MarshalJson

func (s Message) MarshalJson() ([]byte, error)

func (Message) UnmarshallJson

func (s Message) UnmarshallJson(data []byte) error

func (Message) WithColor

func (s Message) WithColor(color string) Message

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL