Documentation
¶
Index ¶
- type SlackEvent
- func (self *SlackEvent) Reply(text string, images ...string) error
- func (self *SlackEvent) ReplyFrom(authedUser string)
- func (self *SlackEvent) ReplyJSON(x interface{}) error
- func (self *SlackEvent) ReplyJSONf(formatting string, x ...interface{}) error
- func (self *SlackEvent) Replyf(formatting string, x ...interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SlackEvent ¶
type SlackEvent struct { APIAppID string `json:"api_app_id"` AuthedUsers []string `json:"authed_users"` Event struct { Channel string `json:"channel"` ClientMsgID string `json:"client_msg_id"` EventTs string `json:"event_ts"` Team string `json:"team"` Text string `json:"text"` Ts string `json:"ts"` Type string `json:"type"` User string `json:"user"` } `json:"event"` EventID string `json:"event_id"` EventTime int `json:"event_time"` TeamID string `json:"team_id"` Token string `json:"token"` Type string `json:"type"` // challenge Challenge string `json:"challenge"` // contains filtered or unexported fields }
func (*SlackEvent) ReplyFrom ¶
func (self *SlackEvent) ReplyFrom(authedUser string)
func (*SlackEvent) ReplyJSON ¶
func (self *SlackEvent) ReplyJSON(x interface{}) error
func (*SlackEvent) ReplyJSONf ¶
func (self *SlackEvent) ReplyJSONf(formatting string, x ...interface{}) error
func (*SlackEvent) Replyf ¶
func (self *SlackEvent) Replyf(formatting string, x ...interface{}) error
Click to show internal directories.
Click to hide internal directories.