# Commands

`variable` in `core` · v0.2.1-next.0

<https://docs.seedcord.org/packages/core/0.2.1-next.0/variables/commands>

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