Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AllowedMentions ¶
type AllowedMentions struct { Parse []Parse `json:"parse"` Roles []string `json:"roles,omitempty"` Users []string `json:"users,omitempty"` }
AllowedMentions is the allowed mentions to parse in a Webhook
type Author ¶
type Author struct { Name string `json:"name,omitempty"` URL string `json:"url,omitempty"` IconURL string `json:"icon_url,omitempty"` ProxyIconURL string `json:"proxy_icon_url,omitempty"` }
Author is the author of an embed
type Embed ¶
type Embed struct { Title string `json:"title,omitempty"` Type Type `json:"type,omitempty"` Description string `json:"description,omitempty"` URL string `json:"url,omitempty"` Timestamp *time.Time `json:"timestamp,omitempty"` Color int `json:"color,omitempty"` Image *Image `json:"image,omitempty"` Thumbnail *Thumbnail `json:"thumbnail,omitempty"` Video *Video `json:"video,omitempty"` Provider *Provider `json:"provider,omitempty"` Author *Author `json:"author,omitempty"` Fields []*Field `json:"fields,omitempty"` }
An Embed is sent in a message or webhook
type Field ¶
type Field struct { Name string `json:"name,omitempty"` Value string `json:"value,omitempty"` Inline bool `json:"inline,omitempty"` }
Field is a field in an embed
type Image ¶
type Image struct { URL string `json:"url,omitempty"` ProxyURL string `json:"proxy_url,omitempty"` Height int `json:"height,omitempty"` Width int `json:"width,omitempty"` }
Image is the image of an embed
type Provider ¶
Provider is the provider of an embed
type Thumbnail ¶
type Thumbnail struct { URL string `json:"url,omitempty"` ProxyURL string `json:"proxy_url,omitempty"` Height int `json:"height,omitempty"` Width int `json:"width,omitempty"` }
Thumbnail is the thumbnail of an embed
Click to show internal directories.
Click to hide internal directories.