$hasAnyRole

Checks if the author or user have at least one of the provided role IDs

Usage

$hasAnyRole[roleID1;roleID2;...] or $hasAnyRole[userID;roleID1;roleID2;...]
1

Example:

Admin09/25/2022
!!exec $onlyIf[$hasAnyRole[$authorID;Admin]==true;You are not admin]
You are admin!

Custom Command Bot 09/25/2022
You are admin!

Example:

Normal User09/25/2022
!!exec $onlyIf[$hasAnyRole[$authorID;Admin]==true;You are not admin]
You are admin!

Custom Command Bot 09/25/2022
You are not admin