Versions in this module Expand all Collapse all v0 v0.0.3 Aug 19, 2022 v0.0.2 Aug 15, 2022 Changes in this version + var ErrChannelUnauthorized = errors.New("you cannot use this command from this channel") + var ErrCommandNotFound = errors.New("command not found") + var ErrTeamUnauthorized = errors.New("you cannot use this command from this team") + var ErrUserUnauthorized = errors.New("you are not authorized to use this command") + type SlashCommand struct + AccessControl model.AccessControl + Command string + Commands []model.Command + DialogResponseURL string + DialogURL string + SchedulerResponseURL string + Token string + func Load(ctx context.Context, plugins []plugin.Plugin, cfg []config.CommandConfig) ([]SlashCommand, error) + func (s *SlashCommand) Execute(ctx context.Context, mmCommand *model.MMSlashCommand, cmd string, ...) (*model.CommandResponse, error) + func (s *SlashCommand) ExecuteDialog(ctx context.Context, submission *model.DialogSubmission, cmd string, ...) (*model.CommandResponse, error)