Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SendToDiscord ¶
SendToDiscord sends a message to a Discord channel using a webhook URL.
Types ¶
type Embed ¶ added in v1.5.0
type Embed struct {
Title string `json:"title,omitempty"`
Description string `json:"description,omitempty"`
URL string `json:"url,omitempty"`
Color int `json:"color,omitempty"`
Fields []EmbedField `json:"fields,omitempty"`
Thumbnail EmbedThumbnail `json:"thumbnail,omitempty"`
}
Embed represents a Discord message embed.
type EmbedField ¶ added in v1.5.0
type EmbedField struct {
Name string `json:"name"`
Value string `json:"value"`
Inline bool `json:"inline"`
}
EmbedField represents a single field in an embed.
type EmbedThumbnail ¶ added in v1.5.0
type EmbedThumbnail struct {
URL string `json:"url"`
}
Click to show internal directories.
Click to hide internal directories.