We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9270c73 commit ef6c1e7Copy full SHA for ef6c1e7
server/plugin/plugin_utils.go
@@ -32,7 +32,7 @@ func (p *Plugin) getAllChannelUsers(channelID string) []*model.User {
32
perPage := 100
33
allUsers := make([]*model.User, 0)
34
for {
35
- users, appErr := p.API.GetUsers(&model.UserGetOptions{InChannelId: channelID, Page: page, PerPage: perPage})
+ users, appErr := p.API.GetUsersInChannel(channelID, "username", page, perPage)
36
if appErr != nil || len(users) == 0 {
37
break
38
}
0 commit comments