Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 585 Bytes

usduserswithrole.md

File metadata and controls

36 lines (28 loc) · 585 Bytes
description
Returns a list of users with given role (members are given from the cache.)

$usersWithRole

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