# RegisterCommand

`function` in `seedcord` · v0.14.0

<https://docs.seedcord.org/packages/seedcord/0.14.0/functions/register-command>

Registers a command for global deployment.

## Signature 1

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

Registers a command for global deployment.

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`.
