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

    Function createGuildCommandHandlerMap

    • Creates a type literal mapping guild identifiers to their respective command handlers.

      Parameters

      • guilds: Map<`${bigint}`, Group>

        The guilds and their commands.

      • type: ApplicationCommandType

        The application command type to generate handlers for.

      • createCommandHandlersType: (commands: ApplicationCommandResponse[]) => TypeNode

        The function used to create the dispatcher type for a list of commands.

      Returns TypeLiteralNode