summaryrefslogtreecommitdiffstats
path: root/plugin/api.go
diff options
context:
space:
mode:
authorJason Mojica <jason@jasonmojica.net>2018-10-15 12:23:46 -0400
committerChristopher Speller <crspeller@gmail.com>2018-10-15 09:23:46 -0700
commit9da4aba3f2757bcbc2ebec2b1f95b6ef22b21912 (patch)
tree9cdbb6cdfc47af901e6cfd055af3c140781638c9 /plugin/api.go
parent9385dc750d59a4dcac168cbdba926892a467ad1d (diff)
downloadchat-9da4aba3f2757bcbc2ebec2b1f95b6ef22b21912.tar.gz
chat-9da4aba3f2757bcbc2ebec2b1f95b6ef22b21912.tar.bz2
chat-9da4aba3f2757bcbc2ebec2b1f95b6ef22b21912.zip
Add SearchChannels plugin api (#9657)
Diffstat (limited to 'plugin/api.go')
-rw-r--r--plugin/api.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugin/api.go b/plugin/api.go
index 2531bf96a..7034cf3d0 100644
--- a/plugin/api.go
+++ b/plugin/api.go
@@ -134,6 +134,9 @@ type API interface {
// UpdateChannel updates a channel.
UpdateChannel(channel *model.Channel) (*model.Channel, *model.AppError)
+ // SearchChannels returns the channels on a team matching the provided search term.
+ SearchChannels(teamId string, term string) (*model.ChannelList, *model.AppError)
+
// AddChannelMember creates a channel membership for a user.
AddChannelMember(channelId, userId string) (*model.ChannelMember, *model.AppError)