diff options
Diffstat (limited to 'plugin/api.go')
-rw-r--r-- | plugin/api.go | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/plugin/api.go b/plugin/api.go index dc60bb57a..0f481784e 100644 --- a/plugin/api.go +++ b/plugin/api.go @@ -77,6 +77,12 @@ type API interface { // The status parameter can be: "online", "away", "dnd", or "offline". UpdateUserStatus(userId, status string) (*model.Status, *model.AppError) + // GetUsersInChannel returns a page of users in a channel. Page counting starts at 0. + // The sortBy parameter can be: "username" or "status". + // + // Minimum server version: 5.6 + GetUsersInChannel(channelId, sortBy string, page, perPage int) ([]*model.User, *model.AppError) + // GetLDAPUserAttributes will return LDAP attributes for a user. // The attributes parameter should be a list of attributes to pull. // Returns a map with attribute names as keys and the user's attributes as values. @@ -183,11 +189,6 @@ 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) |