Skip to content

ChannelGroupMembers

Samuel Grant edited this page Jun 23, 2020 · 2 revisions

Remarks

List the clients/users who belong to a specific channel's channel group

Signature

Params

Name Type Description
cgid int64 Target channel group ID
cid int64 Target channel ID

Returns

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
}

Example

qres, members, err := client.ChannelGroupMembers(cgid, cid)
if err != nil || !qres.IsSuccess() {
  // Handle error or rejected server query 
}
  

Clone this wiki locally