Documentation
¶
Overview ¶
Package discordwebhook is a simple low-level HTTP client wrapper around Discord webhooks.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EmbedAuthor ¶ added in v1.8.0
type EmbedField ¶
type EmbedField struct { Name string `json:"name"` Value string `json:"value"` Inline bool `json:"inline"` }
EmbedField is an individual field being embedded in a message.
type Embeds ¶
type Embeds struct { Title string `json:"title,omitempty"` Description string `json:"description,omitempty"` URL string `json:"url,omitempty"` Author *EmbedAuthor `json:"author,omitempty"` Fields []EmbedField `json:"fields,omitempty"` }
Embeds is a set of embed fields and a footer.
type Webhook ¶
type Webhook struct { Content string `json:"content,omitempty"` Username string `json:"username,omitempty"` AvatarURL string `json:"avatar_url"` Embeds []Embeds `json:"embeds,omitempty"` AllowedMentions map[string][]string `json:"allowed_mentions"` }
Webhook is the parent structure fired off to Discord.
Click to show internal directories.
Click to hide internal directories.