Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attachment ¶
type Attachment struct { Fallback string `json:"fallback"` Text string `json:"text"` Pretext string `json:"pretext"` Color string `json:"color"` Fields []*Field `json:"fields"` }
func (*Attachment) AddField ¶
func (a *Attachment) AddField(f *Field)
func (*Attachment) NewField ¶
func (a *Attachment) NewField() *Field
type Message ¶
type Message struct { Text string `json:"text"` Username string `json:"username"` IconUrl string `json:"icon_url"` IconEmoji string `json:"icon_emoji"` Channel string `json:"channel"` UnfurlLinks bool `json:"unfurl_links"` Attachments []*Attachment `json:"attachments"` }
func (*Message) AddAttachment ¶
func (m *Message) AddAttachment(a *Attachment)
func (*Message) NewAttachment ¶
func (m *Message) NewAttachment() *Attachment
type SlackError ¶
func (*SlackError) Error ¶
func (e *SlackError) Error() string
Click to show internal directories.
Click to hide internal directories.