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.
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
b977017ca7
Коммит
bebff8156b
@@ -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
|
||||
|
||||
Ссылка в новой задаче
Block a user