Custom Command
FunctionsMember Functions

$usersInChannel

Returns a list of users in given text or voice channel.

Usage

$usersInChannel[channelID;type;separator]
  1. channelID - (Optional) default value: $channelID. The ID of a channel you want to return list of users from.
  2. type - (Optional) default value: username. Can be id, username, mention or count.
  3. separator - (Optional) default value: , . The separator used for creating list of users.

Example

Using $usersInChannel

How to use $usersInChannel

Member
9/5/2026
!!exec $usersInChannel
Custom Command
APP
9/5/2026
user, user1, user2

Cache

This function works on the bot's cache to find members. If the user is not cached, the function will not find them. User will be cached after they trigger any command from this bot, but eventually they will get deleted.
To have all members cached, you will need Tier 5 Bot.

Related Functions: $usersWithRole

Function difficulty: Easy

Tags: In Channel Users

On this page