$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):

Member04/02/2024
!!exec $usersWithRole[Members;, ;username]

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

Example (Get users with no role):

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

Custom Command Bot 04/02/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).