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

    Function createSlashCommandHandlerMapRec

    • Creates a handler type for a slash command, where subcommands and subcommand groups are represented as nested properties.

      Parameters

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

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

      • interactionType: TypeNode

        The type of the interaction.

      • options:
            | (
                | ApplicationCommandAttachmentOptionResponse
                | ApplicationCommandBooleanOptionResponse
                | ApplicationCommandChannelOptionResponse
                | ApplicationCommandIntegerOptionResponse
                | ApplicationCommandMentionableOptionResponse
                | ApplicationCommandNumberOptionResponse
                | ApplicationCommandRoleOptionResponse
                | ApplicationCommandStringOptionResponse
                | ApplicationCommandUserOptionResponse
                | ApplicationCommandSubcommandGroupOptionResponse
                | ApplicationCommandSubcommandOptionResponse
            )[]
            | undefined = []

        The options, which may include subcommands and subcommand groups.

      Returns TypeNode