$hasRoles
Returns `true` if the user has all the role(s) in the defined guild. Otherwise the function returns `false`.
FUNCTION USAGE:
  • $hasRoles[userID;guildID;roleID]
  • $hasRoles[userID;guildID;roleID;roleID;etc...]

Properties:

userID - The user being checked. guildID - The guild where the user and role is being checked. roleID - The role(s) being checked.
Example:
bot.Command({
name: "check",
code: `
$hasRoles[$authorID;$guilID[DB-Script Official Server];3546345634563456;23423542346322562;586784673546325463]
`
})
Copy link