-
Notifications
You must be signed in to change notification settings - Fork 1
ChannelGroupMembers
Samuel Grant edited this page Jun 23, 2020
·
2 revisions
List the clients/users who belong to a specific channel's channel group
| Name | Type | Description |
|---|---|---|
| cgid | int64 | Target channel group ID |
| cid | int64 | Target channel ID |
| Type | Description |
|---|---|
| *status | Query Response |
| *[]User | An array of server group members (see below) |
| error |
type User struct {
// Database ID
Cldbid int64
// Unique TS ID
Cluid string
// Last Connection
LastConnected string
LastIP string
ActiveSessionIds []int64
Nickname string
}qres, members, err := client.ChannelGroupMembers(cgid, cid)
if err != nil || !qres.IsSuccess() {
// Handle error or rejected server query
}