Skip to content

Commit ef6c1e7

Browse files
committed
use GetUsersInChannel instead of getUsers
1 parent 9270c73 commit ef6c1e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/plugin/plugin_utils.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func (p *Plugin) getAllChannelUsers(channelID string) []*model.User {
3232
perPage := 100
3333
allUsers := make([]*model.User, 0)
3434
for {
35-
users, appErr := p.API.GetUsers(&model.UserGetOptions{InChannelId: channelID, Page: page, PerPage: perPage})
35+
users, appErr := p.API.GetUsersInChannel(channelID, "username", page, perPage)
3636
if appErr != nil || len(users) == 0 {
3737
break
3838
}

0 commit comments

Comments
 (0)