Skip to content
Variablecorev0.14.0

Commands

The bot's deployed slash commands, keyed by SlashRegistry. 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.

Throws:

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

const Commands: InjectedCommandMap;
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}`);