$usersWithRole

Returns a list of users with given role (members are given from the cache.
)

Usage

$usersWithRole[roleID;separator (optional, default new line);id/username/tag/mention (optional, default tag)]

Example (Get users with member roles):

Member02/20/2024
!!exec $usersWithRole[Members;, ;username]

Custom Command Bot 02/20/2024
Mido, Rake, Azz

Example (Get users with no role):

Member02/20/2024
!!exec users with no roles: $usersWithRole[;, ;tag]

Custom Command Bot 02/20/2024
LonelyWolf#1234, Stranger#5678

Warning

This data comes from the cache, not the api, therefore it may not be precise unless all the guild members are cached (which only in tier 5).