$usersInChannel
$usersInChannel
will return all users who are connected to the specified voice channel.
Usage
$usersInChannel[channelID;option?;sep?]
Parameters
Field | Type | Description | Required |
---|---|---|---|
channelID | number | Voice Channel ID. | true |
option? | string | How to return the users 1. id (default) 2. user - mentions the users | false |
sep? | string | Separator to separate multiple returned values. | false |
Example(s)
This will return the users connected to a voice channel:
1client.command({2 name: "usersInChannel",3 code: `4 $usersInChannel[$voiceID;user;, ]5 `6});