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