v5.0.0
$usersWithRole
Returns a list of users with given role (members are given from the cache.)
This function will return the users that have the specified role
1
$usersWithRole[roleID;separator (optional)] //Default separator is ,
Copied!
Lets fetch some users!
1
bot.command({
2
name: "usersWithRole",
3
code: `
4
$usersWithRole[$roleID[Developer]]
5
`
6
})
7
// Will return: Leref,Ruben
Copied!
Now with a custom separator
1
bot.command({
2
name: "usersWithRole",
3
code: `
4
$usersWithRole[$roleID[Developer];|]
5
`
6
})
7
// Will return: Leref|Ruben
Copied!
Last modified 1mo ago
Copy link
Edit on GitHub