Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
Client represents an active discord notification object
func (*Client) Send ¶
func (c *Client) Send(entry model.NotifEntry) error
Send creates and sends a discord notification with an entry https://discord.com/developers/docs/resources/webhook#execute-webhook
type Embed ¶
type Embed struct { Title string `json:"title,omitempty"` Description string `json:"description,omitempty"` URL string `json:"url,omitempty"` Color int `json:"color,omitempty"` Image EmbedImage `json:"image,omitempty"` Thumbnail EmbedThumbnail `json:"thumbnail,omitempty"` Author EmbedAuthor `json:"author,omitempty"` Fields []EmbedField `json:"fields,omitempty"` }
Embed contains all the information for an embed object
type EmbedAuthor ¶
type EmbedAuthor struct { Name string `json:"name"` URL string `json:"url"` IconURL string `json:"icon_url"` }
EmbedAuthor contains all the information for an embed author object
type EmbedField ¶
type EmbedField struct { Name string `json:"name"` Value string `json:"value"` Inline bool `json:"inline,omitempty"` }
EmbedField contains all the information for an embed field object
type EmbedFooter ¶
type EmbedFooter struct {}
EmbedFooter contains all the information for an embed footer object
type EmbedImage ¶
type EmbedImage struct {
URL string `json:"url"`
}
EmbedImage contains all the information for an embed image object
type EmbedThumbnail ¶
type EmbedThumbnail struct {
URL string `json:"url"`
}
EmbedThumbnail contains all the information for an embed thumbnail object
Click to show internal directories.
Click to hide internal directories.