Firebot icon indicating copy to clipboard operation
Firebot copied to clipboard

[Feature Request] Variable to return an array of roles for a specified user

Open CrowbarToolsRobot opened this issue 2 years ago • 1 comments

SReject via Discord:

Add variable that looks up and retrieves all roles for a user

Returns an array of roles for the current $user

$userRoles

Returns an array of all roles for the specified username

$userRoles[username]

Returns an array of specific roles for the username

$userRoles[username, all]
$userRoles[username, firebot]
$userRoles[username, custom]
$userRoles[username, twitch]
$userRoles[username, team]

For cases were the user cannot be located, and empty array should be returned

CrowbarToolsRobot avatar Sep 11 '22 15:09 CrowbarToolsRobot

#1896

CKY- avatar Sep 11 '22 15:09 CKY-

Added in v5.55.0

zunderscore avatar Feb 01 '23 04:02 zunderscore