Skip to content

$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

FieldTypeDescriptionRequired
…userIdsstring, numberUsers you want to limit the command to.true
errorstringError 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:

1
client.command({
2
name: "onlyForIDs",
3
code: `
4
You can use this!
5
$onlyForIDs[$clientOwnerIds;You can't use that command!]
6
`
7
});