summaryrefslogtreecommitdiffstats
path: root/app/plugin_api.go
diff options
context:
space:
mode:
Diffstat (limited to 'app/plugin_api.go')
-rw-r--r--app/plugin_api.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/plugin_api.go b/app/plugin_api.go
index 9965f770a..21b828368 100644
--- a/app/plugin_api.go
+++ b/app/plugin_api.go
@@ -34,6 +34,15 @@ func (api *PluginAPI) LoadPluginConfiguration(dest interface{}) error {
}
}
+func (api *PluginAPI) RegisterCommand(command *model.Command) error {
+ return api.app.RegisterPluginCommand(api.id, command)
+}
+
+func (api *PluginAPI) UnregisterCommand(teamId, trigger string) error {
+ api.app.UnregisterPluginCommand(api.id, teamId, trigger)
+ return nil
+}
+
func (api *PluginAPI) CreateTeam(team *model.Team) (*model.Team, *model.AppError) {
return api.app.CreateTeam(team)
}