# Commands

`variable` in `core` · v0.11.0

<https://seedcord.org/docs/packages/core/0.11.0/variables/commands>

The bot's deployed slash commands, keyed by [`SlashRegistry`](/docs/packages/core/0.11.0/interfaces/slash-registry). A server bot fills these after
each deploy. An edge bot fills them on its first request, from the ids `seedcord build` wrote into
the worker.

```ts
const Commands: InjectedCommandMap;
```

## Examples

```ts
import { Commands } from '@seedcord/gateway';

await this.reply(`Try ${Commands['config/set'].mention}`);

// a help listing
const lines = Object.values(Commands).map((c) => `${c.mention} ${c.description}`);
```

## Throws

A **SeedcordError** when you read a command before the bot fills it.
