Skip to content
Typeplugin-oauthv0.1.0

AuthorizeUrlOptions

What authorizeUrl() puts in the link, besides the client's scopes. The options for adding the bot only exist when the client's lists include the scope they belong to.

type AuthorizeUrlOptions<
    TScopes extends OAuthScope = never,
    TExtra extends OAuthScope = never
> = EveryLinkOptions<Exclude<TExtra, TScopes>> &
    WithScope<TScopes | TExtra, "bot", BotLinkOptions> &
    WithScope<
        TScopes | TExtra,
        "bot" | "applications.commands",
        InstallLinkOptions
    >;