Skip to content

$usersInChannel

$usersInChannel will return all users who are connected to the specified voice channel.

Usage

$usersInChannel[channelID;option?;sep?]

Parameters

FieldTypeDescriptionRequired
channelIDnumberVoice Channel ID.true
option?stringHow to return the users
1. id (default)
2. user - mentions the users
false
sep?stringSeparator to separate multiple returned values.false

Example(s)

This will return the users connected to a voice channel:

1
client.command({
2
name: "usersInChannel",
3
code: `
4
$usersInChannel[$voiceID;user;, ]
5
`
6
});