$onlyForGuilds
$onlyForGuilds
will check if the command was executed in one of the listed guilds and return a error message if not.
Usage
Parameters
Field | Type | Description | Required |
---|---|---|---|
…guildIds | string, number | Guilds you want to limit the command to. | true |
error | string | Error to return when the command was not executed in any of the listed guilds. | true |
Example(s)
This will limit the command only to the listed guilds: