$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]
  1. userID - This makes user not able to run this command. You can add as many userIDs as you want, separated with semicolon (;).
  2. 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

User04/23/2025
!!exec $blackListIDs[$authorID;You are blacklisted from using this command!]
Message
Custom Command Bot 04/23/2025
You are blacklisted from using this command!
Function difficulty: Medium
Tags: only for blacklist not allowed