$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});