@typed-discord/interactions-codegen
    Preparing search index...

    Function createSlashCommandHandlerMap

    • Creates a type literal mapping slash command names to their handler types.

      Parameters

      • createSlashCommandHandler: (interactionType: TypeNode, options: Option[]) => TypeNode

        The function used to create the handler type for a slash command.

      • commands: ApplicationCommandResponse[]

        The slash commands.

      Returns TypeLiteralNode