Skip to content
Interfaceplugin-oauthv0.1.0

EveryLinkOptions

interface EveryLinkOptions<TExtra extends OAuthScope>

codeChallenge

The SHA-256 PKCE challenge, base64url encoded. Pass its verifier to exchange(). Discord answers invalid_scope to a challenge that comes with the role_connections.write scope.

codeChallenge?: string | undefined

scopes

The extraScopes this link also requests.

scopes?: readonly TExtra[] | undefined

state

A random value that you tie to the visitor's browser and compare when Discord sends it back.

state: string;