discord

package
v0.0.0-...-3c8cb78 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Endpoint string
}

Config represents the configuration of a Discord Webhook Sender.

type DiscordMessage

type DiscordMessage struct {
	Username string  `json:"username"`
	Content  string  `json:"content"`
	Embeds   []Embed `json:"embeds"`
}

type Embed

type Embed struct {
	Title       string `json:"title"`
	Description string `json:"description"`
	Footer      Footer `json:"footer"`
}
type Footer struct {
	Text string `json:"text"`
}

Jump to

Keyboard shortcuts

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