Packages@robojs/discordjs
CommandConfig
Interface: CommandConfig
Command configuration options.
Extends
Extended by
Properties
| Property | Type | Description | Overrides | Inherited from |
|---|---|---|---|---|
__auto? | true | Internal: auto-generated handler marker | - | BaseConfig.__auto |
__module? | string | Internal: module name | - | BaseConfig.__module |
__path? | string | Internal: file path | - | BaseConfig.__path |
__plugin? | { name: string; path: string; } | Internal: plugin info | - | BaseConfig.__plugin |
__plugin.name | string | - | - | - |
__plugin.path | string | - | - | - |
contexts? | CommandContext[] | Interaction contexts where the command is available | - | - |
defaultMemberPermissions? | string | number | bigint | Default member permissions required to use the command | - | - |
description? | string | Handler description | - | BaseConfig.description |
descriptionLocalizations? | Record<string, string> | Description localizations by locale code | - | - |
disabled? | boolean | Whether the handler is disabled | - | BaseConfig.disabled |
dmPermission? | boolean | Deprecated Use contexts instead | - | - |
integrationTypes? | CommandIntegrationType[] | Installation contexts for the command | - | - |
nameLocalizations? | Record<string, string> | Name localizations by locale code | - | - |
nsfw? | boolean | Whether the command is age-restricted | - | - |
options? | readonly CommandOption[] | Command options/parameters | - | - |
sage? | false | SageOptions | Sage (auto-defer/reply) configuration | - | - |
serverOnly? | string | string[] | Restrict to specific server IDs | - | BaseConfig.serverOnly |
timeout? | number | Execution timeout in milliseconds | BaseConfig.timeout | - |
