$blackListIDs
Prevent users from using a command by blacklisting their IDs.
Usage
The $blackListIDs
function allows you to restrict access to a command for a specified list of users. If a blacklisted user attempts to use the command, the function will return a custom error message.
$blackListIDs[userID;userID;...;error message]
- userID - This makes user not able to run this command. You can add as many userIDs as you want, separated with semicolon (
;
). - error message - (Optional) default value: (none). If a blacklisted user attempts to run this command, this message will be sent. If empty, no message will be sent.
Example
Blacklisted User
How to blacklist a user from the command