Discord · Schema

OAuth2GetAuthorizationResponse

ChatCommunicationGamingMessagingSocialVideoVoice

Properties

Name Type Description
application object
expires string
scopes array
user object
View JSON Schema on GitHub

JSON Schema

discord-oauth2getauthorizationresponse-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/OAuth2GetAuthorizationResponse",
  "title": "OAuth2GetAuthorizationResponse",
  "type": "object",
  "properties": {
    "application": {
      "$ref": "#/components/schemas/ApplicationResponse"
    },
    "expires": {
      "type": "string",
      "format": "date-time"
    },
    "scopes": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/OAuth2Scopes"
      },
      "uniqueItems": true
    },
    "user": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/components/schemas/UserResponse"
        }
      ]
    }
  },
  "required": [
    "application",
    "expires",
    "scopes"
  ]
}