diff options
author | Daniel Hodan <daniel.hodan@czertbytes.de> | 2018-10-18 15:11:30 +0200 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2018-10-18 09:11:30 -0400 |
commit | dc946f85168d6b375e185f53cb1a02636be6d7eb (patch) | |
tree | 54337e10e5a7f65dd1927e3303ad2419fccfde76 /plugin/api.go | |
parent | 3bc89083fca64a1d096cc897f13d0a9b68433a8f (diff) | |
download | chat-dc946f85168d6b375e185f53cb1a02636be6d7eb.tar.gz chat-dc946f85168d6b375e185f53cb1a02636be6d7eb.tar.bz2 chat-dc946f85168d6b375e185f53cb1a02636be6d7eb.zip |
GH-9635: Add GetUsersByUsernames to plugin API (#9647)
* add GetUsersByUsernames to plugin api
* fix GetUsersByUsernames 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 660309f57..a9040199e 100644 --- a/plugin/api.go +++ b/plugin/api.go @@ -54,6 +54,11 @@ type API interface { // GetUserByUsername gets a user by their username. GetUserByUsername(name string) (*model.User, *model.AppError) + // GetUsersByUsernames gets users by their usernames. + // + // Minimum server version: 5.6 + GetUsersByUsernames(usernames []string) ([]*model.User, *model.AppError) + // GetUsersInTeam gets users in team. // // Minimum server version: 5.6 |