slackaction

package
v0.0.0-...-780aa95 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

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 (s *SlackAction) CreateMessage(context string, channelID string, userID string, url string) string

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)

Jump to

Keyboard shortcuts

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