Documentation ¶
Index ¶
Constants ¶
View Source
const ( ResponseTypeEphemeral responseType = iota ResponseTypeInChannel )
View Source
const SlackWebAPIEndpoint = "https://slack.com/api"
Variables ¶
This section is empty.
Functions ¶
func EscapeMessage ¶
Types ¶
type Attachment ¶
type Attachment struct { AuthorName string Title string TitleLink string Text string Markdown bool }
func (Attachment) MarshalJSON ¶ added in v1.1.1
func (a Attachment) MarshalJSON() ([]byte, error)
func (*Attachment) UnmarshalJSON ¶ added in v1.1.1
func (a *Attachment) UnmarshalJSON(data []byte) error
type Response ¶
type Response struct { ResponseType responseType `json:"response_type,omitempty"` Text string `json:"text"` Attachments []Attachment `json:"attachments,omitempty"` }
func NewEphemeralResponse ¶
func NewInChannelResponse ¶
type WebAPI ¶ added in v1.0.1
type WebAPI struct { BaseURL string // contains filtered or unexported fields }
func (*WebAPI) GetChannelTopic ¶ added in v1.0.1
func (*WebAPI) SetChannelTopic ¶ added in v1.0.1
type WebAPIError ¶ added in v1.0.1
type WebAPIError struct {
Method, URL, Response string
}
func (*WebAPIError) Error ¶ added in v1.0.1
func (e *WebAPIError) Error() string
Click to show internal directories.
Click to hide internal directories.