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 --- plugin/api.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugin/api.go') diff --git a/plugin/api.go b/plugin/api.go index b85160940..80364c2af 100644 --- a/plugin/api.go +++ b/plugin/api.go @@ -140,6 +140,9 @@ type API interface { // GetChannelMember gets a channel membership for a user. GetChannelMember(channelId, userId string) (*model.ChannelMember, *model.AppError) + // GetChannelMembers gets a channel membership for all users. + GetChannelMembers(channelId string, page, perPage int) (*model.ChannelMembers, *model.AppError) + // UpdateChannelMemberRoles updates a user's roles for a channel. UpdateChannelMemberRoles(channelId, userId, newRoles string) (*model.ChannelMember, *model.AppError) -- cgit v1.2.3-1-g7c22