# Commands

`variable` in `core` · v0.4.1

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

The bot's deployed slash commands, keyed by [`SlashRegistry`](/packages/core/0.4.1/interfaces/slash-registry). Filled by CommandInjector after each deploy, and a read before that throws.

```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}`);
```
