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

    Function createOptionType

    • Creates the corresponding type for a given option.

      Parameters

      • option: Option

        The option.

      • resolved: boolean = false

        Whether the option should be resolved (slash command) or not (autocomplete).

      Returns TypeNode