$onlyForRoles

The command can only executed by the provided roles.

Usage

$onlyForRoles[roleNames;errorMessage]

Breakdown

  • roleNames - The role names to allow.
  • errorMessage - The message to return when the user doesn't have the required roles.