$usersWithRole

returns users,which have the users role

Usage:

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


Member01/27/2023
!!exec $usersWithRole[$roleID[member];,;username]
Custom Command Bot 01/27/2023
Tom,Lisa,Ben

Related Functions

$hasRoles, to check if the user has role

::: info Member must be cached! If you use the main bot the member must be cached to get valid results.You can ignore the message,if you use custom bot! :::

Function difficulty: Easy
Tags: WithRole