MM-26056 Add plugin ability to execute slash command. (#14898)

* Add plugin ability to execute slash command.

* A test

* Add site url to command args for plugin API

* Remove unessiary complexity.
Этот коммит содержится в:
Christopher Speller
2020-07-07 09:31:03 -07:00
коммит произвёл GitHub
родитель b977017ca7
Коммит bebff8156b
6 изменённых файлов: 102 добавлений и 0 удалений

Просмотреть файл

@@ -37,6 +37,12 @@ type API interface {
// Minimum server version: 5.2
UnregisterCommand(teamId, trigger string) error
// ExecuteSlashCommand executes a slash command with the given parameters.
//
// @tag Command
// Minimum server version: 5.26
ExecuteSlashCommand(commandArgs *model.CommandArgs) (*model.CommandResponse, error)
// GetSession returns the session object for the Session ID
//
// Minimum server version: 5.2