# RegisterCommand

`function` in `core` · v0.1.0-next.5

<https://docs.seedcord.org/packages/core/0.1.0-next.5/functions/register-command>

Attaches deployment metadata so the framework registers this command globally or in specific guilds.

## Signature 1

```ts
RegisterCommand(
    scope: "global"
): (ctor: CommandCtor) => void
```

Attaches deployment metadata so the framework registers this command globally or in specific guilds.

Parameters.

- `scope` `'global'` — Must be 'global' for global registration

Returns `(ctor: CommandCtor) => void`.

## Signature 2

```ts
RegisterCommand(
    scope: "guild",
    guilds: string[]
): (ctor: CommandCtor) => void
```

Registers a command for specific guild deployment.

Parameters.

- `scope` `'guild'` — Must be 'guild' for guild-specific registration
- `guilds` `string[]` — Array of guild IDs where the command should be registered

Returns `(ctor: CommandCtor) => void`.
