myslack

package module
v0.0.0-...-7825b87 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 27, 2020 License: MIT Imports: 4 Imported by: 0

README

myslack

Slack app wrapper for fast prototyping

Documentation

Index

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) Reply

func (self *SlackEvent) Reply(text string, images ...string) error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL