description |
---|
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
$usersWithRole[roleID;separator (optional)] //Default separator is ,
Lets fetch some users!
bot.command({
name: "usersWithRole",
code: `
$usersWithRole[$roleID[Developer]]
`
})
// Will return: Leref,Ruben
Now with a custom separator
bot.command({
name: "usersWithRole",
code: `
$usersWithRole[$roleID[Developer];|]
`
})
// Will return: Leref|Ruben