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

    Function createRouter

    • Create a router function that responds to interactions using the provided handlers.

      Parameters

      • partialHandlers: Partial<Handlers>

        Partial handlers to override default behavior.

      • client: Public = ...

        Optional REST client used to create interaction responses.

      Returns (interaction: Interaction) => Promise<void>