$onlyForIDs
$onlyForIDs
will check if the command was executed by any user of the listed user IDs and return a error if not.
Usage
$onlyForIDs[...userIDs;error]
Parameters
Field | Type | Description | Required |
---|---|---|---|
…userIDs | string, number | Users you want to limit the command to. | true |
error | string | Error to return when the command was not executed by and of the listed users. | true |
Example(s)
This will limit the command to bot developers only:
1client.command({2 name: "onlyForIDs",3 code: `4 You can use this!5 $onlyForIDs[$clientOwnerIDs;You can't use that command!]6 `7});