Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicEvent ¶
func (BasicEvent) Type ¶
func (e BasicEvent) Type() string
type BasicMessage ¶
type BasicMessage struct {
// contains filtered or unexported fields
}
func (BasicMessage) Channel ¶
func (m BasicMessage) Channel() string
func (BasicMessage) Subtype ¶
func (m BasicMessage) Subtype() string
func (BasicMessage) Text ¶
func (m BasicMessage) Text() string
func (BasicMessage) Timestamp ¶
func (m BasicMessage) Timestamp() string
func (BasicMessage) Type ¶
func (m BasicMessage) Type() string
func (BasicMessage) User ¶
func (m BasicMessage) User() string
type ChannelCreated ¶
func (ChannelCreated) Type ¶
func (c ChannelCreated) Type() string
type ChannelRename ¶
func (ChannelRename) Type ¶
func (c ChannelRename) Type() string
type Conn ¶
type Conn struct { Token string // contains filtered or unexported fields }
func (*Conn) NextEvent ¶
NextEvent blocks until the next Event is sent and then returns it to the caller.
func (*Conn) SendMessage ¶
func (Conn) UnescapeMessage ¶
UnescapeMessage takes in the escape string text of a message and returns a new string that appears as it would to a user.
UnescapeMessage does so by parsing escape sequences according to <https://api.slack.com/docs/formatting> and substituting the appropriate user-facing junk (e.g. <@UABC123> would become @firba1, assuming there's a user named firba1 with the user ID UABC123).
func (Conn) UnescapeMessagePostprocess ¶ added in v0.3.0
type EscapeType ¶ added in v0.3.0
type EscapeType int
const ( LinkEscape EscapeType = iota UserEscape ChannelEscape CommandEscape )
Click to show internal directories.
Click to hide internal directories.