$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

User04/23/2025
!!exec $usersInChannel
Custom Command Bot 04/23/2025
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.

Function difficulty: Easy
Tags: InChannel users