diff options
Diffstat (limited to 'plugin/api.go')
-rw-r--r-- | plugin/api.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/plugin/api.go b/plugin/api.go index fee55eeff..437188f6e 100644 --- a/plugin/api.go +++ b/plugin/api.go @@ -16,6 +16,13 @@ type API interface { // struct that the configuration JSON can be unmarshalled to. LoadPluginConfiguration(dest interface{}) error + // RegisterCommand registers a custom slash command. When the command is triggered, your plugin + // can fulfill it via the ExecuteCommand hook. + RegisterCommand(command *model.Command) error + + // UnregisterCommand unregisters a command previously registered via RegisterCommand. + UnregisterCommand(teamId, trigger string) error + // CreateUser creates a user. CreateUser(user *model.User) (*model.User, *model.AppError) |