package
Version:
v0.0.0-...-34482f3
Opens a new window with list of versions in this module.
Published: Oct 14, 2020
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Author struct {
Name string `json:"name,omitempty"`
Url string `json:"url,omitempty"`
IconUrl string `json:"icon_url,omitempty"`
}
type Embed struct {
Title string `json:"title,omitempty"`
Description string `json:"description,omitempty"`
Color int `json:"color,omitempty"`
Url string `json:"url,omitempty"`
Fields []Field `json:"fields,omitempty"`
Thumbnail Thumbnail `json:"thumbnail,omitempty"`
Author Author `json:"author,omitempty"`
}
type Field struct {
Name string `json:"name,omitempty"`
Value string `json:"value,omitempty"`
Inline bool `json:"inline,omitempty"`
}
type Hook struct {
Content string `json:"content,omitempty"`
Username string `json:"username,omitempty"`
AvatarUrl string `json:"avatar_url,omitempty"`
Tts bool `json:"tts,omitempty"`
Embeds []Embed `json:"embeds,omitempty"`
}
type Provider struct {
Name string `json:"name,omitempty" example:"ACME Webhooks"`
Url string `json:"url,omitempty" example:"https://en.wikipedia.org/wiki/Acme_Corporation"`
}
type Thumbnail struct {
Url string `json:"url,omitempty"`
Height int `json:"height,omitempty"`
Width int `json:"width,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.