Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attachment ¶
Attachement is the files attached to the request
type Author ¶
type Author struct { Name string `json:"name"` URL string `json:"url"` IconURL string `json:"icon_url"` }
Author is the author object
type Embed ¶
type Embed struct { Author Author `json:"author"` Title string `json:"title"` Description string `json:"description"` Thumbnail Image `json:"thumbnail"` Image Image `json:"image"` URL string `json:"url"` Fields []Field `json:"fields"` Color int64 `json:"color"` }
Embed is the embed object
type Field ¶
type Field struct { Name string `json:"name"` Value string `json:"value"` Inline bool `json:"inline,omitempty"` }
Field is the field object inside an embed
type Hook ¶
Hook is the toplevel object. It contains a Webhook object and everything required to send it. It's optimised for reusability, so it has an embedded http.Client. You can modify the client yourself if you want to change the defaults.
Click to show internal directories.
Click to hide internal directories.