diff options
author | Daniel Hodan <daniel.hodan@czertbytes.de> | 2018-10-17 23:06:14 +0200 |
---|---|---|
committer | Jesse Hallam <jesse.hallam@gmail.com> | 2018-10-17 17:06:14 -0400 |
commit | 77f3da1eaf5b7ca7d53fd324e3c669ed4f87003e (patch) | |
tree | 9b6496d5fed9f2b765cce24b60a47eda7482f8b5 /plugin/api.go | |
parent | 819ab451f1806db640698f8e0513a7269f32c307 (diff) | |
download | chat-77f3da1eaf5b7ca7d53fd324e3c669ed4f87003e.tar.gz chat-77f3da1eaf5b7ca7d53fd324e3c669ed4f87003e.tar.bz2 chat-77f3da1eaf5b7ca7d53fd324e3c669ed4f87003e.zip |
GH-9608: Add GetUsersInChannel to plugin API (#9643)
* add GetUsersInChannel to plugin api
* compute offset value instead of page
* Add version comment
Diffstat (limited to 'plugin/api.go')
-rw-r--r-- | plugin/api.go | 5 |
1 files changed, 5 insertions, 0 deletions
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) |