diff options
Diffstat (limited to 'app/plugin_api.go')
-rw-r--r-- | app/plugin_api.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/plugin_api.go b/app/plugin_api.go index 85bcc0660..3574c0298 100644 --- a/app/plugin_api.go +++ b/app/plugin_api.go @@ -294,6 +294,10 @@ func (api *PluginAPI) DeleteChannelMember(channelId, userId string) *model.AppEr return api.app.LeaveChannel(channelId, userId) } +func (api *PluginAPI) GetUsersInChannel(channelId string, page int, perPage int) ([]*model.User, *model.AppError) { + return api.app.GetUsersInChannel(channelId, page*perPage, perPage) +} + func (api *PluginAPI) CreatePost(post *model.Post) (*model.Post, *model.AppError) { return api.app.CreatePostMissingChannel(post, true) } |