Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ListChannels ¶
ListChannels returns a list of channels.
func (*Client) SendMessage ¶
SendMessage sends a message to a channel or user.
type Message ¶
type Message struct { Text string `json:"text"` // Channel can either be a channel prefixed with a # or a username prefixed with an @. Channel string `json:"channel"` // Name under which the message appears. Alias string `json:"alias,omitempty"` Emoji string `json:"emoji,omitempty"` }
Message defines a chat message.
Click to show internal directories.
Click to hide internal directories.