$membersWithStatus

Returns a list of member IDs who have specified status within the server separated by comma.

Usage

$membersWithStatus[Status1;Status2;...]
  1. Status N - You can add multiple statuses. Can be online, idle, dnd (Do Not Disturb), offline (Includes invisible users), streaming (only valid for activities), mobile (only valid for platforms), desktop (only valid for platforms), web (only valid for platforms)

Example

Single status in $membersWithStatus

How to use $membersWithStatus with one status specified

User04/23/2025
!!exec $membersWithStatus[online]
Custom Command Bot 04/23/2025
123456789123456789,987654321987654321

Multiple statuses in $membersWithStatus

How to use $membersWithStatus with multiple statuses specified

User04/23/2025
!!exec $membersWithStatus[online;idle]
Custom Command Bot 04/23/2025
123456789123456789,987654321987654321,765432198765432198

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: Medium
Tags: search find members status