From 8de9a61f7ffd570312fd05c5e6986f9d21ab0063 Mon Sep 17 00:00:00 2001 From: Akash Srivastava Date: Thu, 4 Oct 2018 01:37:54 +0530 Subject: Add GetChannelMembers method to plugin API (#9525) Signed-off-by: Akash Srivastava --- app/plugin_api.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/plugin_api.go') diff --git a/app/plugin_api.go b/app/plugin_api.go index fed4ad027..fc7adbcd9 100644 --- a/app/plugin_api.go +++ b/app/plugin_api.go @@ -262,6 +262,10 @@ func (api *PluginAPI) GetChannelMember(channelId, userId string) (*model.Channel return api.app.GetChannelMember(channelId, userId) } +func (api *PluginAPI) GetChannelMembers(channelId string, page, perPage int) (*model.ChannelMembers, *model.AppError) { + return api.app.GetChannelMembersPage(channelId, page, perPage) +} + func (api *PluginAPI) UpdateChannelMemberRoles(channelId, userId, newRoles string) (*model.ChannelMember, *model.AppError) { return api.app.UpdateChannelMemberRoles(channelId, userId, newRoles) } -- cgit v1.2.3-1-g7c22