# RegisterCommand

`function` in `core` · v0.4.1

<https://docs.seedcord.org/packages/core/0.4.1/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'`

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'`
- `guilds` `string[]` — Array of guild IDs where the command should be registered

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