Documentation
¶
Index ¶
- type SlackAction
- func (s *SlackAction) AckError(err error, msg string, channel string)
- func (s *SlackAction) AuthThread(payload slack.InteractionCallback)
- func (s *SlackAction) CreateChannelMessage(event *slackevents.MemberJoinedChannelEvent)
- func (s *SlackAction) CreateMessage(context string, channelID string, userID string, url string) string
- func (s *SlackAction) CreateThread(payload slack.InteractionCallback)
- func (s *SlackAction) CreateThreadDialogAction(payload socketmode.Event)
- func (s *SlackAction) CreateThreadDialogCommand(envelope socketmode.Event)
- func (s *SlackAction) GetBotUserID() string
- func (s *SlackAction) GetChannelName(channelId string) (string, error)
- func (s *SlackAction) GetMPIMembers(channelId string) ([]string, error)
- func (s *SlackAction) GetOrCreateUser(slackID string) (*int, error)
- func (s *SlackAction) GetSlackChannel(channelId string) (*slack.Channel, error)
- func (s *SlackAction) GetSlackChannelMembers(channelId string) ([]string, error)
- func (s *SlackAction) GetSlackUser(userId string) (*slack.User, error)
- func (s *SlackAction) GetSlackUsersByChannel(channelId string) ([]slack.User, error)
- func (s *SlackAction) Run(selfUserId string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SlackAction ¶
type SlackAction struct { Api *slack.Client Socket *socketmode.Client Store *store.Store Storage *storage.Storage Config *config.Config Event *serverevent.Server }
func New ¶
func New(api *slack.Client, socket *socketmode.Client, store *store.Store, storage *storage.Storage, config *config.Config, events *serverevent.Server) *SlackAction
func (*SlackAction) AckError ¶
func (s *SlackAction) AckError(err error, msg string, channel string)
func (*SlackAction) AuthThread ¶
func (s *SlackAction) AuthThread(payload slack.InteractionCallback)
func (*SlackAction) CreateChannelMessage ¶
func (s *SlackAction) CreateChannelMessage(event *slackevents.MemberJoinedChannelEvent)
func (*SlackAction) CreateMessage ¶
func (*SlackAction) CreateThread ¶
func (s *SlackAction) CreateThread(payload slack.InteractionCallback)
func (*SlackAction) CreateThreadDialogAction ¶
func (s *SlackAction) CreateThreadDialogAction(payload socketmode.Event)
func (*SlackAction) CreateThreadDialogCommand ¶
func (s *SlackAction) CreateThreadDialogCommand(envelope socketmode.Event)
func (*SlackAction) GetBotUserID ¶
func (s *SlackAction) GetBotUserID() string
func (*SlackAction) GetChannelName ¶
func (s *SlackAction) GetChannelName(channelId string) (string, error)
func (*SlackAction) GetMPIMembers ¶
func (s *SlackAction) GetMPIMembers(channelId string) ([]string, error)
func (*SlackAction) GetOrCreateUser ¶
func (s *SlackAction) GetOrCreateUser(slackID string) (*int, error)
func (*SlackAction) GetSlackChannel ¶
func (s *SlackAction) GetSlackChannel(channelId string) (*slack.Channel, error)
func (*SlackAction) GetSlackChannelMembers ¶
func (s *SlackAction) GetSlackChannelMembers(channelId string) ([]string, error)
func (*SlackAction) GetSlackUser ¶
func (s *SlackAction) GetSlackUser(userId string) (*slack.User, error)
func (*SlackAction) GetSlackUsersByChannel ¶
func (s *SlackAction) GetSlackUsersByChannel(channelId string) ([]slack.User, error)
func (*SlackAction) Run ¶
func (s *SlackAction) Run(selfUserId string)
Click to show internal directories.
Click to hide internal directories.