# Commands

`variable` in `core` · v0.1.4

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

The bot's deployed slash commands, keyed by [`SlashOptionRegistry`](/packages/core/0.1.4/interfaces/slash-option-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}`);
```
