v5.0.0
$blackListRoleIDs
Blocks the specified role IDs from running the command
This function will allow that the commands cannot be executed by certain users with certain roles, you must indicate the roles who are excluded of using the command by their ID.

Fields

This function has 2 required fields
  1. 1.
    RoleID (Required)
  2. 2.
    RoleID 2 (Optional)
  3. 3.
    Etc (Optional)
  4. 4.
    Error (Required)
Raw Usage: $blackListRoleIDs[roleID;roleID 2;...;error message]

Options

  • Role ID - The role(s) who are blacklisted from the command
  • Error - The error message when a user with one of the blacklisted roles run the command

Usage

1
bot.command({
2
name: "example",
3
code: `
4
Hi, this is an example code
5
$blackListRoleIDs[773353340674900029;You don't have the role \`Staff\` to execute this!]
6
`
7
});
Copied!
Last modified 1mo ago
Copy link
Edit on GitHub