Skip to content
Typeplugin-linked-rolesv0.1.0

LinkedRolesResult

How a visit to the callback route ended. It's a ConnectionResult, or one of these:

  • denied: the visitor pressed cancel on Discord's consent screen, or Discord refused the request. error is Discord's reason, like access_denied.
  • invalid: the link expired, the page was reloaded, or the visit didn't come from a link that this browser opened.
  • failed: something threw, like the token exchange, your values, or the write to Discord. error is what was thrown.
type LinkedRolesResult =
    ConnectionResult | ExcludeStrict<FailedLogin, { kind: "unlisted" }>;