From 77f3da1eaf5b7ca7d53fd324e3c669ed4f87003e Mon Sep 17 00:00:00 2001 From: Daniel Hodan Date: Wed, 17 Oct 2018 23:06:14 +0200 Subject: GH-9608: Add GetUsersInChannel to plugin API (#9643) * add GetUsersInChannel to plugin api * compute offset value instead of page * Add version comment --- plugin/api.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'plugin/api.go') diff --git a/plugin/api.go b/plugin/api.go index c2429538d..186e74e44 100644 --- a/plugin/api.go +++ b/plugin/api.go @@ -176,6 +176,11 @@ type API interface { // DeleteChannelMember deletes a channel membership for a user. DeleteChannelMember(channelId, userId string) *model.AppError + // GetUsersInChannel gets users in given channel. + // + // Minimum server version: 5.6 + GetUsersInChannel(channelId string, page int, perPage int) ([]*model.User, *model.AppError) + // CreatePost creates a post. CreatePost(post *model.Post) (*model.Post, *model.AppError) -- cgit v1.2.3-1-g7c22