index.ts
@file The command table.
Overview
@file The command table. Registration and dispatch read the same list, so a command cannot be registered with Discord without a handler behind it, or gain a handler nobody can invoke. The modal and component routes are derived from the modules too, rather than kept as their own hand-written maps here: a table in this file lets a command ship a handler that nothing routes to, and the two drift apart silently.
depends on command.ts build.ts context.ts decode-devid.ts forget.ts help-me.ts ihave.ts matrix.ts ping.ts size.ts spec.ts test-request.ts test-result.ts twin.ts verify.ts who-has.ts why.ts · used by register-commands.ts index.ts
API
Ffunction routes(pick: (m: CommandModule) => { prefix?: string; handler?: CommandHandler }):
Longest prefix first, so a future help-me-extra cannot be swallowed by
help-me.
Undocumented (2)
modalHandlerFor, componentHandlerFor