101459 lines
3.3 MiB
101459 lines
3.3 MiB
{
|
|
"CreateFingerprintResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"fingerprint": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"fingerprint"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"ApplicationCommandSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```",
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4
|
|
],
|
|
"type": "number"
|
|
},
|
|
"application_id": {
|
|
"description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```",
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```",
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"name_localizations": {
|
|
"$ref": "#/definitions/Record<string,string>"
|
|
},
|
|
"name_localized": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"description_localizations": {
|
|
"$ref": "#/definitions/Record<string,string>"
|
|
},
|
|
"description_localized": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"options": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ApplicationCommandOption"
|
|
}
|
|
},
|
|
"default_member_permissions": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"dm_permission": {
|
|
"type": "boolean"
|
|
},
|
|
"permissions": {
|
|
"$ref": "#/definitions/ApplicationCommandIndexPermissions"
|
|
},
|
|
"nsfw": {
|
|
"type": "boolean"
|
|
},
|
|
"integration_types": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ApplicationIntegrationType"
|
|
}
|
|
},
|
|
"global_popularity_rank": {
|
|
"type": "integer"
|
|
},
|
|
"contexts": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/InteractionContextType"
|
|
}
|
|
},
|
|
"version": {
|
|
"description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```",
|
|
"type": "string"
|
|
},
|
|
"handler": {
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3
|
|
],
|
|
"type": "number"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"application_id",
|
|
"default_member_permissions",
|
|
"description",
|
|
"name",
|
|
"version"
|
|
],
|
|
"definitions": {
|
|
"Record<string,string>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"ApplicationCommandOption": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/ApplicationCommandOptionType"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"required": {
|
|
"type": "boolean"
|
|
},
|
|
"choices": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ApplicationCommandOptionChoice"
|
|
}
|
|
},
|
|
"options": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ApplicationCommandOption"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"description",
|
|
"name",
|
|
"type"
|
|
]
|
|
},
|
|
"ApplicationCommandOptionType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8
|
|
]
|
|
},
|
|
"ApplicationCommandOptionChoice": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": [
|
|
"string",
|
|
"integer"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
},
|
|
"ApplicationCommandIndexPermissions": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user": {
|
|
"type": "boolean"
|
|
},
|
|
"roles": {
|
|
"$ref": "#/definitions/Record<string,boolean>"
|
|
},
|
|
"channels": {
|
|
"$ref": "#/definitions/Record<string,boolean>"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"Record<string,boolean>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"ApplicationIntegrationType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1
|
|
]
|
|
},
|
|
"InteractionContextType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"ConnectedAccountCommonOAuthTokenResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"access_token": {
|
|
"type": "string"
|
|
},
|
|
"token_type": {
|
|
"type": "string"
|
|
},
|
|
"scope": {
|
|
"type": "string"
|
|
},
|
|
"refresh_token": {
|
|
"type": "string"
|
|
},
|
|
"expires_in": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"access_token",
|
|
"scope",
|
|
"token_type"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"TraitsSchema": {
|
|
"description": "A schema that has traits.",
|
|
"type": "object",
|
|
"properties": {
|
|
"namespace": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"traits": {
|
|
"$ref": "#/definitions/SchemaTraits"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"namespace",
|
|
"traits"
|
|
],
|
|
"definitions": {
|
|
"SchemaTraits": {
|
|
"description": "Traits attached to schema objects.\n\nWhen this is a number, it refers to a pre-allocated\ntrait combination that is equivalent to one of the\nobject type's variations.",
|
|
"anyOf": [
|
|
{
|
|
"description": "See https://smithy.io/2.0/trait-index.html for individual definitions.",
|
|
"type": "object",
|
|
"additionalProperties": {},
|
|
"properties": {
|
|
"idempotent": {
|
|
"const": 1,
|
|
"type": "number"
|
|
},
|
|
"idempotencyToken": {
|
|
"const": 1,
|
|
"type": "number"
|
|
},
|
|
"sensitive": {
|
|
"const": 1,
|
|
"type": "number"
|
|
},
|
|
"sparse": {
|
|
"const": 1,
|
|
"type": "number"
|
|
},
|
|
"httpLabel": {
|
|
"const": 1,
|
|
"type": "number"
|
|
},
|
|
"httpHeader": {
|
|
"type": "string"
|
|
},
|
|
"httpQuery": {
|
|
"type": "string"
|
|
},
|
|
"httpPrefixHeaders": {
|
|
"type": "string"
|
|
},
|
|
"httpQueryParams": {
|
|
"const": 1,
|
|
"type": "number"
|
|
},
|
|
"httpPayload": {
|
|
"const": 1,
|
|
"type": "number"
|
|
},
|
|
"http": {
|
|
"description": "[method, path, statusCode]",
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "integer"
|
|
}
|
|
],
|
|
"minItems": 3,
|
|
"maxItems": 3
|
|
},
|
|
"httpResponseCode": {
|
|
"const": 1,
|
|
"type": "number"
|
|
},
|
|
"endpoint": {
|
|
"description": "[hostPrefix]",
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
},
|
|
"xmlAttribute": {
|
|
"const": 1,
|
|
"type": "number"
|
|
},
|
|
"xmlName": {
|
|
"type": "string"
|
|
},
|
|
"xmlNamespace": {
|
|
"description": "[prefix, uri]",
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"minItems": 2,
|
|
"maxItems": 2
|
|
},
|
|
"xmlFlattened": {
|
|
"const": 1,
|
|
"type": "number"
|
|
},
|
|
"jsonName": {
|
|
"type": "string"
|
|
},
|
|
"mediaType": {
|
|
"type": "string"
|
|
},
|
|
"error": {
|
|
"enum": [
|
|
"client",
|
|
"server"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"streaming": {
|
|
"const": 1,
|
|
"type": "number"
|
|
},
|
|
"eventHeader": {
|
|
"const": 1,
|
|
"type": "number"
|
|
},
|
|
"eventPayload": {
|
|
"const": 1,
|
|
"type": "number"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "integer"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"FieldErrorResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "integer"
|
|
},
|
|
"message": {
|
|
"type": "string"
|
|
},
|
|
"errors": {
|
|
"$ref": "#/definitions/Record<string,ObjectErrorContent>"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"code",
|
|
"errors",
|
|
"message"
|
|
],
|
|
"definitions": {
|
|
"Record<string,ObjectErrorContent>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"InteractionSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/InteractionType"
|
|
},
|
|
"application_id": {
|
|
"description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```",
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```",
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```",
|
|
"type": "string"
|
|
},
|
|
"message_id": {
|
|
"description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```",
|
|
"type": "string"
|
|
},
|
|
"message_flags": {
|
|
"type": "integer"
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
},
|
|
"data": {
|
|
"$ref": "#/definitions/InteractionData"
|
|
},
|
|
"files": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true
|
|
}
|
|
},
|
|
"nonce": {
|
|
"type": "string"
|
|
},
|
|
"analytics_location": {
|
|
"type": "string"
|
|
},
|
|
"section_name": {
|
|
"type": "string"
|
|
},
|
|
"source": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"application_id",
|
|
"channel_id",
|
|
"data",
|
|
"type"
|
|
],
|
|
"definitions": {
|
|
"InteractionType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5
|
|
]
|
|
},
|
|
"InteractionData": {
|
|
"type": "object",
|
|
"properties": {
|
|
"application_command": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true
|
|
},
|
|
"attachments": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/UploadAttachmentRequestSchema"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"options": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ApplicationCommandOption"
|
|
}
|
|
},
|
|
"type": {
|
|
"type": "integer"
|
|
},
|
|
"version": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"application_command",
|
|
"attachments",
|
|
"id",
|
|
"name",
|
|
"options",
|
|
"type",
|
|
"version"
|
|
]
|
|
},
|
|
"UploadAttachmentRequestSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"files": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/UploadAttachmentRequest"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"files"
|
|
]
|
|
},
|
|
"UploadAttachmentRequest": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"filename": {
|
|
"type": "string"
|
|
},
|
|
"file_size": {
|
|
"type": "integer"
|
|
},
|
|
"is_clip": {
|
|
"type": "boolean"
|
|
},
|
|
"original_content_type": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"file_size",
|
|
"filename"
|
|
]
|
|
},
|
|
"ApplicationCommandOption": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/ApplicationCommandOptionType"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"required": {
|
|
"type": "boolean"
|
|
},
|
|
"choices": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ApplicationCommandOptionChoice"
|
|
}
|
|
},
|
|
"options": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ApplicationCommandOption"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"description",
|
|
"name",
|
|
"type"
|
|
]
|
|
},
|
|
"ApplicationCommandOptionType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8
|
|
]
|
|
},
|
|
"ApplicationCommandOptionChoice": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": [
|
|
"string",
|
|
"integer"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"InteractionCallbackSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/InteractionCallbackType"
|
|
},
|
|
"data": {
|
|
"$ref": "#/definitions/Message"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"data",
|
|
"type"
|
|
],
|
|
"definitions": {
|
|
"InteractionCallbackType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12
|
|
]
|
|
},
|
|
"Message": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"author_id": {
|
|
"type": "string"
|
|
},
|
|
"author": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"member_id": {
|
|
"type": "string"
|
|
},
|
|
"member": {
|
|
"$ref": "#/definitions/Member"
|
|
},
|
|
"webhook_id": {
|
|
"type": "string"
|
|
},
|
|
"webhook": {
|
|
"$ref": "#/definitions/Webhook"
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"application": {
|
|
"$ref": "#/definitions/Application"
|
|
},
|
|
"content": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"edited_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"tts": {
|
|
"type": "boolean"
|
|
},
|
|
"mention_everyone": {
|
|
"type": "boolean"
|
|
},
|
|
"mentions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/User"
|
|
}
|
|
},
|
|
"mention_roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"mention_channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Channel"
|
|
}
|
|
},
|
|
"sticker_items": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"attachments": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Attachment"
|
|
}
|
|
},
|
|
"embeds": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Embed"
|
|
}
|
|
},
|
|
"reactions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Reaction"
|
|
}
|
|
},
|
|
"nonce": {
|
|
"type": "string"
|
|
},
|
|
"pinned_at": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"pinned": {
|
|
"type": "boolean"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/MessageType"
|
|
},
|
|
"activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "integer"
|
|
},
|
|
"party_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"party_id",
|
|
"type"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"message_reference": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"message_id"
|
|
]
|
|
},
|
|
"referenced_message": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/Message"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"interaction": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/InteractionType"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"type"
|
|
]
|
|
},
|
|
"interaction_metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/InteractionType"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"authorizing_integration_owners": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"command_type": {
|
|
"$ref": "#/definitions/ApplicationCommandType"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"authorizing_integration_owners",
|
|
"command_type",
|
|
"id",
|
|
"name",
|
|
"type",
|
|
"user_id"
|
|
]
|
|
},
|
|
"components": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ActionRowComponent"
|
|
}
|
|
},
|
|
"poll": {
|
|
"$ref": "#/definitions/Poll"
|
|
},
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"embeds",
|
|
"flags",
|
|
"id",
|
|
"mention_channels",
|
|
"mention_roles",
|
|
"mentions",
|
|
"pinned",
|
|
"reactions",
|
|
"timestamp",
|
|
"type"
|
|
]
|
|
},
|
|
"Channel": {
|
|
"type": "object",
|
|
"properties": {
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ChannelType"
|
|
},
|
|
"recipients": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Recipient"
|
|
}
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"parent_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"parent": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"owner_id": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"last_pin_timestamp": {
|
|
"type": "integer"
|
|
},
|
|
"default_auto_archive_duration": {
|
|
"type": "integer"
|
|
},
|
|
"permission_overwrites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwrite"
|
|
}
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
},
|
|
"bitrate": {
|
|
"type": "integer"
|
|
},
|
|
"user_limit": {
|
|
"type": "integer"
|
|
},
|
|
"nsfw": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"topic": {
|
|
"type": "string"
|
|
},
|
|
"invites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Invite"
|
|
}
|
|
},
|
|
"retention_policy_id": {
|
|
"type": "string"
|
|
},
|
|
"messages": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Message"
|
|
}
|
|
},
|
|
"voice_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/VoiceState"
|
|
}
|
|
},
|
|
"read_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ReadState"
|
|
}
|
|
},
|
|
"webhooks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Webhook"
|
|
}
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"position": {
|
|
"description": "Must be calculated Channel.calculatePosition",
|
|
"type": "integer"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"created_at",
|
|
"flags",
|
|
"id",
|
|
"nsfw",
|
|
"owner",
|
|
"parent_id",
|
|
"position",
|
|
"type"
|
|
]
|
|
},
|
|
"ChannelType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
33,
|
|
34,
|
|
35,
|
|
64,
|
|
255
|
|
]
|
|
},
|
|
"Recipient": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"closed": {
|
|
"type": "boolean"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"closed",
|
|
"id",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"User": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"theme_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"phone": {
|
|
"type": "string"
|
|
},
|
|
"desktop": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"mobile": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"premium": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_type": {
|
|
"type": "integer"
|
|
},
|
|
"bot": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"bio": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"system": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"nsfw_allowed": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"mfa_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"webauthn_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"totp_secret": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"totp_last_ticket": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"deleted": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"email": {
|
|
"type": "string"
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"public_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"purchased_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"premium_usage_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"rights": {
|
|
"type": "string"
|
|
},
|
|
"sessions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Session"
|
|
}
|
|
},
|
|
"relationships": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Relationship"
|
|
}
|
|
},
|
|
"connected_accounts": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ConnectedAccount"
|
|
}
|
|
},
|
|
"data": {
|
|
"type": "object",
|
|
"properties": {
|
|
"valid_tokens_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"hash": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"valid_tokens_since"
|
|
]
|
|
},
|
|
"fingerprints": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"settings": {
|
|
"$ref": "#/definitions/UserSettings"
|
|
},
|
|
"extended_settings": {
|
|
"type": "string",
|
|
"default": "{}"
|
|
},
|
|
"security_keys": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SecurityKey"
|
|
}
|
|
},
|
|
"badge_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"connected_accounts",
|
|
"created_at",
|
|
"data",
|
|
"deleted",
|
|
"desktop",
|
|
"disabled",
|
|
"discriminator",
|
|
"extended_settings",
|
|
"fingerprints",
|
|
"flags",
|
|
"id",
|
|
"mfa_enabled",
|
|
"mobile",
|
|
"nsfw_allowed",
|
|
"premium",
|
|
"premium_since",
|
|
"premium_type",
|
|
"premium_usage_flags",
|
|
"public_flags",
|
|
"purchased_flags",
|
|
"relationships",
|
|
"rights",
|
|
"security_keys",
|
|
"sessions",
|
|
"system",
|
|
"username",
|
|
"verified",
|
|
"webauthn_enabled"
|
|
]
|
|
},
|
|
"Session": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"client_info": {
|
|
"type": "object",
|
|
"properties": {
|
|
"client": {
|
|
"type": "string"
|
|
},
|
|
"os": {
|
|
"type": "string"
|
|
},
|
|
"version": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"client",
|
|
"os",
|
|
"version"
|
|
]
|
|
},
|
|
"client_status": {
|
|
"$ref": "#/definitions/ClientStatus"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"activities",
|
|
"client_info",
|
|
"client_status",
|
|
"id",
|
|
"session_id",
|
|
"status",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
]
|
|
},
|
|
"ClientStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"desktop": {
|
|
"type": "string"
|
|
},
|
|
"mobile": {
|
|
"type": "string"
|
|
},
|
|
"web": {
|
|
"type": "string"
|
|
},
|
|
"embedded": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Relationship": {
|
|
"type": "object",
|
|
"properties": {
|
|
"from_id": {
|
|
"type": "string"
|
|
},
|
|
"from": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"to_id": {
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"nickname": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/RelationshipType"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"from",
|
|
"from_id",
|
|
"id",
|
|
"to",
|
|
"to_id",
|
|
"type"
|
|
]
|
|
},
|
|
"RelationshipType": {
|
|
"type": "number",
|
|
"enum": [
|
|
4,
|
|
3,
|
|
2,
|
|
1
|
|
]
|
|
},
|
|
"ConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"external_id": {
|
|
"type": "string"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"friend_sync": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"revoked": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"show_activity": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"visibility": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"integrations": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"metadata_": {},
|
|
"metadata_visibility": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"two_way_link": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"token_data": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/ConnectedAccountTokenData"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"external_id",
|
|
"id",
|
|
"name",
|
|
"type",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"ConnectedAccountTokenData": {
|
|
"type": "object",
|
|
"properties": {
|
|
"access_token": {
|
|
"type": "string"
|
|
},
|
|
"token_type": {
|
|
"type": "string"
|
|
},
|
|
"scope": {
|
|
"type": "string"
|
|
},
|
|
"refresh_token": {
|
|
"type": "string"
|
|
},
|
|
"expires_in": {
|
|
"type": "integer"
|
|
},
|
|
"expires_at": {
|
|
"type": "integer"
|
|
},
|
|
"fetched_at": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"access_token",
|
|
"fetched_at"
|
|
]
|
|
},
|
|
"UserSettings": {
|
|
"type": "object",
|
|
"properties": {
|
|
"index": {
|
|
"type": "string"
|
|
},
|
|
"afk_timeout": {
|
|
"type": "integer",
|
|
"default": 3600
|
|
},
|
|
"allow_accessibility_detection": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"animate_emoji": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"animate_stickers": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"contact_sync_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"convert_emoticons": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"custom_status": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/CustomStatus"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"default_guilds_restricted": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"detect_platform_accounts": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"developer_mode": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"disable_games_tab": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"enable_tts_command": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"friend_discovery_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"friend_source_flags": {
|
|
"$ref": "#/definitions/FriendSourceFlags"
|
|
},
|
|
"gateway_connected": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"gif_auto_play": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"guild_folders": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/GuildFolder"
|
|
},
|
|
"default": []
|
|
},
|
|
"guild_positions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"inline_attachment_media": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"inline_embed_media": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"locale": {
|
|
"type": "string",
|
|
"default": "en-US"
|
|
},
|
|
"message_display_compact": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"native_phone_integration_enabled": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"render_embeds": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"render_reactions": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"restricted_guilds": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"show_current_game": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string",
|
|
"default": "online"
|
|
},
|
|
"stream_notifications_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"theme": {
|
|
"enum": [
|
|
"dark",
|
|
"light"
|
|
],
|
|
"type": "string",
|
|
"default": "dark"
|
|
},
|
|
"timezone_offset": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"view_nsfw_guilds": {
|
|
"type": "boolean",
|
|
"default": true
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk_timeout",
|
|
"allow_accessibility_detection",
|
|
"animate_emoji",
|
|
"animate_stickers",
|
|
"contact_sync_enabled",
|
|
"convert_emoticons",
|
|
"custom_status",
|
|
"default_guilds_restricted",
|
|
"detect_platform_accounts",
|
|
"developer_mode",
|
|
"disable_games_tab",
|
|
"enable_tts_command",
|
|
"explicit_content_filter",
|
|
"friend_discovery_flags",
|
|
"friend_source_flags",
|
|
"gateway_connected",
|
|
"gif_auto_play",
|
|
"guild_folders",
|
|
"guild_positions",
|
|
"index",
|
|
"inline_attachment_media",
|
|
"inline_embed_media",
|
|
"locale",
|
|
"message_display_compact",
|
|
"native_phone_integration_enabled",
|
|
"render_embeds",
|
|
"render_reactions",
|
|
"restricted_guilds",
|
|
"show_current_game",
|
|
"status",
|
|
"stream_notifications_enabled",
|
|
"theme",
|
|
"timezone_offset",
|
|
"view_nsfw_guilds"
|
|
]
|
|
},
|
|
"CustomStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"emoji_id": {
|
|
"type": "string"
|
|
},
|
|
"emoji_name": {
|
|
"type": "string"
|
|
},
|
|
"expires_at": {
|
|
"type": "integer"
|
|
},
|
|
"text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"FriendSourceFlags": {
|
|
"type": "object",
|
|
"properties": {
|
|
"all": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"all"
|
|
]
|
|
},
|
|
"GuildFolder": {
|
|
"type": "object",
|
|
"properties": {
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"guild_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"color",
|
|
"guild_ids",
|
|
"id",
|
|
"name"
|
|
]
|
|
},
|
|
"SecurityKey": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"key_id": {
|
|
"type": "string"
|
|
},
|
|
"public_key": {
|
|
"type": "string"
|
|
},
|
|
"counter": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"counter",
|
|
"id",
|
|
"key_id",
|
|
"name",
|
|
"public_key",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Guild": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"afk_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"afk_timeout": {
|
|
"type": "integer"
|
|
},
|
|
"bans": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Ban"
|
|
}
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"default_message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"discovery_splash": {
|
|
"type": "string"
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer"
|
|
},
|
|
"features": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"primary_category_id": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"large": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"max_members": {
|
|
"type": "integer"
|
|
},
|
|
"max_presences": {
|
|
"type": "integer"
|
|
},
|
|
"max_video_channel_users": {
|
|
"type": "integer"
|
|
},
|
|
"member_count": {
|
|
"type": "integer"
|
|
},
|
|
"presence_count": {
|
|
"type": "integer"
|
|
},
|
|
"members": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Member"
|
|
}
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Channel"
|
|
}
|
|
},
|
|
"template_id": {
|
|
"type": "string"
|
|
},
|
|
"template": {
|
|
"$ref": "#/definitions/Template"
|
|
},
|
|
"emojis": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Emoji"
|
|
}
|
|
},
|
|
"stickers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"invites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Invite"
|
|
}
|
|
},
|
|
"voice_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/VoiceState"
|
|
}
|
|
},
|
|
"webhooks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Webhook"
|
|
}
|
|
},
|
|
"mfa_level": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"owner_id": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"preferred_locale": {
|
|
"type": "string"
|
|
},
|
|
"premium_subscription_count": {
|
|
"type": "integer"
|
|
},
|
|
"premium_tier": {
|
|
"type": "integer"
|
|
},
|
|
"public_updates_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"public_updates_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"rules_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"rules_channel": {
|
|
"type": "string"
|
|
},
|
|
"region": {
|
|
"type": "string"
|
|
},
|
|
"splash": {
|
|
"type": "string"
|
|
},
|
|
"system_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"system_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"system_channel_flags": {
|
|
"type": "integer"
|
|
},
|
|
"unavailable": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"verification_level": {
|
|
"type": "integer"
|
|
},
|
|
"welcome_screen": {
|
|
"$ref": "#/definitions/GuildWelcomeScreen",
|
|
"description": "DEPRECATED: Look at the new Guild onboarding screens."
|
|
},
|
|
"widget_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"widget_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"widget_enabled": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"nsfw_level": {
|
|
"type": "integer"
|
|
},
|
|
"nsfw": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"parent": {
|
|
"type": "string"
|
|
},
|
|
"permissions": {
|
|
"type": "integer"
|
|
},
|
|
"premium_progress_bar_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"channel_ordering": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bans",
|
|
"channel_ordering",
|
|
"channels",
|
|
"emojis",
|
|
"features",
|
|
"id",
|
|
"invites",
|
|
"members",
|
|
"name",
|
|
"nsfw",
|
|
"premium_progress_bar_enabled",
|
|
"public_updates_channel_id",
|
|
"roles",
|
|
"stickers",
|
|
"template",
|
|
"unavailable",
|
|
"voice_states",
|
|
"webhooks",
|
|
"welcome_screen",
|
|
"widget_enabled"
|
|
]
|
|
},
|
|
"Ban": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"executor_id": {
|
|
"type": "string"
|
|
},
|
|
"executor": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"ip": {
|
|
"type": "string"
|
|
},
|
|
"reason": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"executor",
|
|
"executor_id",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"ip",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Member": {
|
|
"type": "object",
|
|
"properties": {
|
|
"index": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"nick": {
|
|
"type": "string"
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"joined_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"premium_since": {
|
|
"type": "integer"
|
|
},
|
|
"deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"mute": {
|
|
"type": "boolean"
|
|
},
|
|
"pending": {
|
|
"type": "boolean"
|
|
},
|
|
"settings": {
|
|
"$ref": "#/definitions/UserGuildSettings"
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"joined_by": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"theme_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"communication_disabled_until": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"banner",
|
|
"bio",
|
|
"communication_disabled_until",
|
|
"deaf",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"index",
|
|
"joined_at",
|
|
"joined_by",
|
|
"mute",
|
|
"pending",
|
|
"roles",
|
|
"settings",
|
|
"user"
|
|
]
|
|
},
|
|
"Role": {
|
|
"type": "object",
|
|
"properties": {
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"hoist": {
|
|
"type": "boolean"
|
|
},
|
|
"managed": {
|
|
"type": "boolean"
|
|
},
|
|
"mentionable": {
|
|
"type": "boolean"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"permissions": {
|
|
"type": "string"
|
|
},
|
|
"position": {
|
|
"type": "integer"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"unicode_emoji": {
|
|
"type": "string"
|
|
},
|
|
"tags": {
|
|
"type": "object",
|
|
"properties": {
|
|
"bot_id": {
|
|
"type": "string"
|
|
},
|
|
"integration_id": {
|
|
"type": "string"
|
|
},
|
|
"premium_subscriber": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"colors": {
|
|
"$ref": "#/definitions/RoleColors"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"color",
|
|
"colors",
|
|
"flags",
|
|
"guild",
|
|
"guild_id",
|
|
"hoist",
|
|
"id",
|
|
"managed",
|
|
"mentionable",
|
|
"name",
|
|
"permissions",
|
|
"position"
|
|
]
|
|
},
|
|
"RoleColors": {
|
|
"type": "object",
|
|
"properties": {
|
|
"primary_color": {
|
|
"type": "integer"
|
|
},
|
|
"secondary_color": {
|
|
"type": "integer"
|
|
},
|
|
"tertiary_color": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"primary_color"
|
|
]
|
|
},
|
|
"UserGuildSettings": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_overrides": {
|
|
"anyOf": [
|
|
{
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"$ref": "#/definitions/ChannelOverride"
|
|
}
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mobile_push": {
|
|
"type": "boolean"
|
|
},
|
|
"mute_config": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress_everyone": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress_roles": {
|
|
"type": "boolean"
|
|
},
|
|
"version": {
|
|
"type": "integer"
|
|
},
|
|
"guild_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"mute_scheduled_events": {
|
|
"type": "boolean"
|
|
},
|
|
"hide_muted_channels": {
|
|
"type": "boolean"
|
|
},
|
|
"notify_highlights": {
|
|
"type": "integer",
|
|
"const": 0
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_overrides",
|
|
"flags",
|
|
"guild_id",
|
|
"hide_muted_channels",
|
|
"message_notifications",
|
|
"mobile_push",
|
|
"mute_config",
|
|
"mute_scheduled_events",
|
|
"muted",
|
|
"notify_highlights",
|
|
"suppress_everyone",
|
|
"suppress_roles",
|
|
"version"
|
|
]
|
|
},
|
|
"ChannelOverride": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_id",
|
|
"message_notifications",
|
|
"mute_config",
|
|
"muted"
|
|
]
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"Template": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"usage_count": {
|
|
"type": "integer"
|
|
},
|
|
"creator_id": {
|
|
"type": "string"
|
|
},
|
|
"creator": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"updated_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"source_guild_id": {
|
|
"type": "string"
|
|
},
|
|
"source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"serialized_source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"code",
|
|
"created_at",
|
|
"creator",
|
|
"creator_id",
|
|
"id",
|
|
"name",
|
|
"serialized_source_guild",
|
|
"source_guild",
|
|
"source_guild_id",
|
|
"updated_at"
|
|
]
|
|
},
|
|
"Emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"animated": {
|
|
"type": "boolean"
|
|
},
|
|
"available": {
|
|
"type": "boolean"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"managed": {
|
|
"type": "boolean"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"require_colons": {
|
|
"type": "boolean"
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"groups": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"available",
|
|
"groups",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"managed",
|
|
"name",
|
|
"require_colons",
|
|
"roles",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Sticker": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"available": {
|
|
"type": "boolean"
|
|
},
|
|
"tags": {
|
|
"type": "string"
|
|
},
|
|
"pack_id": {
|
|
"type": "string"
|
|
},
|
|
"pack": {
|
|
"$ref": "#/definitions/StickerPack"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/StickerType"
|
|
},
|
|
"format_type": {
|
|
"$ref": "#/definitions/StickerFormatType"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"format_type",
|
|
"id",
|
|
"name",
|
|
"pack",
|
|
"type"
|
|
]
|
|
},
|
|
"StickerPack": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"banner_asset_id": {
|
|
"type": "string"
|
|
},
|
|
"stickers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"cover_sticker_id": {
|
|
"type": "string"
|
|
},
|
|
"cover_sticker": {
|
|
"$ref": "#/definitions/Sticker"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"stickers"
|
|
]
|
|
},
|
|
"StickerType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"StickerFormatType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4
|
|
]
|
|
},
|
|
"Invite": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "string"
|
|
},
|
|
"temporary": {
|
|
"type": "boolean"
|
|
},
|
|
"uses": {
|
|
"type": "integer"
|
|
},
|
|
"max_uses": {
|
|
"type": "integer"
|
|
},
|
|
"max_age": {
|
|
"type": "integer"
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"expires_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"inviter_id": {
|
|
"type": "string"
|
|
},
|
|
"inviter": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"target_user_id": {
|
|
"type": "string"
|
|
},
|
|
"target_user": {
|
|
"type": "string"
|
|
},
|
|
"target_user_type": {
|
|
"type": "integer"
|
|
},
|
|
"vanity_url": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"code",
|
|
"created_at",
|
|
"flags",
|
|
"guild",
|
|
"guild_id",
|
|
"inviter",
|
|
"max_age",
|
|
"max_uses",
|
|
"target_user_id",
|
|
"temporary",
|
|
"uses"
|
|
]
|
|
},
|
|
"VoiceState": {
|
|
"type": "object",
|
|
"properties": {
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"member": {
|
|
"$ref": "#/definitions/Member"
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
},
|
|
"token": {
|
|
"type": "string"
|
|
},
|
|
"deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"mute": {
|
|
"type": "boolean"
|
|
},
|
|
"self_deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"self_mute": {
|
|
"type": "boolean"
|
|
},
|
|
"self_stream": {
|
|
"type": "boolean"
|
|
},
|
|
"self_video": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress": {
|
|
"type": "boolean"
|
|
},
|
|
"request_to_speak_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"deaf",
|
|
"guild_id",
|
|
"id",
|
|
"member",
|
|
"mute",
|
|
"self_deaf",
|
|
"self_mute",
|
|
"self_video",
|
|
"session_id",
|
|
"suppress",
|
|
"token",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Webhook": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/WebhookType"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"token": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"application": {
|
|
"$ref": "#/definitions/Application"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"source_guild_id": {
|
|
"type": "string"
|
|
},
|
|
"source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"source_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"source_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"application",
|
|
"application_id",
|
|
"avatar",
|
|
"channel",
|
|
"channel_id",
|
|
"id",
|
|
"name",
|
|
"source_channel",
|
|
"source_channel_id",
|
|
"type",
|
|
"url",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"WebhookType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3
|
|
]
|
|
},
|
|
"Application": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"summary": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"type": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true
|
|
},
|
|
"hook": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"bot_public": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"bot_require_code_grant": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"verify_key": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"redirect_uris": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"rpc_application_state": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"store_application_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"verification_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"interactions_endpoint_url": {
|
|
"type": "string"
|
|
},
|
|
"integration_public": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"integration_require_code_grant": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"discoverability_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"discovery_eligibility_flags": {
|
|
"type": "integer",
|
|
"default": 2240
|
|
},
|
|
"bot": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"tags": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"cover_image": {
|
|
"type": "string"
|
|
},
|
|
"install_params": {
|
|
"type": "object",
|
|
"properties": {
|
|
"scopes": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"permissions": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"permissions",
|
|
"scopes"
|
|
]
|
|
},
|
|
"terms_of_service_url": {
|
|
"type": "string"
|
|
},
|
|
"privacy_policy_url": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"custom_install_url": {
|
|
"type": "string"
|
|
},
|
|
"team": {
|
|
"$ref": "#/definitions/Team"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"description",
|
|
"discoverability_state",
|
|
"discovery_eligibility_flags",
|
|
"flags",
|
|
"hook",
|
|
"id",
|
|
"integration_public",
|
|
"integration_require_code_grant",
|
|
"name",
|
|
"owner",
|
|
"redirect_uris",
|
|
"rpc_application_state",
|
|
"store_application_state",
|
|
"summary",
|
|
"verification_state",
|
|
"verify_key"
|
|
]
|
|
},
|
|
"Team": {
|
|
"type": "object",
|
|
"properties": {
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"members": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/TeamMember"
|
|
}
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"owner_user_id": {
|
|
"type": "string"
|
|
},
|
|
"owner_user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"members",
|
|
"name",
|
|
"owner_user",
|
|
"owner_user_id"
|
|
]
|
|
},
|
|
"TeamMember": {
|
|
"type": "object",
|
|
"properties": {
|
|
"membership_state": {
|
|
"$ref": "#/definitions/TeamMemberState"
|
|
},
|
|
"permissions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"role": {
|
|
"$ref": "#/definitions/TeamMemberRole"
|
|
},
|
|
"team_id": {
|
|
"type": "string"
|
|
},
|
|
"team": {
|
|
"$ref": "#/definitions/Team"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"membership_state",
|
|
"permissions",
|
|
"role",
|
|
"team",
|
|
"team_id",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"TeamMemberState": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"TeamMemberRole": {
|
|
"type": "string",
|
|
"enum": [
|
|
"admin",
|
|
"developer",
|
|
"read_only"
|
|
]
|
|
},
|
|
"GuildWelcomeScreen": {
|
|
"type": "object",
|
|
"properties": {
|
|
"enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"welcome_channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"emoji_id": {
|
|
"type": "string"
|
|
},
|
|
"emoji_name": {
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_id",
|
|
"description"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"description",
|
|
"enabled",
|
|
"welcome_channels"
|
|
]
|
|
},
|
|
"ChannelPermissionOverwrite": {
|
|
"type": "object",
|
|
"properties": {
|
|
"allow": {
|
|
"type": "string"
|
|
},
|
|
"deny": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"allow",
|
|
"deny",
|
|
"id",
|
|
"type"
|
|
]
|
|
},
|
|
"ChannelPermissionOverwriteType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"ReadState": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"public_ack": {
|
|
"type": "string"
|
|
},
|
|
"notifications_cursor": {
|
|
"type": "string"
|
|
},
|
|
"last_pin_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"mention_count": {
|
|
"type": "integer"
|
|
},
|
|
"manual": {
|
|
"type": "boolean"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"id",
|
|
"last_message_id",
|
|
"manual",
|
|
"mention_count",
|
|
"notifications_cursor",
|
|
"public_ack",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Attachment": {
|
|
"type": "object",
|
|
"properties": {
|
|
"filename": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "integer"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
},
|
|
"content_type": {
|
|
"type": "string"
|
|
},
|
|
"message_id": {
|
|
"type": "string"
|
|
},
|
|
"message": {
|
|
"$ref": "#/definitions/Message"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"filename",
|
|
"id",
|
|
"message",
|
|
"message_id",
|
|
"proxy_url",
|
|
"size",
|
|
"url"
|
|
]
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"Reaction": {
|
|
"type": "object",
|
|
"properties": {
|
|
"count": {
|
|
"type": "integer"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"user_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"count",
|
|
"emoji",
|
|
"user_ids"
|
|
]
|
|
},
|
|
"PartialEmoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name"
|
|
]
|
|
},
|
|
"MessageType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
16,
|
|
19,
|
|
20,
|
|
41,
|
|
42,
|
|
43,
|
|
50,
|
|
63,
|
|
255
|
|
]
|
|
},
|
|
"InteractionType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5
|
|
]
|
|
},
|
|
"ApplicationCommandType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4
|
|
]
|
|
},
|
|
"ActionRowComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.ActionRow"
|
|
},
|
|
"components": {
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/ButtonComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/SelectMenuComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/StringSelectMenuComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/TextInputComponent"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"components",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.ActionRow": {
|
|
"type": "number",
|
|
"const": 1
|
|
},
|
|
"ButtonComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.Button"
|
|
},
|
|
"style": {
|
|
"$ref": "#/definitions/ButtonStyle"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"sku_id": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"style",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.Button": {
|
|
"type": "number",
|
|
"const": 2
|
|
},
|
|
"ButtonStyle": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6
|
|
]
|
|
},
|
|
"SelectMenuComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": [
|
|
3,
|
|
5,
|
|
6,
|
|
7,
|
|
8
|
|
],
|
|
"type": "number"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_types": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
},
|
|
"default_values": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuDefaultOption"
|
|
}
|
|
},
|
|
"min_values": {
|
|
"type": "integer"
|
|
},
|
|
"max_values": {
|
|
"type": "integer"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"type"
|
|
]
|
|
},
|
|
"SelectMenuDefaultOption": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"channel",
|
|
"role",
|
|
"user"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"type"
|
|
]
|
|
},
|
|
"StringSelectMenuComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.StringSelect"
|
|
},
|
|
"options": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuOption"
|
|
}
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_types": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
},
|
|
"default_values": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuDefaultOption"
|
|
}
|
|
},
|
|
"min_values": {
|
|
"type": "integer"
|
|
},
|
|
"max_values": {
|
|
"type": "integer"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"options",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.StringSelect": {
|
|
"type": "number",
|
|
"const": 3
|
|
},
|
|
"SelectMenuOption": {
|
|
"type": "object",
|
|
"properties": {
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"default": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"label",
|
|
"value"
|
|
]
|
|
},
|
|
"TextInputComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.TextInput"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"style": {
|
|
"$ref": "#/definitions/TextInputStyle"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"min_length": {
|
|
"type": "integer"
|
|
},
|
|
"max_length": {
|
|
"type": "integer"
|
|
},
|
|
"required": {
|
|
"type": "boolean"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"label",
|
|
"style",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.TextInput": {
|
|
"type": "number",
|
|
"const": 4
|
|
},
|
|
"TextInputStyle": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"Poll": {
|
|
"type": "object",
|
|
"properties": {
|
|
"question": {
|
|
"$ref": "#/definitions/PollMedia"
|
|
},
|
|
"answers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/PollAnswer"
|
|
}
|
|
},
|
|
"expiry": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"allow_multiselect": {
|
|
"type": "boolean"
|
|
},
|
|
"results": {
|
|
"$ref": "#/definitions/PollResult"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"allow_multiselect",
|
|
"answers",
|
|
"expiry",
|
|
"question"
|
|
]
|
|
},
|
|
"PollMedia": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"PollAnswer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"answer_id": {
|
|
"type": "string"
|
|
},
|
|
"poll_media": {
|
|
"$ref": "#/definitions/PollMedia"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"poll_media"
|
|
]
|
|
},
|
|
"PollResult": {
|
|
"type": "object",
|
|
"properties": {
|
|
"is_finalized": {
|
|
"type": "boolean"
|
|
},
|
|
"answer_counts": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/PollAnswerCount"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"answer_counts",
|
|
"is_finalized"
|
|
]
|
|
},
|
|
"PollAnswerCount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"count": {
|
|
"type": "integer"
|
|
},
|
|
"me_voted": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"count",
|
|
"id",
|
|
"me_voted"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"InteractionCreateSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"version": {
|
|
"type": "integer"
|
|
},
|
|
"id": {
|
|
"description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```",
|
|
"type": "string"
|
|
},
|
|
"application_id": {
|
|
"description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```",
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/InteractionType"
|
|
},
|
|
"token": {
|
|
"type": "string"
|
|
},
|
|
"data": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/InteractionGuild"
|
|
},
|
|
"guild_id": {
|
|
"description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```",
|
|
"type": "string"
|
|
},
|
|
"guild_locale": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"channel_id": {
|
|
"description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```",
|
|
"type": "string"
|
|
},
|
|
"member": {
|
|
"$ref": "#/definitions/PublicMember"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/PublicUser"
|
|
},
|
|
"locale": {
|
|
"type": "string"
|
|
},
|
|
"message": {
|
|
"$ref": "#/definitions/Message"
|
|
},
|
|
"app_permissions": {
|
|
"type": "string"
|
|
},
|
|
"entitlements": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true
|
|
}
|
|
},
|
|
"entitlement_sku_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"authorizing_integration_owners": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"patternProperties": {
|
|
"^[0-9]+$": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"context": {
|
|
"type": "integer"
|
|
},
|
|
"attachment_size_limit": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"app_permissions",
|
|
"application_id",
|
|
"attachment_size_limit",
|
|
"id",
|
|
"token",
|
|
"type",
|
|
"version"
|
|
],
|
|
"definitions": {
|
|
"InteractionType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5
|
|
]
|
|
},
|
|
"InteractionGuild": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```",
|
|
"type": "string"
|
|
},
|
|
"features": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"locale": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"features",
|
|
"id",
|
|
"locale"
|
|
]
|
|
},
|
|
"Channel": {
|
|
"type": "object",
|
|
"properties": {
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ChannelType"
|
|
},
|
|
"recipients": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Recipient"
|
|
}
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"parent_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"parent": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"owner_id": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"last_pin_timestamp": {
|
|
"type": "integer"
|
|
},
|
|
"default_auto_archive_duration": {
|
|
"type": "integer"
|
|
},
|
|
"permission_overwrites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwrite"
|
|
}
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
},
|
|
"bitrate": {
|
|
"type": "integer"
|
|
},
|
|
"user_limit": {
|
|
"type": "integer"
|
|
},
|
|
"nsfw": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"topic": {
|
|
"type": "string"
|
|
},
|
|
"invites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Invite"
|
|
}
|
|
},
|
|
"retention_policy_id": {
|
|
"type": "string"
|
|
},
|
|
"messages": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Message"
|
|
}
|
|
},
|
|
"voice_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/VoiceState"
|
|
}
|
|
},
|
|
"read_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ReadState"
|
|
}
|
|
},
|
|
"webhooks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Webhook"
|
|
}
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"position": {
|
|
"description": "Must be calculated Channel.calculatePosition",
|
|
"type": "integer"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"created_at",
|
|
"flags",
|
|
"id",
|
|
"nsfw",
|
|
"owner",
|
|
"parent_id",
|
|
"position",
|
|
"type"
|
|
]
|
|
},
|
|
"ChannelType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
33,
|
|
34,
|
|
35,
|
|
64,
|
|
255
|
|
]
|
|
},
|
|
"Recipient": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"closed": {
|
|
"type": "boolean"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"closed",
|
|
"id",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"User": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"theme_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"phone": {
|
|
"type": "string"
|
|
},
|
|
"desktop": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"mobile": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"premium": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_type": {
|
|
"type": "integer"
|
|
},
|
|
"bot": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"bio": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"system": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"nsfw_allowed": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"mfa_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"webauthn_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"totp_secret": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"totp_last_ticket": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"deleted": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"email": {
|
|
"type": "string"
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"public_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"purchased_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"premium_usage_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"rights": {
|
|
"type": "string"
|
|
},
|
|
"sessions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Session"
|
|
}
|
|
},
|
|
"relationships": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Relationship"
|
|
}
|
|
},
|
|
"connected_accounts": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ConnectedAccount"
|
|
}
|
|
},
|
|
"data": {
|
|
"type": "object",
|
|
"properties": {
|
|
"valid_tokens_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"hash": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"valid_tokens_since"
|
|
]
|
|
},
|
|
"fingerprints": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"settings": {
|
|
"$ref": "#/definitions/UserSettings"
|
|
},
|
|
"extended_settings": {
|
|
"type": "string",
|
|
"default": "{}"
|
|
},
|
|
"security_keys": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SecurityKey"
|
|
}
|
|
},
|
|
"badge_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"connected_accounts",
|
|
"created_at",
|
|
"data",
|
|
"deleted",
|
|
"desktop",
|
|
"disabled",
|
|
"discriminator",
|
|
"extended_settings",
|
|
"fingerprints",
|
|
"flags",
|
|
"id",
|
|
"mfa_enabled",
|
|
"mobile",
|
|
"nsfw_allowed",
|
|
"premium",
|
|
"premium_since",
|
|
"premium_type",
|
|
"premium_usage_flags",
|
|
"public_flags",
|
|
"purchased_flags",
|
|
"relationships",
|
|
"rights",
|
|
"security_keys",
|
|
"sessions",
|
|
"system",
|
|
"username",
|
|
"verified",
|
|
"webauthn_enabled"
|
|
]
|
|
},
|
|
"Session": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"client_info": {
|
|
"type": "object",
|
|
"properties": {
|
|
"client": {
|
|
"type": "string"
|
|
},
|
|
"os": {
|
|
"type": "string"
|
|
},
|
|
"version": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"client",
|
|
"os",
|
|
"version"
|
|
]
|
|
},
|
|
"client_status": {
|
|
"$ref": "#/definitions/ClientStatus"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"activities",
|
|
"client_info",
|
|
"client_status",
|
|
"id",
|
|
"session_id",
|
|
"status",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
]
|
|
},
|
|
"ClientStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"desktop": {
|
|
"type": "string"
|
|
},
|
|
"mobile": {
|
|
"type": "string"
|
|
},
|
|
"web": {
|
|
"type": "string"
|
|
},
|
|
"embedded": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Relationship": {
|
|
"type": "object",
|
|
"properties": {
|
|
"from_id": {
|
|
"type": "string"
|
|
},
|
|
"from": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"to_id": {
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"nickname": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/RelationshipType"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"from",
|
|
"from_id",
|
|
"id",
|
|
"to",
|
|
"to_id",
|
|
"type"
|
|
]
|
|
},
|
|
"RelationshipType": {
|
|
"type": "number",
|
|
"enum": [
|
|
4,
|
|
3,
|
|
2,
|
|
1
|
|
]
|
|
},
|
|
"ConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"external_id": {
|
|
"type": "string"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"friend_sync": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"revoked": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"show_activity": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"visibility": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"integrations": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"metadata_": {},
|
|
"metadata_visibility": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"two_way_link": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"token_data": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/ConnectedAccountTokenData"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"external_id",
|
|
"id",
|
|
"name",
|
|
"type",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"ConnectedAccountTokenData": {
|
|
"type": "object",
|
|
"properties": {
|
|
"access_token": {
|
|
"type": "string"
|
|
},
|
|
"token_type": {
|
|
"type": "string"
|
|
},
|
|
"scope": {
|
|
"type": "string"
|
|
},
|
|
"refresh_token": {
|
|
"type": "string"
|
|
},
|
|
"expires_in": {
|
|
"type": "integer"
|
|
},
|
|
"expires_at": {
|
|
"type": "integer"
|
|
},
|
|
"fetched_at": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"access_token",
|
|
"fetched_at"
|
|
]
|
|
},
|
|
"UserSettings": {
|
|
"type": "object",
|
|
"properties": {
|
|
"index": {
|
|
"type": "string"
|
|
},
|
|
"afk_timeout": {
|
|
"type": "integer",
|
|
"default": 3600
|
|
},
|
|
"allow_accessibility_detection": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"animate_emoji": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"animate_stickers": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"contact_sync_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"convert_emoticons": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"custom_status": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/CustomStatus"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"default_guilds_restricted": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"detect_platform_accounts": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"developer_mode": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"disable_games_tab": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"enable_tts_command": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"friend_discovery_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"friend_source_flags": {
|
|
"$ref": "#/definitions/FriendSourceFlags"
|
|
},
|
|
"gateway_connected": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"gif_auto_play": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"guild_folders": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/GuildFolder"
|
|
},
|
|
"default": []
|
|
},
|
|
"guild_positions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"inline_attachment_media": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"inline_embed_media": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"locale": {
|
|
"type": "string",
|
|
"default": "en-US"
|
|
},
|
|
"message_display_compact": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"native_phone_integration_enabled": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"render_embeds": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"render_reactions": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"restricted_guilds": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"show_current_game": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string",
|
|
"default": "online"
|
|
},
|
|
"stream_notifications_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"theme": {
|
|
"enum": [
|
|
"dark",
|
|
"light"
|
|
],
|
|
"type": "string",
|
|
"default": "dark"
|
|
},
|
|
"timezone_offset": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"view_nsfw_guilds": {
|
|
"type": "boolean",
|
|
"default": true
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk_timeout",
|
|
"allow_accessibility_detection",
|
|
"animate_emoji",
|
|
"animate_stickers",
|
|
"contact_sync_enabled",
|
|
"convert_emoticons",
|
|
"custom_status",
|
|
"default_guilds_restricted",
|
|
"detect_platform_accounts",
|
|
"developer_mode",
|
|
"disable_games_tab",
|
|
"enable_tts_command",
|
|
"explicit_content_filter",
|
|
"friend_discovery_flags",
|
|
"friend_source_flags",
|
|
"gateway_connected",
|
|
"gif_auto_play",
|
|
"guild_folders",
|
|
"guild_positions",
|
|
"index",
|
|
"inline_attachment_media",
|
|
"inline_embed_media",
|
|
"locale",
|
|
"message_display_compact",
|
|
"native_phone_integration_enabled",
|
|
"render_embeds",
|
|
"render_reactions",
|
|
"restricted_guilds",
|
|
"show_current_game",
|
|
"status",
|
|
"stream_notifications_enabled",
|
|
"theme",
|
|
"timezone_offset",
|
|
"view_nsfw_guilds"
|
|
]
|
|
},
|
|
"CustomStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"emoji_id": {
|
|
"type": "string"
|
|
},
|
|
"emoji_name": {
|
|
"type": "string"
|
|
},
|
|
"expires_at": {
|
|
"type": "integer"
|
|
},
|
|
"text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"FriendSourceFlags": {
|
|
"type": "object",
|
|
"properties": {
|
|
"all": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"all"
|
|
]
|
|
},
|
|
"GuildFolder": {
|
|
"type": "object",
|
|
"properties": {
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"guild_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"color",
|
|
"guild_ids",
|
|
"id",
|
|
"name"
|
|
]
|
|
},
|
|
"SecurityKey": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"key_id": {
|
|
"type": "string"
|
|
},
|
|
"public_key": {
|
|
"type": "string"
|
|
},
|
|
"counter": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"counter",
|
|
"id",
|
|
"key_id",
|
|
"name",
|
|
"public_key",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Guild": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"afk_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"afk_timeout": {
|
|
"type": "integer"
|
|
},
|
|
"bans": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Ban"
|
|
}
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"default_message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"discovery_splash": {
|
|
"type": "string"
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer"
|
|
},
|
|
"features": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"primary_category_id": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"large": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"max_members": {
|
|
"type": "integer"
|
|
},
|
|
"max_presences": {
|
|
"type": "integer"
|
|
},
|
|
"max_video_channel_users": {
|
|
"type": "integer"
|
|
},
|
|
"member_count": {
|
|
"type": "integer"
|
|
},
|
|
"presence_count": {
|
|
"type": "integer"
|
|
},
|
|
"members": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Member"
|
|
}
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Channel"
|
|
}
|
|
},
|
|
"template_id": {
|
|
"type": "string"
|
|
},
|
|
"template": {
|
|
"$ref": "#/definitions/Template"
|
|
},
|
|
"emojis": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Emoji"
|
|
}
|
|
},
|
|
"stickers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"invites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Invite"
|
|
}
|
|
},
|
|
"voice_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/VoiceState"
|
|
}
|
|
},
|
|
"webhooks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Webhook"
|
|
}
|
|
},
|
|
"mfa_level": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"owner_id": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"preferred_locale": {
|
|
"type": "string"
|
|
},
|
|
"premium_subscription_count": {
|
|
"type": "integer"
|
|
},
|
|
"premium_tier": {
|
|
"type": "integer"
|
|
},
|
|
"public_updates_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"public_updates_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"rules_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"rules_channel": {
|
|
"type": "string"
|
|
},
|
|
"region": {
|
|
"type": "string"
|
|
},
|
|
"splash": {
|
|
"type": "string"
|
|
},
|
|
"system_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"system_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"system_channel_flags": {
|
|
"type": "integer"
|
|
},
|
|
"unavailable": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"verification_level": {
|
|
"type": "integer"
|
|
},
|
|
"welcome_screen": {
|
|
"$ref": "#/definitions/GuildWelcomeScreen",
|
|
"description": "DEPRECATED: Look at the new Guild onboarding screens."
|
|
},
|
|
"widget_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"widget_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"widget_enabled": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"nsfw_level": {
|
|
"type": "integer"
|
|
},
|
|
"nsfw": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"parent": {
|
|
"type": "string"
|
|
},
|
|
"permissions": {
|
|
"type": "integer"
|
|
},
|
|
"premium_progress_bar_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"channel_ordering": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bans",
|
|
"channel_ordering",
|
|
"channels",
|
|
"emojis",
|
|
"features",
|
|
"id",
|
|
"invites",
|
|
"members",
|
|
"name",
|
|
"nsfw",
|
|
"premium_progress_bar_enabled",
|
|
"public_updates_channel_id",
|
|
"roles",
|
|
"stickers",
|
|
"template",
|
|
"unavailable",
|
|
"voice_states",
|
|
"webhooks",
|
|
"welcome_screen",
|
|
"widget_enabled"
|
|
]
|
|
},
|
|
"Ban": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"executor_id": {
|
|
"type": "string"
|
|
},
|
|
"executor": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"ip": {
|
|
"type": "string"
|
|
},
|
|
"reason": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"executor",
|
|
"executor_id",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"ip",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Member": {
|
|
"type": "object",
|
|
"properties": {
|
|
"index": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"nick": {
|
|
"type": "string"
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"joined_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"premium_since": {
|
|
"type": "integer"
|
|
},
|
|
"deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"mute": {
|
|
"type": "boolean"
|
|
},
|
|
"pending": {
|
|
"type": "boolean"
|
|
},
|
|
"settings": {
|
|
"$ref": "#/definitions/UserGuildSettings"
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"joined_by": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"theme_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"communication_disabled_until": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"banner",
|
|
"bio",
|
|
"communication_disabled_until",
|
|
"deaf",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"index",
|
|
"joined_at",
|
|
"joined_by",
|
|
"mute",
|
|
"pending",
|
|
"roles",
|
|
"settings",
|
|
"user"
|
|
]
|
|
},
|
|
"Role": {
|
|
"type": "object",
|
|
"properties": {
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"hoist": {
|
|
"type": "boolean"
|
|
},
|
|
"managed": {
|
|
"type": "boolean"
|
|
},
|
|
"mentionable": {
|
|
"type": "boolean"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"permissions": {
|
|
"type": "string"
|
|
},
|
|
"position": {
|
|
"type": "integer"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"unicode_emoji": {
|
|
"type": "string"
|
|
},
|
|
"tags": {
|
|
"type": "object",
|
|
"properties": {
|
|
"bot_id": {
|
|
"type": "string"
|
|
},
|
|
"integration_id": {
|
|
"type": "string"
|
|
},
|
|
"premium_subscriber": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"colors": {
|
|
"$ref": "#/definitions/RoleColors"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"color",
|
|
"colors",
|
|
"flags",
|
|
"guild",
|
|
"guild_id",
|
|
"hoist",
|
|
"id",
|
|
"managed",
|
|
"mentionable",
|
|
"name",
|
|
"permissions",
|
|
"position"
|
|
]
|
|
},
|
|
"RoleColors": {
|
|
"type": "object",
|
|
"properties": {
|
|
"primary_color": {
|
|
"type": "integer"
|
|
},
|
|
"secondary_color": {
|
|
"type": "integer"
|
|
},
|
|
"tertiary_color": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"primary_color"
|
|
]
|
|
},
|
|
"UserGuildSettings": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_overrides": {
|
|
"anyOf": [
|
|
{
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"$ref": "#/definitions/ChannelOverride"
|
|
}
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mobile_push": {
|
|
"type": "boolean"
|
|
},
|
|
"mute_config": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress_everyone": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress_roles": {
|
|
"type": "boolean"
|
|
},
|
|
"version": {
|
|
"type": "integer"
|
|
},
|
|
"guild_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"mute_scheduled_events": {
|
|
"type": "boolean"
|
|
},
|
|
"hide_muted_channels": {
|
|
"type": "boolean"
|
|
},
|
|
"notify_highlights": {
|
|
"type": "integer",
|
|
"const": 0
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_overrides",
|
|
"flags",
|
|
"guild_id",
|
|
"hide_muted_channels",
|
|
"message_notifications",
|
|
"mobile_push",
|
|
"mute_config",
|
|
"mute_scheduled_events",
|
|
"muted",
|
|
"notify_highlights",
|
|
"suppress_everyone",
|
|
"suppress_roles",
|
|
"version"
|
|
]
|
|
},
|
|
"ChannelOverride": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_id",
|
|
"message_notifications",
|
|
"mute_config",
|
|
"muted"
|
|
]
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"Template": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"usage_count": {
|
|
"type": "integer"
|
|
},
|
|
"creator_id": {
|
|
"type": "string"
|
|
},
|
|
"creator": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"updated_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"source_guild_id": {
|
|
"type": "string"
|
|
},
|
|
"source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"serialized_source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"code",
|
|
"created_at",
|
|
"creator",
|
|
"creator_id",
|
|
"id",
|
|
"name",
|
|
"serialized_source_guild",
|
|
"source_guild",
|
|
"source_guild_id",
|
|
"updated_at"
|
|
]
|
|
},
|
|
"Emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"animated": {
|
|
"type": "boolean"
|
|
},
|
|
"available": {
|
|
"type": "boolean"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"managed": {
|
|
"type": "boolean"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"require_colons": {
|
|
"type": "boolean"
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"groups": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"available",
|
|
"groups",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"managed",
|
|
"name",
|
|
"require_colons",
|
|
"roles",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Sticker": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"available": {
|
|
"type": "boolean"
|
|
},
|
|
"tags": {
|
|
"type": "string"
|
|
},
|
|
"pack_id": {
|
|
"type": "string"
|
|
},
|
|
"pack": {
|
|
"$ref": "#/definitions/StickerPack"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/StickerType"
|
|
},
|
|
"format_type": {
|
|
"$ref": "#/definitions/StickerFormatType"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"format_type",
|
|
"id",
|
|
"name",
|
|
"pack",
|
|
"type"
|
|
]
|
|
},
|
|
"StickerPack": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"banner_asset_id": {
|
|
"type": "string"
|
|
},
|
|
"stickers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"cover_sticker_id": {
|
|
"type": "string"
|
|
},
|
|
"cover_sticker": {
|
|
"$ref": "#/definitions/Sticker"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"stickers"
|
|
]
|
|
},
|
|
"StickerType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"StickerFormatType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4
|
|
]
|
|
},
|
|
"Invite": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "string"
|
|
},
|
|
"temporary": {
|
|
"type": "boolean"
|
|
},
|
|
"uses": {
|
|
"type": "integer"
|
|
},
|
|
"max_uses": {
|
|
"type": "integer"
|
|
},
|
|
"max_age": {
|
|
"type": "integer"
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"expires_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"inviter_id": {
|
|
"type": "string"
|
|
},
|
|
"inviter": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"target_user_id": {
|
|
"type": "string"
|
|
},
|
|
"target_user": {
|
|
"type": "string"
|
|
},
|
|
"target_user_type": {
|
|
"type": "integer"
|
|
},
|
|
"vanity_url": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"code",
|
|
"created_at",
|
|
"flags",
|
|
"guild",
|
|
"guild_id",
|
|
"inviter",
|
|
"max_age",
|
|
"max_uses",
|
|
"target_user_id",
|
|
"temporary",
|
|
"uses"
|
|
]
|
|
},
|
|
"VoiceState": {
|
|
"type": "object",
|
|
"properties": {
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"member": {
|
|
"$ref": "#/definitions/Member"
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
},
|
|
"token": {
|
|
"type": "string"
|
|
},
|
|
"deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"mute": {
|
|
"type": "boolean"
|
|
},
|
|
"self_deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"self_mute": {
|
|
"type": "boolean"
|
|
},
|
|
"self_stream": {
|
|
"type": "boolean"
|
|
},
|
|
"self_video": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress": {
|
|
"type": "boolean"
|
|
},
|
|
"request_to_speak_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"deaf",
|
|
"guild_id",
|
|
"id",
|
|
"member",
|
|
"mute",
|
|
"self_deaf",
|
|
"self_mute",
|
|
"self_video",
|
|
"session_id",
|
|
"suppress",
|
|
"token",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Webhook": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/WebhookType"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"token": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"application": {
|
|
"$ref": "#/definitions/Application"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"source_guild_id": {
|
|
"type": "string"
|
|
},
|
|
"source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"source_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"source_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"application",
|
|
"application_id",
|
|
"avatar",
|
|
"channel",
|
|
"channel_id",
|
|
"id",
|
|
"name",
|
|
"source_channel",
|
|
"source_channel_id",
|
|
"type",
|
|
"url",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"WebhookType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3
|
|
]
|
|
},
|
|
"Application": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"summary": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"type": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true
|
|
},
|
|
"hook": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"bot_public": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"bot_require_code_grant": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"verify_key": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"redirect_uris": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"rpc_application_state": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"store_application_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"verification_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"interactions_endpoint_url": {
|
|
"type": "string"
|
|
},
|
|
"integration_public": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"integration_require_code_grant": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"discoverability_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"discovery_eligibility_flags": {
|
|
"type": "integer",
|
|
"default": 2240
|
|
},
|
|
"bot": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"tags": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"cover_image": {
|
|
"type": "string"
|
|
},
|
|
"install_params": {
|
|
"type": "object",
|
|
"properties": {
|
|
"scopes": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"permissions": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"permissions",
|
|
"scopes"
|
|
]
|
|
},
|
|
"terms_of_service_url": {
|
|
"type": "string"
|
|
},
|
|
"privacy_policy_url": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"custom_install_url": {
|
|
"type": "string"
|
|
},
|
|
"team": {
|
|
"$ref": "#/definitions/Team"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"description",
|
|
"discoverability_state",
|
|
"discovery_eligibility_flags",
|
|
"flags",
|
|
"hook",
|
|
"id",
|
|
"integration_public",
|
|
"integration_require_code_grant",
|
|
"name",
|
|
"owner",
|
|
"redirect_uris",
|
|
"rpc_application_state",
|
|
"store_application_state",
|
|
"summary",
|
|
"verification_state",
|
|
"verify_key"
|
|
]
|
|
},
|
|
"Team": {
|
|
"type": "object",
|
|
"properties": {
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"members": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/TeamMember"
|
|
}
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"owner_user_id": {
|
|
"type": "string"
|
|
},
|
|
"owner_user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"members",
|
|
"name",
|
|
"owner_user",
|
|
"owner_user_id"
|
|
]
|
|
},
|
|
"TeamMember": {
|
|
"type": "object",
|
|
"properties": {
|
|
"membership_state": {
|
|
"$ref": "#/definitions/TeamMemberState"
|
|
},
|
|
"permissions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"role": {
|
|
"$ref": "#/definitions/TeamMemberRole"
|
|
},
|
|
"team_id": {
|
|
"type": "string"
|
|
},
|
|
"team": {
|
|
"$ref": "#/definitions/Team"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"membership_state",
|
|
"permissions",
|
|
"role",
|
|
"team",
|
|
"team_id",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"TeamMemberState": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"TeamMemberRole": {
|
|
"type": "string",
|
|
"enum": [
|
|
"admin",
|
|
"developer",
|
|
"read_only"
|
|
]
|
|
},
|
|
"GuildWelcomeScreen": {
|
|
"type": "object",
|
|
"properties": {
|
|
"enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"welcome_channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"emoji_id": {
|
|
"type": "string"
|
|
},
|
|
"emoji_name": {
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_id",
|
|
"description"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"description",
|
|
"enabled",
|
|
"welcome_channels"
|
|
]
|
|
},
|
|
"ChannelPermissionOverwrite": {
|
|
"type": "object",
|
|
"properties": {
|
|
"allow": {
|
|
"type": "string"
|
|
},
|
|
"deny": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"allow",
|
|
"deny",
|
|
"id",
|
|
"type"
|
|
]
|
|
},
|
|
"ChannelPermissionOverwriteType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"Message": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"author_id": {
|
|
"type": "string"
|
|
},
|
|
"author": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"member_id": {
|
|
"type": "string"
|
|
},
|
|
"member": {
|
|
"$ref": "#/definitions/Member"
|
|
},
|
|
"webhook_id": {
|
|
"type": "string"
|
|
},
|
|
"webhook": {
|
|
"$ref": "#/definitions/Webhook"
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"application": {
|
|
"$ref": "#/definitions/Application"
|
|
},
|
|
"content": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"edited_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"tts": {
|
|
"type": "boolean"
|
|
},
|
|
"mention_everyone": {
|
|
"type": "boolean"
|
|
},
|
|
"mentions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/User"
|
|
}
|
|
},
|
|
"mention_roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"mention_channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Channel"
|
|
}
|
|
},
|
|
"sticker_items": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"attachments": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Attachment"
|
|
}
|
|
},
|
|
"embeds": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Embed"
|
|
}
|
|
},
|
|
"reactions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Reaction"
|
|
}
|
|
},
|
|
"nonce": {
|
|
"type": "string"
|
|
},
|
|
"pinned_at": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"pinned": {
|
|
"type": "boolean"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/MessageType"
|
|
},
|
|
"activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "integer"
|
|
},
|
|
"party_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"party_id",
|
|
"type"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"message_reference": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"message_id"
|
|
]
|
|
},
|
|
"referenced_message": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/Message"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"interaction": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/InteractionType"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"type"
|
|
]
|
|
},
|
|
"interaction_metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/InteractionType"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"authorizing_integration_owners": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"command_type": {
|
|
"$ref": "#/definitions/ApplicationCommandType"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"authorizing_integration_owners",
|
|
"command_type",
|
|
"id",
|
|
"name",
|
|
"type",
|
|
"user_id"
|
|
]
|
|
},
|
|
"components": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ActionRowComponent"
|
|
}
|
|
},
|
|
"poll": {
|
|
"$ref": "#/definitions/Poll"
|
|
},
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"embeds",
|
|
"flags",
|
|
"id",
|
|
"mention_channels",
|
|
"mention_roles",
|
|
"mentions",
|
|
"pinned",
|
|
"reactions",
|
|
"timestamp",
|
|
"type"
|
|
]
|
|
},
|
|
"Attachment": {
|
|
"type": "object",
|
|
"properties": {
|
|
"filename": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "integer"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
},
|
|
"content_type": {
|
|
"type": "string"
|
|
},
|
|
"message_id": {
|
|
"type": "string"
|
|
},
|
|
"message": {
|
|
"$ref": "#/definitions/Message"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"filename",
|
|
"id",
|
|
"message",
|
|
"message_id",
|
|
"proxy_url",
|
|
"size",
|
|
"url"
|
|
]
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"Reaction": {
|
|
"type": "object",
|
|
"properties": {
|
|
"count": {
|
|
"type": "integer"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"user_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"count",
|
|
"emoji",
|
|
"user_ids"
|
|
]
|
|
},
|
|
"PartialEmoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name"
|
|
]
|
|
},
|
|
"MessageType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
16,
|
|
19,
|
|
20,
|
|
41,
|
|
42,
|
|
43,
|
|
50,
|
|
63,
|
|
255
|
|
]
|
|
},
|
|
"ApplicationCommandType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4
|
|
]
|
|
},
|
|
"ActionRowComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.ActionRow"
|
|
},
|
|
"components": {
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/ButtonComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/SelectMenuComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/StringSelectMenuComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/TextInputComponent"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"components",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.ActionRow": {
|
|
"type": "number",
|
|
"const": 1
|
|
},
|
|
"ButtonComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.Button"
|
|
},
|
|
"style": {
|
|
"$ref": "#/definitions/ButtonStyle"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"sku_id": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"style",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.Button": {
|
|
"type": "number",
|
|
"const": 2
|
|
},
|
|
"ButtonStyle": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6
|
|
]
|
|
},
|
|
"SelectMenuComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": [
|
|
3,
|
|
5,
|
|
6,
|
|
7,
|
|
8
|
|
],
|
|
"type": "number"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_types": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
},
|
|
"default_values": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuDefaultOption"
|
|
}
|
|
},
|
|
"min_values": {
|
|
"type": "integer"
|
|
},
|
|
"max_values": {
|
|
"type": "integer"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"type"
|
|
]
|
|
},
|
|
"SelectMenuDefaultOption": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"channel",
|
|
"role",
|
|
"user"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"type"
|
|
]
|
|
},
|
|
"StringSelectMenuComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.StringSelect"
|
|
},
|
|
"options": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuOption"
|
|
}
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_types": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
},
|
|
"default_values": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuDefaultOption"
|
|
}
|
|
},
|
|
"min_values": {
|
|
"type": "integer"
|
|
},
|
|
"max_values": {
|
|
"type": "integer"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"options",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.StringSelect": {
|
|
"type": "number",
|
|
"const": 3
|
|
},
|
|
"SelectMenuOption": {
|
|
"type": "object",
|
|
"properties": {
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"default": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"label",
|
|
"value"
|
|
]
|
|
},
|
|
"TextInputComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.TextInput"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"style": {
|
|
"$ref": "#/definitions/TextInputStyle"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"min_length": {
|
|
"type": "integer"
|
|
},
|
|
"max_length": {
|
|
"type": "integer"
|
|
},
|
|
"required": {
|
|
"type": "boolean"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"label",
|
|
"style",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.TextInput": {
|
|
"type": "number",
|
|
"const": 4
|
|
},
|
|
"TextInputStyle": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"Poll": {
|
|
"type": "object",
|
|
"properties": {
|
|
"question": {
|
|
"$ref": "#/definitions/PollMedia"
|
|
},
|
|
"answers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/PollAnswer"
|
|
}
|
|
},
|
|
"expiry": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"allow_multiselect": {
|
|
"type": "boolean"
|
|
},
|
|
"results": {
|
|
"$ref": "#/definitions/PollResult"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"allow_multiselect",
|
|
"answers",
|
|
"expiry",
|
|
"question"
|
|
]
|
|
},
|
|
"PollMedia": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"PollAnswer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"answer_id": {
|
|
"type": "string"
|
|
},
|
|
"poll_media": {
|
|
"$ref": "#/definitions/PollMedia"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"poll_media"
|
|
]
|
|
},
|
|
"PollResult": {
|
|
"type": "object",
|
|
"properties": {
|
|
"is_finalized": {
|
|
"type": "boolean"
|
|
},
|
|
"answer_counts": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/PollAnswerCount"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"answer_counts",
|
|
"is_finalized"
|
|
]
|
|
},
|
|
"PollAnswerCount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"count": {
|
|
"type": "integer"
|
|
},
|
|
"me_voted": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"count",
|
|
"id",
|
|
"me_voted"
|
|
]
|
|
},
|
|
"ReadState": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"public_ack": {
|
|
"type": "string"
|
|
},
|
|
"notifications_cursor": {
|
|
"type": "string"
|
|
},
|
|
"last_pin_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"mention_count": {
|
|
"type": "integer"
|
|
},
|
|
"manual": {
|
|
"type": "boolean"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"id",
|
|
"last_message_id",
|
|
"manual",
|
|
"mention_count",
|
|
"notifications_cursor",
|
|
"public_ack",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"PublicMember": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"mute": {
|
|
"type": "boolean"
|
|
},
|
|
"deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"nick": {
|
|
"type": "string"
|
|
},
|
|
"joined_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"pending": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_since": {
|
|
"type": "integer"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/PublicUser"
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"deaf",
|
|
"guild_id",
|
|
"id",
|
|
"joined_at",
|
|
"mute",
|
|
"pending",
|
|
"roles",
|
|
"user"
|
|
]
|
|
},
|
|
"PublicUser": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```",
|
|
"type": "string"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_type": {
|
|
"type": "integer"
|
|
},
|
|
"theme_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"badge_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"discriminator",
|
|
"id",
|
|
"premium_since",
|
|
"premium_type",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"ApplicationCreateSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"team_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"ApplicationModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"cover_image": {
|
|
"type": "string"
|
|
},
|
|
"interactions_endpoint_url": {
|
|
"type": "string"
|
|
},
|
|
"max_participants": {
|
|
"type": [
|
|
"null",
|
|
"integer"
|
|
]
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"privacy_policy_url": {
|
|
"type": "string"
|
|
},
|
|
"role_connections_verification_url": {
|
|
"type": "string"
|
|
},
|
|
"tags": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"terms_of_service_url": {
|
|
"type": "string"
|
|
},
|
|
"bot_public": {
|
|
"type": "boolean"
|
|
},
|
|
"bot_require_code_grant": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"custom_install_url": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"SendableApplicationCommandDataSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"$ref": "#/definitions/Snowflake"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4
|
|
],
|
|
"type": "number"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"version": {
|
|
"$ref": "#/definitions/Snowflake"
|
|
},
|
|
"application_command": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true
|
|
},
|
|
"options": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ApplicationCommandOption"
|
|
}
|
|
},
|
|
"target_id": {
|
|
"description": "A container for useful snowflake-related methods.",
|
|
"$ref": "#/definitions/Snowflake"
|
|
},
|
|
"attachments": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"version"
|
|
],
|
|
"definitions": {
|
|
"Snowflake": {
|
|
"description": "A container for useful snowflake-related methods.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"ApplicationCommandOption": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/ApplicationCommandOptionType"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"required": {
|
|
"type": "boolean"
|
|
},
|
|
"choices": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ApplicationCommandOptionChoice"
|
|
}
|
|
},
|
|
"options": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ApplicationCommandOption"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"description",
|
|
"name",
|
|
"type"
|
|
]
|
|
},
|
|
"ApplicationCommandOptionType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8
|
|
]
|
|
},
|
|
"ApplicationCommandOptionChoice": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": [
|
|
"string",
|
|
"integer"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"SendableMessageComponentDataSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"component_type": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8
|
|
],
|
|
"type": "number"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4
|
|
],
|
|
"type": "number"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"values": {
|
|
"anyOf": [
|
|
{
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Snowflake"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id"
|
|
],
|
|
"definitions": {
|
|
"Snowflake": {
|
|
"description": "A container for useful snowflake-related methods.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"SendableModalSubmitDataSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"$ref": "#/definitions/Snowflake"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"attachments": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/UploadAttachmentRequestSchema"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"id"
|
|
],
|
|
"definitions": {
|
|
"Snowflake": {
|
|
"description": "A container for useful snowflake-related methods.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"UploadAttachmentRequestSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"files": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/UploadAttachmentRequest"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"files"
|
|
]
|
|
},
|
|
"UploadAttachmentRequest": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"filename": {
|
|
"type": "string"
|
|
},
|
|
"file_size": {
|
|
"type": "integer"
|
|
},
|
|
"is_clip": {
|
|
"type": "boolean"
|
|
},
|
|
"original_content_type": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"file_size",
|
|
"filename"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"GuildProfileResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"icon_hash": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"member_count": {
|
|
"type": "integer"
|
|
},
|
|
"online_count": {
|
|
"type": "integer"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"brand_color_primary": {
|
|
"type": "string"
|
|
},
|
|
"banner_hash": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"game_application_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"game_activity": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"$ref": "#/definitions/GameActivity"
|
|
}
|
|
},
|
|
"tag": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"badge": {
|
|
"$ref": "#/definitions/GuildBadgeType"
|
|
},
|
|
"badge_color_primary": {
|
|
"type": "string"
|
|
},
|
|
"badge_color_secondary": {
|
|
"type": "string"
|
|
},
|
|
"badge_hash": {
|
|
"type": "string"
|
|
},
|
|
"traits": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/GuildTrait"
|
|
}
|
|
},
|
|
"features": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"visibility": {
|
|
"$ref": "#/definitions/GuildVisibilityLevel"
|
|
},
|
|
"custom_banner_hash": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"premium_subscription_count": {
|
|
"type": "integer"
|
|
},
|
|
"premium_tier": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"badge",
|
|
"badge_color_primary",
|
|
"badge_color_secondary",
|
|
"badge_hash",
|
|
"banner_hash",
|
|
"brand_color_primary",
|
|
"custom_banner_hash",
|
|
"description",
|
|
"features",
|
|
"game_activity",
|
|
"game_application_ids",
|
|
"icon_hash",
|
|
"id",
|
|
"member_count",
|
|
"name",
|
|
"online_count",
|
|
"premium_subscription_count",
|
|
"premium_tier",
|
|
"tag",
|
|
"traits",
|
|
"visibility"
|
|
],
|
|
"definitions": {
|
|
"GameActivity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"activity_level": {
|
|
"type": "integer"
|
|
},
|
|
"activity_score": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"activity_level",
|
|
"activity_score"
|
|
]
|
|
},
|
|
"GuildBadgeType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
16,
|
|
17,
|
|
18,
|
|
19,
|
|
20,
|
|
21,
|
|
22,
|
|
23,
|
|
24,
|
|
25,
|
|
26,
|
|
27,
|
|
28,
|
|
29,
|
|
30
|
|
]
|
|
},
|
|
"GuildTrait": {
|
|
"type": "object",
|
|
"properties": {
|
|
"emoji_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"emoji_name": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"emoji_animated": {
|
|
"type": "boolean"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"position": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"emoji_animated",
|
|
"emoji_id",
|
|
"emoji_name",
|
|
"label",
|
|
"position"
|
|
]
|
|
},
|
|
"GuildVisibilityLevel": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"GuildAvailableSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```",
|
|
"type": "string"
|
|
},
|
|
"available": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"available",
|
|
"id"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"UserSettingsUpdateSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk_timeout": {
|
|
"type": "integer"
|
|
},
|
|
"allow_accessibility_detection": {
|
|
"type": "boolean"
|
|
},
|
|
"animate_emoji": {
|
|
"type": "boolean"
|
|
},
|
|
"animate_stickers": {
|
|
"type": "integer"
|
|
},
|
|
"contact_sync_enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"convert_emoticons": {
|
|
"type": "boolean"
|
|
},
|
|
"custom_status": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/CustomStatus"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"default_guilds_restricted": {
|
|
"type": "boolean"
|
|
},
|
|
"detect_platform_accounts": {
|
|
"type": "boolean"
|
|
},
|
|
"developer_mode": {
|
|
"type": "boolean"
|
|
},
|
|
"disable_games_tab": {
|
|
"type": "boolean"
|
|
},
|
|
"enable_tts_command": {
|
|
"type": "boolean"
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer"
|
|
},
|
|
"friend_discovery_flags": {
|
|
"type": "integer"
|
|
},
|
|
"friend_source_flags": {
|
|
"$ref": "#/definitions/FriendSourceFlags"
|
|
},
|
|
"gateway_connected": {
|
|
"type": "boolean"
|
|
},
|
|
"gif_auto_play": {
|
|
"type": "boolean"
|
|
},
|
|
"guild_folders": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/GuildFolder"
|
|
}
|
|
},
|
|
"guild_positions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"inline_attachment_media": {
|
|
"type": "boolean"
|
|
},
|
|
"inline_embed_media": {
|
|
"type": "boolean"
|
|
},
|
|
"locale": {
|
|
"type": "string"
|
|
},
|
|
"message_display_compact": {
|
|
"type": "boolean"
|
|
},
|
|
"native_phone_integration_enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"render_embeds": {
|
|
"type": "boolean"
|
|
},
|
|
"render_reactions": {
|
|
"type": "boolean"
|
|
},
|
|
"restricted_guilds": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"show_current_game": {
|
|
"type": "boolean"
|
|
},
|
|
"status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"stream_notifications_enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"theme": {
|
|
"enum": [
|
|
"dark",
|
|
"light"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"timezone_offset": {
|
|
"type": "integer"
|
|
},
|
|
"view_nsfw_guilds": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"definitions": {
|
|
"CustomStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"emoji_id": {
|
|
"type": "string"
|
|
},
|
|
"emoji_name": {
|
|
"type": "string"
|
|
},
|
|
"expires_at": {
|
|
"type": "integer"
|
|
},
|
|
"text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"FriendSourceFlags": {
|
|
"type": "object",
|
|
"properties": {
|
|
"all": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"all"
|
|
]
|
|
},
|
|
"GuildFolder": {
|
|
"type": "object",
|
|
"properties": {
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"guild_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"color",
|
|
"guild_ids",
|
|
"id",
|
|
"name"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"UserSettingsSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk_timeout": {
|
|
"type": "integer"
|
|
},
|
|
"allow_accessibility_detection": {
|
|
"type": "boolean"
|
|
},
|
|
"animate_emoji": {
|
|
"type": "boolean"
|
|
},
|
|
"animate_stickers": {
|
|
"type": "integer"
|
|
},
|
|
"contact_sync_enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"convert_emoticons": {
|
|
"type": "boolean"
|
|
},
|
|
"custom_status": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/CustomStatus"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"default_guilds_restricted": {
|
|
"type": "boolean"
|
|
},
|
|
"detect_platform_accounts": {
|
|
"type": "boolean"
|
|
},
|
|
"developer_mode": {
|
|
"type": "boolean"
|
|
},
|
|
"disable_games_tab": {
|
|
"type": "boolean"
|
|
},
|
|
"enable_tts_command": {
|
|
"type": "boolean"
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer"
|
|
},
|
|
"friend_discovery_flags": {
|
|
"type": "integer"
|
|
},
|
|
"friend_source_flags": {
|
|
"$ref": "#/definitions/FriendSourceFlags"
|
|
},
|
|
"gateway_connected": {
|
|
"type": "boolean"
|
|
},
|
|
"gif_auto_play": {
|
|
"type": "boolean"
|
|
},
|
|
"guild_folders": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/GuildFolder"
|
|
}
|
|
},
|
|
"guild_positions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"inline_attachment_media": {
|
|
"type": "boolean"
|
|
},
|
|
"inline_embed_media": {
|
|
"type": "boolean"
|
|
},
|
|
"locale": {
|
|
"type": "string"
|
|
},
|
|
"message_display_compact": {
|
|
"type": "boolean"
|
|
},
|
|
"native_phone_integration_enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"render_embeds": {
|
|
"type": "boolean"
|
|
},
|
|
"render_reactions": {
|
|
"type": "boolean"
|
|
},
|
|
"restricted_guilds": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"show_current_game": {
|
|
"type": "boolean"
|
|
},
|
|
"status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"stream_notifications_enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"theme": {
|
|
"enum": [
|
|
"dark",
|
|
"light"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"timezone_offset": {
|
|
"type": "integer"
|
|
},
|
|
"view_nsfw_guilds": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk_timeout",
|
|
"allow_accessibility_detection",
|
|
"animate_emoji",
|
|
"animate_stickers",
|
|
"contact_sync_enabled",
|
|
"convert_emoticons",
|
|
"custom_status",
|
|
"default_guilds_restricted",
|
|
"detect_platform_accounts",
|
|
"developer_mode",
|
|
"disable_games_tab",
|
|
"enable_tts_command",
|
|
"explicit_content_filter",
|
|
"friend_discovery_flags",
|
|
"friend_source_flags",
|
|
"gateway_connected",
|
|
"gif_auto_play",
|
|
"guild_folders",
|
|
"guild_positions",
|
|
"inline_attachment_media",
|
|
"inline_embed_media",
|
|
"locale",
|
|
"message_display_compact",
|
|
"native_phone_integration_enabled",
|
|
"render_embeds",
|
|
"render_reactions",
|
|
"restricted_guilds",
|
|
"show_current_game",
|
|
"status",
|
|
"stream_notifications_enabled",
|
|
"theme",
|
|
"timezone_offset",
|
|
"view_nsfw_guilds"
|
|
],
|
|
"definitions": {
|
|
"CustomStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"emoji_id": {
|
|
"type": "string"
|
|
},
|
|
"emoji_name": {
|
|
"type": "string"
|
|
},
|
|
"expires_at": {
|
|
"type": "integer"
|
|
},
|
|
"text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"FriendSourceFlags": {
|
|
"type": "object",
|
|
"properties": {
|
|
"all": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"all"
|
|
]
|
|
},
|
|
"GuildFolder": {
|
|
"type": "object",
|
|
"properties": {
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"guild_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"color",
|
|
"guild_ids",
|
|
"id",
|
|
"name"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"IdentifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"token": {
|
|
"type": "string"
|
|
},
|
|
"properties": {
|
|
"type": "object",
|
|
"properties": {
|
|
"os": {
|
|
"type": "string"
|
|
},
|
|
"os_atch": {
|
|
"type": "string"
|
|
},
|
|
"browser": {
|
|
"type": "string"
|
|
},
|
|
"device": {
|
|
"type": "string"
|
|
},
|
|
"$os": {
|
|
"type": "string"
|
|
},
|
|
"$browser": {
|
|
"type": "string"
|
|
},
|
|
"$device": {
|
|
"type": "string"
|
|
},
|
|
"browser_user_agent": {
|
|
"type": "string"
|
|
},
|
|
"browser_version": {
|
|
"type": "string"
|
|
},
|
|
"os_version": {
|
|
"type": "string"
|
|
},
|
|
"referrer": {
|
|
"type": "string"
|
|
},
|
|
"referring_domain": {
|
|
"type": "string"
|
|
},
|
|
"referrer_current": {
|
|
"type": "string"
|
|
},
|
|
"referring_domain_current": {
|
|
"type": "string"
|
|
},
|
|
"release_channel": {
|
|
"enum": [
|
|
"canary",
|
|
"dev",
|
|
"ptb",
|
|
"stable"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"client_build_number": {
|
|
"type": "integer"
|
|
},
|
|
"client_event_source": {
|
|
"type": "string"
|
|
},
|
|
"client_version": {
|
|
"type": "string"
|
|
},
|
|
"system_locale": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"intents": {
|
|
"type": "bigint"
|
|
},
|
|
"presence": {
|
|
"$ref": "#/definitions/ActivitySchema"
|
|
},
|
|
"compress": {
|
|
"type": "boolean"
|
|
},
|
|
"large_threshold": {
|
|
"type": "integer"
|
|
},
|
|
"largeThreshold": {
|
|
"type": "integer"
|
|
},
|
|
"shard": {
|
|
"minItems": 2,
|
|
"maxItems": 2,
|
|
"type": "array",
|
|
"items": {
|
|
"type": "bigint"
|
|
}
|
|
},
|
|
"guild_subscriptions": {
|
|
"type": "boolean"
|
|
},
|
|
"capabilities": {
|
|
"type": "integer"
|
|
},
|
|
"client_state": {
|
|
"type": "object",
|
|
"properties": {
|
|
"guild_hashes": {},
|
|
"highest_last_message_id": {
|
|
"type": "integer"
|
|
},
|
|
"read_state_version": {
|
|
"type": "integer"
|
|
},
|
|
"user_guild_settings_version": {
|
|
"type": "integer"
|
|
},
|
|
"user_settings_version": {
|
|
"type": "integer"
|
|
},
|
|
"useruser_guild_settings_version": {
|
|
"type": "integer"
|
|
},
|
|
"private_channels_version": {
|
|
"type": "integer"
|
|
},
|
|
"guild_versions": {},
|
|
"api_code_version": {
|
|
"type": "integer"
|
|
},
|
|
"initial_guild_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"clientState": {
|
|
"type": "object",
|
|
"properties": {
|
|
"guildHashes": {},
|
|
"highestLastMessageId": {
|
|
"type": [
|
|
"string",
|
|
"integer"
|
|
]
|
|
},
|
|
"readStateVersion": {
|
|
"type": "integer"
|
|
},
|
|
"userGuildSettingsVersion": {
|
|
"type": "integer"
|
|
},
|
|
"useruserGuildSettingsVersion": {
|
|
"type": "integer"
|
|
},
|
|
"guildVersions": {},
|
|
"apiCodeVersion": {
|
|
"type": "integer"
|
|
},
|
|
"initialGuildId": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"v": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"properties",
|
|
"token"
|
|
],
|
|
"definitions": {
|
|
"ActivitySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk": {
|
|
"type": "boolean"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"since": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"status"
|
|
]
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"StreamCreateSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": [
|
|
"call",
|
|
"guild"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"preferred_region": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_id",
|
|
"type"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"StreamDeleteSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"stream_key": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"stream_key"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"StreamWatchSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"stream_key": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"stream_key"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"APIErrorResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "integer"
|
|
},
|
|
"message": {
|
|
"type": "string"
|
|
},
|
|
"errors": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": "object",
|
|
"properties": {
|
|
"_errors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message": {
|
|
"type": "string"
|
|
},
|
|
"code": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"code",
|
|
"message"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"_errors"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"code",
|
|
"errors",
|
|
"message"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"CaptchaRequiredResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"captcha_key": {
|
|
"type": "string"
|
|
},
|
|
"captcha_sitekey": {
|
|
"type": "string"
|
|
},
|
|
"captcha_service": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"captcha_key",
|
|
"captcha_service",
|
|
"captcha_sitekey"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"APIErrorOrCaptchaResponse": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/APIErrorResponse"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/CaptchaRequiredResponse"
|
|
}
|
|
],
|
|
"definitions": {
|
|
"APIErrorResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "integer"
|
|
},
|
|
"message": {
|
|
"type": "string"
|
|
},
|
|
"errors": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": "object",
|
|
"properties": {
|
|
"_errors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message": {
|
|
"type": "string"
|
|
},
|
|
"code": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"code",
|
|
"message"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"_errors"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"code",
|
|
"errors",
|
|
"message"
|
|
]
|
|
},
|
|
"CaptchaRequiredResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"captcha_key": {
|
|
"type": "string"
|
|
},
|
|
"captcha_sitekey": {
|
|
"type": "string"
|
|
},
|
|
"captcha_service": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"captcha_key",
|
|
"captcha_service",
|
|
"captcha_sitekey"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"AccountStandingResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"classifications": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Classification"
|
|
}
|
|
},
|
|
"guild_classifications": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/GuildClassification"
|
|
}
|
|
},
|
|
"account_standing": {
|
|
"type": "object",
|
|
"properties": {
|
|
"state": {
|
|
"$ref": "#/definitions/AccountStandingState"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"state"
|
|
]
|
|
},
|
|
"is_dsa_eligible": {
|
|
"type": "boolean"
|
|
},
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"is_appeal_eligible": {
|
|
"type": "boolean"
|
|
},
|
|
"appeal_eligibility": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/AppealEligibility"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"account_standing",
|
|
"appeal_eligibility",
|
|
"classifications",
|
|
"discriminator",
|
|
"guild_classifications",
|
|
"is_appeal_eligible",
|
|
"is_dsa_eligible",
|
|
"username"
|
|
],
|
|
"definitions": {
|
|
"Classification": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"classification_type": {
|
|
"$ref": "#/definitions/ClassificationType"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"explainer_link": {
|
|
"type": "string"
|
|
},
|
|
"actions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ClassificationAction"
|
|
}
|
|
},
|
|
"max_expiration_time": {
|
|
"type": "string"
|
|
},
|
|
"flagged_content": {
|
|
"type": "array",
|
|
"items": {}
|
|
},
|
|
"appeal_status": {
|
|
"$ref": "#/definitions/AppealStatus"
|
|
},
|
|
"is_coppa": {
|
|
"type": "boolean"
|
|
},
|
|
"is_spam": {
|
|
"type": "boolean"
|
|
},
|
|
"appeal_ingestion_type": {
|
|
"$ref": "#/definitions/AppealIngestionType"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"actions",
|
|
"appeal_ingestion_type",
|
|
"appeal_status",
|
|
"classification_type",
|
|
"description",
|
|
"explainer_link",
|
|
"flagged_content",
|
|
"id",
|
|
"is_coppa",
|
|
"is_spam",
|
|
"max_expiration_time"
|
|
]
|
|
},
|
|
"ClassificationType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
100,
|
|
200,
|
|
210,
|
|
220,
|
|
230,
|
|
240,
|
|
250,
|
|
280,
|
|
290,
|
|
310,
|
|
320,
|
|
390,
|
|
600,
|
|
650,
|
|
711,
|
|
720,
|
|
3010,
|
|
3030,
|
|
4000,
|
|
4010,
|
|
4130,
|
|
4140,
|
|
5010,
|
|
5090,
|
|
5305,
|
|
5411,
|
|
5440,
|
|
5485
|
|
]
|
|
},
|
|
"ClassificationAction": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"action_type": {
|
|
"$ref": "#/definitions/ClassificationActionType"
|
|
},
|
|
"descriptions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"action_type",
|
|
"descriptions",
|
|
"id"
|
|
]
|
|
},
|
|
"ClassificationActionType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
16,
|
|
20,
|
|
22
|
|
]
|
|
},
|
|
"AppealStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"status": {
|
|
"$ref": "#/definitions/AppealStatusValue"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"status"
|
|
]
|
|
},
|
|
"AppealStatusValue": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3
|
|
]
|
|
},
|
|
"AppealIngestionType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"GuildClassification": {
|
|
"type": "object",
|
|
"properties": {
|
|
"guild_metadata": {
|
|
"$ref": "#/definitions/GuildMetadata"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"classification_type": {
|
|
"$ref": "#/definitions/ClassificationType"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"explainer_link": {
|
|
"type": "string"
|
|
},
|
|
"actions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ClassificationAction"
|
|
}
|
|
},
|
|
"max_expiration_time": {
|
|
"type": "string"
|
|
},
|
|
"flagged_content": {
|
|
"type": "array",
|
|
"items": {}
|
|
},
|
|
"appeal_status": {
|
|
"$ref": "#/definitions/AppealStatus"
|
|
},
|
|
"is_coppa": {
|
|
"type": "boolean"
|
|
},
|
|
"is_spam": {
|
|
"type": "boolean"
|
|
},
|
|
"appeal_ingestion_type": {
|
|
"$ref": "#/definitions/AppealIngestionType"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"actions",
|
|
"appeal_ingestion_type",
|
|
"appeal_status",
|
|
"classification_type",
|
|
"description",
|
|
"explainer_link",
|
|
"flagged_content",
|
|
"guild_metadata",
|
|
"id",
|
|
"is_coppa",
|
|
"is_spam",
|
|
"max_expiration_time"
|
|
]
|
|
},
|
|
"GuildMetadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"member_type": {
|
|
"$ref": "#/definitions/GuildMemberType"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"member_type",
|
|
"name"
|
|
]
|
|
},
|
|
"GuildMemberType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"AccountStandingState": {
|
|
"type": "number",
|
|
"enum": [
|
|
100,
|
|
200,
|
|
300,
|
|
400,
|
|
500
|
|
]
|
|
},
|
|
"AppealEligibility": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"BackupCodesChallengeResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"nonce": {
|
|
"type": "string"
|
|
},
|
|
"regenerate_nonce": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"nonce",
|
|
"regenerate_nonce"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"CollectiblesCategoriesResponse": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/CollectiblesCategoryItem"
|
|
},
|
|
"definitions": {
|
|
"CollectiblesCategoryItem": {
|
|
"type": "object",
|
|
"properties": {
|
|
"sku_id": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"summary": {
|
|
"type": "string"
|
|
},
|
|
"store_listing_id": {
|
|
"type": "string"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"unpublished_at": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"styles": {
|
|
"$ref": "#/definitions/CollectiblesCategoryStyle"
|
|
},
|
|
"logo": {
|
|
"type": "string"
|
|
},
|
|
"hero_ranking": {
|
|
"anyOf": [
|
|
{
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"mobile_bg": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"pdp_bg": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"success_modal_bg": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"mobile_banner": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"featured_block": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"hero_banner": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"wide_banner": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"hero_logo": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"products": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/CollectiblesCategoryProductItem"
|
|
}
|
|
},
|
|
"banner_asset": {
|
|
"$ref": "#/definitions/StaticAnimatedAsset"
|
|
},
|
|
"hero_banner_asset": {
|
|
"$ref": "#/definitions/StaticAnimatedAsset"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"banner",
|
|
"featured_block",
|
|
"hero_banner",
|
|
"hero_logo",
|
|
"hero_ranking",
|
|
"logo",
|
|
"mobile_banner",
|
|
"mobile_bg",
|
|
"name",
|
|
"pdp_bg",
|
|
"products",
|
|
"sku_id",
|
|
"store_listing_id",
|
|
"styles",
|
|
"success_modal_bg",
|
|
"summary",
|
|
"unpublished_at",
|
|
"wide_banner"
|
|
]
|
|
},
|
|
"CollectiblesCategoryStyle": {
|
|
"type": "object",
|
|
"properties": {
|
|
"background_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"button_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"confetti_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"background_colors",
|
|
"button_colors",
|
|
"confetti_colors"
|
|
]
|
|
},
|
|
"CollectiblesCategoryProductItem": {
|
|
"type": "object",
|
|
"properties": {
|
|
"sku_id": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"summary": {
|
|
"type": "string"
|
|
},
|
|
"store_listing_id": {
|
|
"type": "string"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"unpublished_at": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"styles": {
|
|
"$ref": "#/definitions/CollectiblesCategoryStyle"
|
|
},
|
|
"prices": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": "object",
|
|
"properties": {
|
|
"country_prices": {
|
|
"$ref": "#/definitions/CountryPrice"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"country_prices"
|
|
]
|
|
}
|
|
},
|
|
"items": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ProductItem"
|
|
}
|
|
},
|
|
"type": {
|
|
"type": "integer"
|
|
},
|
|
"premium_type": {
|
|
"type": "integer"
|
|
},
|
|
"category_sku_id": {
|
|
"type": "string"
|
|
},
|
|
"google_sku_ids": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"variants": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ProductItemVariant"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"banner",
|
|
"category_sku_id",
|
|
"google_sku_ids",
|
|
"items",
|
|
"name",
|
|
"premium_type",
|
|
"prices",
|
|
"sku_id",
|
|
"store_listing_id",
|
|
"styles",
|
|
"summary",
|
|
"type",
|
|
"unpublished_at"
|
|
]
|
|
},
|
|
"CountryPrice": {
|
|
"type": "object",
|
|
"properties": {
|
|
"country_code": {
|
|
"type": "string"
|
|
},
|
|
"prices": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/PriceEntry"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"country_code",
|
|
"prices"
|
|
]
|
|
},
|
|
"PriceEntry": {
|
|
"type": "object",
|
|
"properties": {
|
|
"amount": {
|
|
"type": "integer"
|
|
},
|
|
"currency": {
|
|
"type": "string"
|
|
},
|
|
"exponent": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"amount",
|
|
"currency",
|
|
"exponent"
|
|
]
|
|
},
|
|
"ProductItem": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "integer"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sku_id": {
|
|
"type": "string"
|
|
},
|
|
"asset": {
|
|
"type": "string"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"palette": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"sku_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ProductItemVariant": {
|
|
"type": "object",
|
|
"properties": {
|
|
"sku_id": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"name_localizations": {
|
|
"type": "null"
|
|
},
|
|
"summary": {
|
|
"type": "string"
|
|
},
|
|
"summary_localizations": {
|
|
"type": "null"
|
|
},
|
|
"store_listing_id": {
|
|
"type": "string"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"unpublished_at": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"styles": {
|
|
"$ref": "#/definitions/CollectiblesCategoryStyle"
|
|
},
|
|
"prices": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": "object",
|
|
"properties": {
|
|
"country_prices": {
|
|
"$ref": "#/definitions/CountryPrice"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"country_prices"
|
|
]
|
|
}
|
|
},
|
|
"items": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ProductItem"
|
|
}
|
|
},
|
|
"type": {
|
|
"type": "integer"
|
|
},
|
|
"premium_type": {
|
|
"type": "integer"
|
|
},
|
|
"category_sku_id": {
|
|
"type": "string"
|
|
},
|
|
"google_sku_ids": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"base_variant_sku_id": {
|
|
"type": "string"
|
|
},
|
|
"base_variant_name": {
|
|
"type": "string"
|
|
},
|
|
"variant_label": {
|
|
"type": "string"
|
|
},
|
|
"variant_value": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"base_variant_name",
|
|
"base_variant_sku_id",
|
|
"category_sku_id",
|
|
"items",
|
|
"name",
|
|
"name_localizations",
|
|
"premium_type",
|
|
"prices",
|
|
"sku_id",
|
|
"store_listing_id",
|
|
"summary",
|
|
"summary_localizations",
|
|
"type",
|
|
"variant_label",
|
|
"variant_value"
|
|
]
|
|
},
|
|
"StaticAnimatedAsset": {
|
|
"type": "object",
|
|
"properties": {
|
|
"animated": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"static": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"static"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"CollectiblesMarketingResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"marketings": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"$ref": "#/definitions/CollectiblesMarketingItem"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"marketings"
|
|
],
|
|
"definitions": {
|
|
"CollectiblesMarketingItem": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "integer"
|
|
},
|
|
"version": {
|
|
"type": "integer"
|
|
},
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"body": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"body",
|
|
"title",
|
|
"type",
|
|
"version"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"CollectiblesShopResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"shop_blocks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/AnyShopBlock"
|
|
}
|
|
},
|
|
"categories": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/CollectiblesCategoryItem"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"categories",
|
|
"shop_blocks"
|
|
],
|
|
"definitions": {
|
|
"AnyShopBlock": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/ItemRowShopBlock"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/BundleTileRowShopBlock"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/ItemCollectionShopBlock"
|
|
}
|
|
]
|
|
},
|
|
"ItemRowShopBlock": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "integer",
|
|
"const": 0
|
|
},
|
|
"category_sku_id": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"category_store_listing_id": {
|
|
"type": "string"
|
|
},
|
|
"banner_asset": {
|
|
"$ref": "#/definitions/StaticAnimatedAsset"
|
|
},
|
|
"logo_url": {
|
|
"type": "string"
|
|
},
|
|
"unpublished_at": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"summary": {
|
|
"type": "string"
|
|
},
|
|
"ranked_sku_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"banner_asset",
|
|
"category_sku_id",
|
|
"category_store_listing_id",
|
|
"logo_url",
|
|
"name",
|
|
"ranked_sku_ids",
|
|
"summary",
|
|
"type",
|
|
"unpublished_at"
|
|
]
|
|
},
|
|
"StaticAnimatedAsset": {
|
|
"type": "object",
|
|
"properties": {
|
|
"animated": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"static": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"static"
|
|
]
|
|
},
|
|
"BundleTileRowShopBlock": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "integer",
|
|
"const": 1
|
|
},
|
|
"subblocks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ShopBlockSubBlock"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"subblocks",
|
|
"type"
|
|
]
|
|
},
|
|
"ShopBlockSubBlock": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "integer"
|
|
},
|
|
"category_store_listing_id": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"unpublished_at": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"banner_url": {
|
|
"type": "string"
|
|
},
|
|
"body_text": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"banner_text_color": {
|
|
"type": [
|
|
"null",
|
|
"integer"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"banner_text_color",
|
|
"banner_url",
|
|
"body_text",
|
|
"category_store_listing_id",
|
|
"name",
|
|
"type",
|
|
"unpublished_at"
|
|
]
|
|
},
|
|
"ItemCollectionShopBlock": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "integer",
|
|
"const": 2
|
|
},
|
|
"ranked_sku_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"sorted_sku_ids": {
|
|
"type": "object",
|
|
"properties": {
|
|
"recommended": {
|
|
"anyOf": [
|
|
{
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"popular": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"popular",
|
|
"recommended"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"ranked_sku_ids",
|
|
"sorted_sku_ids",
|
|
"type"
|
|
]
|
|
},
|
|
"CollectiblesCategoryItem": {
|
|
"type": "object",
|
|
"properties": {
|
|
"sku_id": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"summary": {
|
|
"type": "string"
|
|
},
|
|
"store_listing_id": {
|
|
"type": "string"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"unpublished_at": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"styles": {
|
|
"$ref": "#/definitions/CollectiblesCategoryStyle"
|
|
},
|
|
"logo": {
|
|
"type": "string"
|
|
},
|
|
"hero_ranking": {
|
|
"anyOf": [
|
|
{
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"mobile_bg": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"pdp_bg": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"success_modal_bg": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"mobile_banner": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"featured_block": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"hero_banner": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"wide_banner": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"hero_logo": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"products": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/CollectiblesCategoryProductItem"
|
|
}
|
|
},
|
|
"banner_asset": {
|
|
"$ref": "#/definitions/StaticAnimatedAsset"
|
|
},
|
|
"hero_banner_asset": {
|
|
"$ref": "#/definitions/StaticAnimatedAsset"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"banner",
|
|
"featured_block",
|
|
"hero_banner",
|
|
"hero_logo",
|
|
"hero_ranking",
|
|
"logo",
|
|
"mobile_banner",
|
|
"mobile_bg",
|
|
"name",
|
|
"pdp_bg",
|
|
"products",
|
|
"sku_id",
|
|
"store_listing_id",
|
|
"styles",
|
|
"success_modal_bg",
|
|
"summary",
|
|
"unpublished_at",
|
|
"wide_banner"
|
|
]
|
|
},
|
|
"CollectiblesCategoryStyle": {
|
|
"type": "object",
|
|
"properties": {
|
|
"background_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"button_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"confetti_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"background_colors",
|
|
"button_colors",
|
|
"confetti_colors"
|
|
]
|
|
},
|
|
"CollectiblesCategoryProductItem": {
|
|
"type": "object",
|
|
"properties": {
|
|
"sku_id": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"summary": {
|
|
"type": "string"
|
|
},
|
|
"store_listing_id": {
|
|
"type": "string"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"unpublished_at": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"styles": {
|
|
"$ref": "#/definitions/CollectiblesCategoryStyle"
|
|
},
|
|
"prices": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": "object",
|
|
"properties": {
|
|
"country_prices": {
|
|
"$ref": "#/definitions/CountryPrice"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"country_prices"
|
|
]
|
|
}
|
|
},
|
|
"items": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ProductItem"
|
|
}
|
|
},
|
|
"type": {
|
|
"type": "integer"
|
|
},
|
|
"premium_type": {
|
|
"type": "integer"
|
|
},
|
|
"category_sku_id": {
|
|
"type": "string"
|
|
},
|
|
"google_sku_ids": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"variants": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ProductItemVariant"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"banner",
|
|
"category_sku_id",
|
|
"google_sku_ids",
|
|
"items",
|
|
"name",
|
|
"premium_type",
|
|
"prices",
|
|
"sku_id",
|
|
"store_listing_id",
|
|
"styles",
|
|
"summary",
|
|
"type",
|
|
"unpublished_at"
|
|
]
|
|
},
|
|
"CountryPrice": {
|
|
"type": "object",
|
|
"properties": {
|
|
"country_code": {
|
|
"type": "string"
|
|
},
|
|
"prices": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/PriceEntry"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"country_code",
|
|
"prices"
|
|
]
|
|
},
|
|
"PriceEntry": {
|
|
"type": "object",
|
|
"properties": {
|
|
"amount": {
|
|
"type": "integer"
|
|
},
|
|
"currency": {
|
|
"type": "string"
|
|
},
|
|
"exponent": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"amount",
|
|
"currency",
|
|
"exponent"
|
|
]
|
|
},
|
|
"ProductItem": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "integer"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sku_id": {
|
|
"type": "string"
|
|
},
|
|
"asset": {
|
|
"type": "string"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"palette": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"sku_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ProductItemVariant": {
|
|
"type": "object",
|
|
"properties": {
|
|
"sku_id": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"name_localizations": {
|
|
"type": "null"
|
|
},
|
|
"summary": {
|
|
"type": "string"
|
|
},
|
|
"summary_localizations": {
|
|
"type": "null"
|
|
},
|
|
"store_listing_id": {
|
|
"type": "string"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"unpublished_at": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"styles": {
|
|
"$ref": "#/definitions/CollectiblesCategoryStyle"
|
|
},
|
|
"prices": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": "object",
|
|
"properties": {
|
|
"country_prices": {
|
|
"$ref": "#/definitions/CountryPrice"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"country_prices"
|
|
]
|
|
}
|
|
},
|
|
"items": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ProductItem"
|
|
}
|
|
},
|
|
"type": {
|
|
"type": "integer"
|
|
},
|
|
"premium_type": {
|
|
"type": "integer"
|
|
},
|
|
"category_sku_id": {
|
|
"type": "string"
|
|
},
|
|
"google_sku_ids": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"base_variant_sku_id": {
|
|
"type": "string"
|
|
},
|
|
"base_variant_name": {
|
|
"type": "string"
|
|
},
|
|
"variant_label": {
|
|
"type": "string"
|
|
},
|
|
"variant_value": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"base_variant_name",
|
|
"base_variant_sku_id",
|
|
"category_sku_id",
|
|
"items",
|
|
"name",
|
|
"name_localizations",
|
|
"premium_type",
|
|
"prices",
|
|
"sku_id",
|
|
"store_listing_id",
|
|
"summary",
|
|
"summary_localizations",
|
|
"type",
|
|
"variant_label",
|
|
"variant_value"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"DiscoverableGuildsResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"total": {
|
|
"type": "integer"
|
|
},
|
|
"guilds": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Guild"
|
|
}
|
|
},
|
|
"offset": {
|
|
"type": "integer"
|
|
},
|
|
"limit": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"guilds",
|
|
"limit",
|
|
"offset",
|
|
"total"
|
|
],
|
|
"definitions": {
|
|
"Guild": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"afk_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"afk_timeout": {
|
|
"type": "integer"
|
|
},
|
|
"bans": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Ban"
|
|
}
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"default_message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"discovery_splash": {
|
|
"type": "string"
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer"
|
|
},
|
|
"features": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"primary_category_id": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"large": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"max_members": {
|
|
"type": "integer"
|
|
},
|
|
"max_presences": {
|
|
"type": "integer"
|
|
},
|
|
"max_video_channel_users": {
|
|
"type": "integer"
|
|
},
|
|
"member_count": {
|
|
"type": "integer"
|
|
},
|
|
"presence_count": {
|
|
"type": "integer"
|
|
},
|
|
"members": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Member"
|
|
}
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Channel"
|
|
}
|
|
},
|
|
"template_id": {
|
|
"type": "string"
|
|
},
|
|
"template": {
|
|
"$ref": "#/definitions/Template"
|
|
},
|
|
"emojis": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Emoji"
|
|
}
|
|
},
|
|
"stickers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"invites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Invite"
|
|
}
|
|
},
|
|
"voice_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/VoiceState"
|
|
}
|
|
},
|
|
"webhooks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Webhook"
|
|
}
|
|
},
|
|
"mfa_level": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"owner_id": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"preferred_locale": {
|
|
"type": "string"
|
|
},
|
|
"premium_subscription_count": {
|
|
"type": "integer"
|
|
},
|
|
"premium_tier": {
|
|
"type": "integer"
|
|
},
|
|
"public_updates_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"public_updates_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"rules_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"rules_channel": {
|
|
"type": "string"
|
|
},
|
|
"region": {
|
|
"type": "string"
|
|
},
|
|
"splash": {
|
|
"type": "string"
|
|
},
|
|
"system_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"system_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"system_channel_flags": {
|
|
"type": "integer"
|
|
},
|
|
"unavailable": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"verification_level": {
|
|
"type": "integer"
|
|
},
|
|
"welcome_screen": {
|
|
"$ref": "#/definitions/GuildWelcomeScreen",
|
|
"description": "DEPRECATED: Look at the new Guild onboarding screens."
|
|
},
|
|
"widget_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"widget_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"widget_enabled": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"nsfw_level": {
|
|
"type": "integer"
|
|
},
|
|
"nsfw": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"parent": {
|
|
"type": "string"
|
|
},
|
|
"permissions": {
|
|
"type": "integer"
|
|
},
|
|
"premium_progress_bar_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"channel_ordering": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bans",
|
|
"channel_ordering",
|
|
"channels",
|
|
"emojis",
|
|
"features",
|
|
"id",
|
|
"invites",
|
|
"members",
|
|
"name",
|
|
"nsfw",
|
|
"premium_progress_bar_enabled",
|
|
"public_updates_channel_id",
|
|
"roles",
|
|
"stickers",
|
|
"template",
|
|
"unavailable",
|
|
"voice_states",
|
|
"webhooks",
|
|
"welcome_screen",
|
|
"widget_enabled"
|
|
]
|
|
},
|
|
"Channel": {
|
|
"type": "object",
|
|
"properties": {
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ChannelType"
|
|
},
|
|
"recipients": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Recipient"
|
|
}
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"parent_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"parent": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"owner_id": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"last_pin_timestamp": {
|
|
"type": "integer"
|
|
},
|
|
"default_auto_archive_duration": {
|
|
"type": "integer"
|
|
},
|
|
"permission_overwrites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwrite"
|
|
}
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
},
|
|
"bitrate": {
|
|
"type": "integer"
|
|
},
|
|
"user_limit": {
|
|
"type": "integer"
|
|
},
|
|
"nsfw": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"topic": {
|
|
"type": "string"
|
|
},
|
|
"invites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Invite"
|
|
}
|
|
},
|
|
"retention_policy_id": {
|
|
"type": "string"
|
|
},
|
|
"messages": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Message"
|
|
}
|
|
},
|
|
"voice_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/VoiceState"
|
|
}
|
|
},
|
|
"read_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ReadState"
|
|
}
|
|
},
|
|
"webhooks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Webhook"
|
|
}
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"position": {
|
|
"description": "Must be calculated Channel.calculatePosition",
|
|
"type": "integer"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"created_at",
|
|
"flags",
|
|
"id",
|
|
"nsfw",
|
|
"owner",
|
|
"parent_id",
|
|
"position",
|
|
"type"
|
|
]
|
|
},
|
|
"ChannelType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
33,
|
|
34,
|
|
35,
|
|
64,
|
|
255
|
|
]
|
|
},
|
|
"Recipient": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"closed": {
|
|
"type": "boolean"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"closed",
|
|
"id",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"User": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"theme_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"phone": {
|
|
"type": "string"
|
|
},
|
|
"desktop": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"mobile": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"premium": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_type": {
|
|
"type": "integer"
|
|
},
|
|
"bot": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"bio": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"system": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"nsfw_allowed": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"mfa_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"webauthn_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"totp_secret": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"totp_last_ticket": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"deleted": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"email": {
|
|
"type": "string"
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"public_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"purchased_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"premium_usage_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"rights": {
|
|
"type": "string"
|
|
},
|
|
"sessions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Session"
|
|
}
|
|
},
|
|
"relationships": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Relationship"
|
|
}
|
|
},
|
|
"connected_accounts": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ConnectedAccount"
|
|
}
|
|
},
|
|
"data": {
|
|
"type": "object",
|
|
"properties": {
|
|
"valid_tokens_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"hash": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"valid_tokens_since"
|
|
]
|
|
},
|
|
"fingerprints": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"settings": {
|
|
"$ref": "#/definitions/UserSettings"
|
|
},
|
|
"extended_settings": {
|
|
"type": "string",
|
|
"default": "{}"
|
|
},
|
|
"security_keys": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SecurityKey"
|
|
}
|
|
},
|
|
"badge_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"connected_accounts",
|
|
"created_at",
|
|
"data",
|
|
"deleted",
|
|
"desktop",
|
|
"disabled",
|
|
"discriminator",
|
|
"extended_settings",
|
|
"fingerprints",
|
|
"flags",
|
|
"id",
|
|
"mfa_enabled",
|
|
"mobile",
|
|
"nsfw_allowed",
|
|
"premium",
|
|
"premium_since",
|
|
"premium_type",
|
|
"premium_usage_flags",
|
|
"public_flags",
|
|
"purchased_flags",
|
|
"relationships",
|
|
"rights",
|
|
"security_keys",
|
|
"sessions",
|
|
"system",
|
|
"username",
|
|
"verified",
|
|
"webauthn_enabled"
|
|
]
|
|
},
|
|
"Session": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"client_info": {
|
|
"type": "object",
|
|
"properties": {
|
|
"client": {
|
|
"type": "string"
|
|
},
|
|
"os": {
|
|
"type": "string"
|
|
},
|
|
"version": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"client",
|
|
"os",
|
|
"version"
|
|
]
|
|
},
|
|
"client_status": {
|
|
"$ref": "#/definitions/ClientStatus"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"activities",
|
|
"client_info",
|
|
"client_status",
|
|
"id",
|
|
"session_id",
|
|
"status",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
]
|
|
},
|
|
"ClientStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"desktop": {
|
|
"type": "string"
|
|
},
|
|
"mobile": {
|
|
"type": "string"
|
|
},
|
|
"web": {
|
|
"type": "string"
|
|
},
|
|
"embedded": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Relationship": {
|
|
"type": "object",
|
|
"properties": {
|
|
"from_id": {
|
|
"type": "string"
|
|
},
|
|
"from": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"to_id": {
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"nickname": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/RelationshipType"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"from",
|
|
"from_id",
|
|
"id",
|
|
"to",
|
|
"to_id",
|
|
"type"
|
|
]
|
|
},
|
|
"RelationshipType": {
|
|
"type": "number",
|
|
"enum": [
|
|
4,
|
|
3,
|
|
2,
|
|
1
|
|
]
|
|
},
|
|
"ConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"external_id": {
|
|
"type": "string"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"friend_sync": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"revoked": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"show_activity": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"visibility": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"integrations": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"metadata_": {},
|
|
"metadata_visibility": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"two_way_link": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"token_data": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/ConnectedAccountTokenData"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"external_id",
|
|
"id",
|
|
"name",
|
|
"type",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"ConnectedAccountTokenData": {
|
|
"type": "object",
|
|
"properties": {
|
|
"access_token": {
|
|
"type": "string"
|
|
},
|
|
"token_type": {
|
|
"type": "string"
|
|
},
|
|
"scope": {
|
|
"type": "string"
|
|
},
|
|
"refresh_token": {
|
|
"type": "string"
|
|
},
|
|
"expires_in": {
|
|
"type": "integer"
|
|
},
|
|
"expires_at": {
|
|
"type": "integer"
|
|
},
|
|
"fetched_at": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"access_token",
|
|
"fetched_at"
|
|
]
|
|
},
|
|
"UserSettings": {
|
|
"type": "object",
|
|
"properties": {
|
|
"index": {
|
|
"type": "string"
|
|
},
|
|
"afk_timeout": {
|
|
"type": "integer",
|
|
"default": 3600
|
|
},
|
|
"allow_accessibility_detection": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"animate_emoji": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"animate_stickers": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"contact_sync_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"convert_emoticons": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"custom_status": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/CustomStatus"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"default_guilds_restricted": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"detect_platform_accounts": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"developer_mode": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"disable_games_tab": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"enable_tts_command": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"friend_discovery_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"friend_source_flags": {
|
|
"$ref": "#/definitions/FriendSourceFlags"
|
|
},
|
|
"gateway_connected": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"gif_auto_play": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"guild_folders": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/GuildFolder"
|
|
},
|
|
"default": []
|
|
},
|
|
"guild_positions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"inline_attachment_media": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"inline_embed_media": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"locale": {
|
|
"type": "string",
|
|
"default": "en-US"
|
|
},
|
|
"message_display_compact": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"native_phone_integration_enabled": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"render_embeds": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"render_reactions": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"restricted_guilds": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"show_current_game": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string",
|
|
"default": "online"
|
|
},
|
|
"stream_notifications_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"theme": {
|
|
"enum": [
|
|
"dark",
|
|
"light"
|
|
],
|
|
"type": "string",
|
|
"default": "dark"
|
|
},
|
|
"timezone_offset": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"view_nsfw_guilds": {
|
|
"type": "boolean",
|
|
"default": true
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk_timeout",
|
|
"allow_accessibility_detection",
|
|
"animate_emoji",
|
|
"animate_stickers",
|
|
"contact_sync_enabled",
|
|
"convert_emoticons",
|
|
"custom_status",
|
|
"default_guilds_restricted",
|
|
"detect_platform_accounts",
|
|
"developer_mode",
|
|
"disable_games_tab",
|
|
"enable_tts_command",
|
|
"explicit_content_filter",
|
|
"friend_discovery_flags",
|
|
"friend_source_flags",
|
|
"gateway_connected",
|
|
"gif_auto_play",
|
|
"guild_folders",
|
|
"guild_positions",
|
|
"index",
|
|
"inline_attachment_media",
|
|
"inline_embed_media",
|
|
"locale",
|
|
"message_display_compact",
|
|
"native_phone_integration_enabled",
|
|
"render_embeds",
|
|
"render_reactions",
|
|
"restricted_guilds",
|
|
"show_current_game",
|
|
"status",
|
|
"stream_notifications_enabled",
|
|
"theme",
|
|
"timezone_offset",
|
|
"view_nsfw_guilds"
|
|
]
|
|
},
|
|
"CustomStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"emoji_id": {
|
|
"type": "string"
|
|
},
|
|
"emoji_name": {
|
|
"type": "string"
|
|
},
|
|
"expires_at": {
|
|
"type": "integer"
|
|
},
|
|
"text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"FriendSourceFlags": {
|
|
"type": "object",
|
|
"properties": {
|
|
"all": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"all"
|
|
]
|
|
},
|
|
"GuildFolder": {
|
|
"type": "object",
|
|
"properties": {
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"guild_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"color",
|
|
"guild_ids",
|
|
"id",
|
|
"name"
|
|
]
|
|
},
|
|
"SecurityKey": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"key_id": {
|
|
"type": "string"
|
|
},
|
|
"public_key": {
|
|
"type": "string"
|
|
},
|
|
"counter": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"counter",
|
|
"id",
|
|
"key_id",
|
|
"name",
|
|
"public_key",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"ChannelPermissionOverwrite": {
|
|
"type": "object",
|
|
"properties": {
|
|
"allow": {
|
|
"type": "string"
|
|
},
|
|
"deny": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"allow",
|
|
"deny",
|
|
"id",
|
|
"type"
|
|
]
|
|
},
|
|
"ChannelPermissionOverwriteType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"Invite": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "string"
|
|
},
|
|
"temporary": {
|
|
"type": "boolean"
|
|
},
|
|
"uses": {
|
|
"type": "integer"
|
|
},
|
|
"max_uses": {
|
|
"type": "integer"
|
|
},
|
|
"max_age": {
|
|
"type": "integer"
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"expires_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"inviter_id": {
|
|
"type": "string"
|
|
},
|
|
"inviter": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"target_user_id": {
|
|
"type": "string"
|
|
},
|
|
"target_user": {
|
|
"type": "string"
|
|
},
|
|
"target_user_type": {
|
|
"type": "integer"
|
|
},
|
|
"vanity_url": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"code",
|
|
"created_at",
|
|
"flags",
|
|
"guild",
|
|
"guild_id",
|
|
"inviter",
|
|
"max_age",
|
|
"max_uses",
|
|
"target_user_id",
|
|
"temporary",
|
|
"uses"
|
|
]
|
|
},
|
|
"Message": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"author_id": {
|
|
"type": "string"
|
|
},
|
|
"author": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"member_id": {
|
|
"type": "string"
|
|
},
|
|
"member": {
|
|
"$ref": "#/definitions/Member"
|
|
},
|
|
"webhook_id": {
|
|
"type": "string"
|
|
},
|
|
"webhook": {
|
|
"$ref": "#/definitions/Webhook"
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"application": {
|
|
"$ref": "#/definitions/Application"
|
|
},
|
|
"content": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"edited_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"tts": {
|
|
"type": "boolean"
|
|
},
|
|
"mention_everyone": {
|
|
"type": "boolean"
|
|
},
|
|
"mentions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/User"
|
|
}
|
|
},
|
|
"mention_roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"mention_channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Channel"
|
|
}
|
|
},
|
|
"sticker_items": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"attachments": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Attachment"
|
|
}
|
|
},
|
|
"embeds": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Embed"
|
|
}
|
|
},
|
|
"reactions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Reaction"
|
|
}
|
|
},
|
|
"nonce": {
|
|
"type": "string"
|
|
},
|
|
"pinned_at": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"pinned": {
|
|
"type": "boolean"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/MessageType"
|
|
},
|
|
"activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "integer"
|
|
},
|
|
"party_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"party_id",
|
|
"type"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"message_reference": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"message_id"
|
|
]
|
|
},
|
|
"referenced_message": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/Message"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"interaction": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/InteractionType"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"type"
|
|
]
|
|
},
|
|
"interaction_metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/InteractionType"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"authorizing_integration_owners": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"command_type": {
|
|
"$ref": "#/definitions/ApplicationCommandType"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"authorizing_integration_owners",
|
|
"command_type",
|
|
"id",
|
|
"name",
|
|
"type",
|
|
"user_id"
|
|
]
|
|
},
|
|
"components": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ActionRowComponent"
|
|
}
|
|
},
|
|
"poll": {
|
|
"$ref": "#/definitions/Poll"
|
|
},
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"embeds",
|
|
"flags",
|
|
"id",
|
|
"mention_channels",
|
|
"mention_roles",
|
|
"mentions",
|
|
"pinned",
|
|
"reactions",
|
|
"timestamp",
|
|
"type"
|
|
]
|
|
},
|
|
"Member": {
|
|
"type": "object",
|
|
"properties": {
|
|
"index": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"nick": {
|
|
"type": "string"
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"joined_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"premium_since": {
|
|
"type": "integer"
|
|
},
|
|
"deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"mute": {
|
|
"type": "boolean"
|
|
},
|
|
"pending": {
|
|
"type": "boolean"
|
|
},
|
|
"settings": {
|
|
"$ref": "#/definitions/UserGuildSettings"
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"joined_by": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"theme_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"communication_disabled_until": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"banner",
|
|
"bio",
|
|
"communication_disabled_until",
|
|
"deaf",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"index",
|
|
"joined_at",
|
|
"joined_by",
|
|
"mute",
|
|
"pending",
|
|
"roles",
|
|
"settings",
|
|
"user"
|
|
]
|
|
},
|
|
"Role": {
|
|
"type": "object",
|
|
"properties": {
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"hoist": {
|
|
"type": "boolean"
|
|
},
|
|
"managed": {
|
|
"type": "boolean"
|
|
},
|
|
"mentionable": {
|
|
"type": "boolean"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"permissions": {
|
|
"type": "string"
|
|
},
|
|
"position": {
|
|
"type": "integer"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"unicode_emoji": {
|
|
"type": "string"
|
|
},
|
|
"tags": {
|
|
"type": "object",
|
|
"properties": {
|
|
"bot_id": {
|
|
"type": "string"
|
|
},
|
|
"integration_id": {
|
|
"type": "string"
|
|
},
|
|
"premium_subscriber": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"colors": {
|
|
"$ref": "#/definitions/RoleColors"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"color",
|
|
"colors",
|
|
"flags",
|
|
"guild",
|
|
"guild_id",
|
|
"hoist",
|
|
"id",
|
|
"managed",
|
|
"mentionable",
|
|
"name",
|
|
"permissions",
|
|
"position"
|
|
]
|
|
},
|
|
"RoleColors": {
|
|
"type": "object",
|
|
"properties": {
|
|
"primary_color": {
|
|
"type": "integer"
|
|
},
|
|
"secondary_color": {
|
|
"type": "integer"
|
|
},
|
|
"tertiary_color": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"primary_color"
|
|
]
|
|
},
|
|
"UserGuildSettings": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_overrides": {
|
|
"anyOf": [
|
|
{
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"$ref": "#/definitions/ChannelOverride"
|
|
}
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mobile_push": {
|
|
"type": "boolean"
|
|
},
|
|
"mute_config": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress_everyone": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress_roles": {
|
|
"type": "boolean"
|
|
},
|
|
"version": {
|
|
"type": "integer"
|
|
},
|
|
"guild_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"mute_scheduled_events": {
|
|
"type": "boolean"
|
|
},
|
|
"hide_muted_channels": {
|
|
"type": "boolean"
|
|
},
|
|
"notify_highlights": {
|
|
"type": "integer",
|
|
"const": 0
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_overrides",
|
|
"flags",
|
|
"guild_id",
|
|
"hide_muted_channels",
|
|
"message_notifications",
|
|
"mobile_push",
|
|
"mute_config",
|
|
"mute_scheduled_events",
|
|
"muted",
|
|
"notify_highlights",
|
|
"suppress_everyone",
|
|
"suppress_roles",
|
|
"version"
|
|
]
|
|
},
|
|
"ChannelOverride": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_id",
|
|
"message_notifications",
|
|
"mute_config",
|
|
"muted"
|
|
]
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"Webhook": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/WebhookType"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"token": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"application": {
|
|
"$ref": "#/definitions/Application"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"source_guild_id": {
|
|
"type": "string"
|
|
},
|
|
"source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"source_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"source_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"application",
|
|
"application_id",
|
|
"avatar",
|
|
"channel",
|
|
"channel_id",
|
|
"id",
|
|
"name",
|
|
"source_channel",
|
|
"source_channel_id",
|
|
"type",
|
|
"url",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"WebhookType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3
|
|
]
|
|
},
|
|
"Application": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"summary": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"type": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true
|
|
},
|
|
"hook": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"bot_public": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"bot_require_code_grant": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"verify_key": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"redirect_uris": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"rpc_application_state": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"store_application_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"verification_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"interactions_endpoint_url": {
|
|
"type": "string"
|
|
},
|
|
"integration_public": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"integration_require_code_grant": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"discoverability_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"discovery_eligibility_flags": {
|
|
"type": "integer",
|
|
"default": 2240
|
|
},
|
|
"bot": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"tags": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"cover_image": {
|
|
"type": "string"
|
|
},
|
|
"install_params": {
|
|
"type": "object",
|
|
"properties": {
|
|
"scopes": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"permissions": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"permissions",
|
|
"scopes"
|
|
]
|
|
},
|
|
"terms_of_service_url": {
|
|
"type": "string"
|
|
},
|
|
"privacy_policy_url": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"custom_install_url": {
|
|
"type": "string"
|
|
},
|
|
"team": {
|
|
"$ref": "#/definitions/Team"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"description",
|
|
"discoverability_state",
|
|
"discovery_eligibility_flags",
|
|
"flags",
|
|
"hook",
|
|
"id",
|
|
"integration_public",
|
|
"integration_require_code_grant",
|
|
"name",
|
|
"owner",
|
|
"redirect_uris",
|
|
"rpc_application_state",
|
|
"store_application_state",
|
|
"summary",
|
|
"verification_state",
|
|
"verify_key"
|
|
]
|
|
},
|
|
"Team": {
|
|
"type": "object",
|
|
"properties": {
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"members": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/TeamMember"
|
|
}
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"owner_user_id": {
|
|
"type": "string"
|
|
},
|
|
"owner_user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"members",
|
|
"name",
|
|
"owner_user",
|
|
"owner_user_id"
|
|
]
|
|
},
|
|
"TeamMember": {
|
|
"type": "object",
|
|
"properties": {
|
|
"membership_state": {
|
|
"$ref": "#/definitions/TeamMemberState"
|
|
},
|
|
"permissions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"role": {
|
|
"$ref": "#/definitions/TeamMemberRole"
|
|
},
|
|
"team_id": {
|
|
"type": "string"
|
|
},
|
|
"team": {
|
|
"$ref": "#/definitions/Team"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"membership_state",
|
|
"permissions",
|
|
"role",
|
|
"team",
|
|
"team_id",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"TeamMemberState": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"TeamMemberRole": {
|
|
"type": "string",
|
|
"enum": [
|
|
"admin",
|
|
"developer",
|
|
"read_only"
|
|
]
|
|
},
|
|
"Sticker": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"available": {
|
|
"type": "boolean"
|
|
},
|
|
"tags": {
|
|
"type": "string"
|
|
},
|
|
"pack_id": {
|
|
"type": "string"
|
|
},
|
|
"pack": {
|
|
"$ref": "#/definitions/StickerPack"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/StickerType"
|
|
},
|
|
"format_type": {
|
|
"$ref": "#/definitions/StickerFormatType"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"format_type",
|
|
"id",
|
|
"name",
|
|
"pack",
|
|
"type"
|
|
]
|
|
},
|
|
"StickerPack": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"banner_asset_id": {
|
|
"type": "string"
|
|
},
|
|
"stickers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"cover_sticker_id": {
|
|
"type": "string"
|
|
},
|
|
"cover_sticker": {
|
|
"$ref": "#/definitions/Sticker"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"stickers"
|
|
]
|
|
},
|
|
"StickerType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"StickerFormatType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4
|
|
]
|
|
},
|
|
"Attachment": {
|
|
"type": "object",
|
|
"properties": {
|
|
"filename": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "integer"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
},
|
|
"content_type": {
|
|
"type": "string"
|
|
},
|
|
"message_id": {
|
|
"type": "string"
|
|
},
|
|
"message": {
|
|
"$ref": "#/definitions/Message"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"filename",
|
|
"id",
|
|
"message",
|
|
"message_id",
|
|
"proxy_url",
|
|
"size",
|
|
"url"
|
|
]
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"Reaction": {
|
|
"type": "object",
|
|
"properties": {
|
|
"count": {
|
|
"type": "integer"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"user_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"count",
|
|
"emoji",
|
|
"user_ids"
|
|
]
|
|
},
|
|
"PartialEmoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name"
|
|
]
|
|
},
|
|
"MessageType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
16,
|
|
19,
|
|
20,
|
|
41,
|
|
42,
|
|
43,
|
|
50,
|
|
63,
|
|
255
|
|
]
|
|
},
|
|
"InteractionType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5
|
|
]
|
|
},
|
|
"ApplicationCommandType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4
|
|
]
|
|
},
|
|
"ActionRowComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.ActionRow"
|
|
},
|
|
"components": {
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/ButtonComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/SelectMenuComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/StringSelectMenuComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/TextInputComponent"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"components",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.ActionRow": {
|
|
"type": "number",
|
|
"const": 1
|
|
},
|
|
"ButtonComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.Button"
|
|
},
|
|
"style": {
|
|
"$ref": "#/definitions/ButtonStyle"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"sku_id": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"style",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.Button": {
|
|
"type": "number",
|
|
"const": 2
|
|
},
|
|
"ButtonStyle": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6
|
|
]
|
|
},
|
|
"SelectMenuComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": [
|
|
3,
|
|
5,
|
|
6,
|
|
7,
|
|
8
|
|
],
|
|
"type": "number"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_types": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
},
|
|
"default_values": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuDefaultOption"
|
|
}
|
|
},
|
|
"min_values": {
|
|
"type": "integer"
|
|
},
|
|
"max_values": {
|
|
"type": "integer"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"type"
|
|
]
|
|
},
|
|
"SelectMenuDefaultOption": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"channel",
|
|
"role",
|
|
"user"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"type"
|
|
]
|
|
},
|
|
"StringSelectMenuComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.StringSelect"
|
|
},
|
|
"options": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuOption"
|
|
}
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_types": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
},
|
|
"default_values": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuDefaultOption"
|
|
}
|
|
},
|
|
"min_values": {
|
|
"type": "integer"
|
|
},
|
|
"max_values": {
|
|
"type": "integer"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"options",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.StringSelect": {
|
|
"type": "number",
|
|
"const": 3
|
|
},
|
|
"SelectMenuOption": {
|
|
"type": "object",
|
|
"properties": {
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"default": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"label",
|
|
"value"
|
|
]
|
|
},
|
|
"TextInputComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.TextInput"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"style": {
|
|
"$ref": "#/definitions/TextInputStyle"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"min_length": {
|
|
"type": "integer"
|
|
},
|
|
"max_length": {
|
|
"type": "integer"
|
|
},
|
|
"required": {
|
|
"type": "boolean"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"label",
|
|
"style",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.TextInput": {
|
|
"type": "number",
|
|
"const": 4
|
|
},
|
|
"TextInputStyle": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"Poll": {
|
|
"type": "object",
|
|
"properties": {
|
|
"question": {
|
|
"$ref": "#/definitions/PollMedia"
|
|
},
|
|
"answers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/PollAnswer"
|
|
}
|
|
},
|
|
"expiry": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"allow_multiselect": {
|
|
"type": "boolean"
|
|
},
|
|
"results": {
|
|
"$ref": "#/definitions/PollResult"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"allow_multiselect",
|
|
"answers",
|
|
"expiry",
|
|
"question"
|
|
]
|
|
},
|
|
"PollMedia": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"PollAnswer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"answer_id": {
|
|
"type": "string"
|
|
},
|
|
"poll_media": {
|
|
"$ref": "#/definitions/PollMedia"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"poll_media"
|
|
]
|
|
},
|
|
"PollResult": {
|
|
"type": "object",
|
|
"properties": {
|
|
"is_finalized": {
|
|
"type": "boolean"
|
|
},
|
|
"answer_counts": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/PollAnswerCount"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"answer_counts",
|
|
"is_finalized"
|
|
]
|
|
},
|
|
"PollAnswerCount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"count": {
|
|
"type": "integer"
|
|
},
|
|
"me_voted": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"count",
|
|
"id",
|
|
"me_voted"
|
|
]
|
|
},
|
|
"VoiceState": {
|
|
"type": "object",
|
|
"properties": {
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"member": {
|
|
"$ref": "#/definitions/Member"
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
},
|
|
"token": {
|
|
"type": "string"
|
|
},
|
|
"deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"mute": {
|
|
"type": "boolean"
|
|
},
|
|
"self_deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"self_mute": {
|
|
"type": "boolean"
|
|
},
|
|
"self_stream": {
|
|
"type": "boolean"
|
|
},
|
|
"self_video": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress": {
|
|
"type": "boolean"
|
|
},
|
|
"request_to_speak_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"deaf",
|
|
"guild_id",
|
|
"id",
|
|
"member",
|
|
"mute",
|
|
"self_deaf",
|
|
"self_mute",
|
|
"self_video",
|
|
"session_id",
|
|
"suppress",
|
|
"token",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"ReadState": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"public_ack": {
|
|
"type": "string"
|
|
},
|
|
"notifications_cursor": {
|
|
"type": "string"
|
|
},
|
|
"last_pin_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"mention_count": {
|
|
"type": "integer"
|
|
},
|
|
"manual": {
|
|
"type": "boolean"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"id",
|
|
"last_message_id",
|
|
"manual",
|
|
"mention_count",
|
|
"notifications_cursor",
|
|
"public_ack",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Ban": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"executor_id": {
|
|
"type": "string"
|
|
},
|
|
"executor": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"ip": {
|
|
"type": "string"
|
|
},
|
|
"reason": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"executor",
|
|
"executor_id",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"ip",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Template": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"usage_count": {
|
|
"type": "integer"
|
|
},
|
|
"creator_id": {
|
|
"type": "string"
|
|
},
|
|
"creator": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"updated_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"source_guild_id": {
|
|
"type": "string"
|
|
},
|
|
"source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"serialized_source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"code",
|
|
"created_at",
|
|
"creator",
|
|
"creator_id",
|
|
"id",
|
|
"name",
|
|
"serialized_source_guild",
|
|
"source_guild",
|
|
"source_guild_id",
|
|
"updated_at"
|
|
]
|
|
},
|
|
"Emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"animated": {
|
|
"type": "boolean"
|
|
},
|
|
"available": {
|
|
"type": "boolean"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"managed": {
|
|
"type": "boolean"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"require_colons": {
|
|
"type": "boolean"
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"groups": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"available",
|
|
"groups",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"managed",
|
|
"name",
|
|
"require_colons",
|
|
"roles",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"GuildWelcomeScreen": {
|
|
"type": "object",
|
|
"properties": {
|
|
"enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"welcome_channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"emoji_id": {
|
|
"type": "string"
|
|
},
|
|
"emoji_name": {
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_id",
|
|
"description"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"description",
|
|
"enabled",
|
|
"welcome_channels"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"DmMessagesResponseSchema": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/PartialMessage"
|
|
},
|
|
"definitions": {
|
|
"PartialMessage": {
|
|
"description": "https://docs.discord.food/resources/message#partial-message-structure",
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```",
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/MessageType"
|
|
},
|
|
"content": {
|
|
"type": "string"
|
|
},
|
|
"author": {
|
|
"$ref": "#/definitions/PartialUser"
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"author",
|
|
"channel_id",
|
|
"content",
|
|
"id",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
16,
|
|
19,
|
|
20,
|
|
41,
|
|
42,
|
|
43,
|
|
50,
|
|
63,
|
|
255
|
|
]
|
|
},
|
|
"PartialUser": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```",
|
|
"type": "string"
|
|
},
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"global_name": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"avatar": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"avatar_decoration_data": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/AvatarDecorationData"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"collectibles": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/Collectibles"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"display_name_styles": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/DisplayNameStyle"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"primary_guild": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/PrimaryGuild"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"system": {
|
|
"type": "boolean"
|
|
},
|
|
"banner": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"accent_color": {
|
|
"type": [
|
|
"null",
|
|
"integer"
|
|
]
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"avatar",
|
|
"discriminator",
|
|
"id",
|
|
"username"
|
|
]
|
|
},
|
|
"AvatarDecorationData": {
|
|
"type": "object",
|
|
"properties": {
|
|
"asset": {
|
|
"type": "string"
|
|
},
|
|
"sku_id": {
|
|
"description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```",
|
|
"type": "string"
|
|
},
|
|
"expires_at": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"asset",
|
|
"expires_at",
|
|
"sku_id"
|
|
]
|
|
},
|
|
"Collectibles": {
|
|
"type": "object",
|
|
"properties": {
|
|
"nameplate": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/NameplateData"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"nameplate"
|
|
]
|
|
},
|
|
"NameplateData": {
|
|
"type": "object",
|
|
"properties": {
|
|
"asset": {
|
|
"type": "string"
|
|
},
|
|
"sku_id": {
|
|
"description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```",
|
|
"type": "string"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"palette": {
|
|
"type": "string"
|
|
},
|
|
"expires_at": {
|
|
"type": [
|
|
"null",
|
|
"integer"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"asset",
|
|
"expires_at",
|
|
"label",
|
|
"palette",
|
|
"sku_id"
|
|
]
|
|
},
|
|
"DisplayNameStyle": {
|
|
"type": "object",
|
|
"properties": {
|
|
"font_id": {
|
|
"type": "integer"
|
|
},
|
|
"effect_id": {
|
|
"type": "integer"
|
|
},
|
|
"colors": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"colors",
|
|
"effect_id",
|
|
"font_id"
|
|
]
|
|
},
|
|
"PrimaryGuild": {
|
|
"type": "object",
|
|
"properties": {
|
|
"identity_enabled": {
|
|
"type": [
|
|
"null",
|
|
"boolean"
|
|
]
|
|
},
|
|
"identity_guild_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"tag": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"badge": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"badge",
|
|
"identity_enabled",
|
|
"identity_guild_id",
|
|
"tag"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"EmailDomainLookupResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"guilds_info": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/HubGuild"
|
|
}
|
|
},
|
|
"has_matching_guild": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"guilds_info",
|
|
"has_matching_guild"
|
|
],
|
|
"definitions": {
|
|
"HubGuild": {
|
|
"type": "object",
|
|
"properties": {
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"icon",
|
|
"id",
|
|
"name"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"EmailDomainLookupVerifyCodeResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"joined": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"guild",
|
|
"joined"
|
|
],
|
|
"definitions": {
|
|
"Guild": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"afk_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"afk_timeout": {
|
|
"type": "integer"
|
|
},
|
|
"bans": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Ban"
|
|
}
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"default_message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"discovery_splash": {
|
|
"type": "string"
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer"
|
|
},
|
|
"features": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"primary_category_id": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"large": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"max_members": {
|
|
"type": "integer"
|
|
},
|
|
"max_presences": {
|
|
"type": "integer"
|
|
},
|
|
"max_video_channel_users": {
|
|
"type": "integer"
|
|
},
|
|
"member_count": {
|
|
"type": "integer"
|
|
},
|
|
"presence_count": {
|
|
"type": "integer"
|
|
},
|
|
"members": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Member"
|
|
}
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Channel"
|
|
}
|
|
},
|
|
"template_id": {
|
|
"type": "string"
|
|
},
|
|
"template": {
|
|
"$ref": "#/definitions/Template"
|
|
},
|
|
"emojis": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Emoji"
|
|
}
|
|
},
|
|
"stickers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"invites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Invite"
|
|
}
|
|
},
|
|
"voice_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/VoiceState"
|
|
}
|
|
},
|
|
"webhooks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Webhook"
|
|
}
|
|
},
|
|
"mfa_level": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"owner_id": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"preferred_locale": {
|
|
"type": "string"
|
|
},
|
|
"premium_subscription_count": {
|
|
"type": "integer"
|
|
},
|
|
"premium_tier": {
|
|
"type": "integer"
|
|
},
|
|
"public_updates_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"public_updates_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"rules_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"rules_channel": {
|
|
"type": "string"
|
|
},
|
|
"region": {
|
|
"type": "string"
|
|
},
|
|
"splash": {
|
|
"type": "string"
|
|
},
|
|
"system_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"system_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"system_channel_flags": {
|
|
"type": "integer"
|
|
},
|
|
"unavailable": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"verification_level": {
|
|
"type": "integer"
|
|
},
|
|
"welcome_screen": {
|
|
"$ref": "#/definitions/GuildWelcomeScreen",
|
|
"description": "DEPRECATED: Look at the new Guild onboarding screens."
|
|
},
|
|
"widget_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"widget_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"widget_enabled": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"nsfw_level": {
|
|
"type": "integer"
|
|
},
|
|
"nsfw": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"parent": {
|
|
"type": "string"
|
|
},
|
|
"permissions": {
|
|
"type": "integer"
|
|
},
|
|
"premium_progress_bar_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"channel_ordering": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bans",
|
|
"channel_ordering",
|
|
"channels",
|
|
"emojis",
|
|
"features",
|
|
"id",
|
|
"invites",
|
|
"members",
|
|
"name",
|
|
"nsfw",
|
|
"premium_progress_bar_enabled",
|
|
"public_updates_channel_id",
|
|
"roles",
|
|
"stickers",
|
|
"template",
|
|
"unavailable",
|
|
"voice_states",
|
|
"webhooks",
|
|
"welcome_screen",
|
|
"widget_enabled"
|
|
]
|
|
},
|
|
"Channel": {
|
|
"type": "object",
|
|
"properties": {
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ChannelType"
|
|
},
|
|
"recipients": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Recipient"
|
|
}
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"parent_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"parent": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"owner_id": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"last_pin_timestamp": {
|
|
"type": "integer"
|
|
},
|
|
"default_auto_archive_duration": {
|
|
"type": "integer"
|
|
},
|
|
"permission_overwrites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwrite"
|
|
}
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
},
|
|
"bitrate": {
|
|
"type": "integer"
|
|
},
|
|
"user_limit": {
|
|
"type": "integer"
|
|
},
|
|
"nsfw": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"topic": {
|
|
"type": "string"
|
|
},
|
|
"invites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Invite"
|
|
}
|
|
},
|
|
"retention_policy_id": {
|
|
"type": "string"
|
|
},
|
|
"messages": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Message"
|
|
}
|
|
},
|
|
"voice_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/VoiceState"
|
|
}
|
|
},
|
|
"read_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ReadState"
|
|
}
|
|
},
|
|
"webhooks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Webhook"
|
|
}
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"position": {
|
|
"description": "Must be calculated Channel.calculatePosition",
|
|
"type": "integer"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"created_at",
|
|
"flags",
|
|
"id",
|
|
"nsfw",
|
|
"owner",
|
|
"parent_id",
|
|
"position",
|
|
"type"
|
|
]
|
|
},
|
|
"ChannelType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
33,
|
|
34,
|
|
35,
|
|
64,
|
|
255
|
|
]
|
|
},
|
|
"Recipient": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"closed": {
|
|
"type": "boolean"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"closed",
|
|
"id",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"User": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"theme_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"phone": {
|
|
"type": "string"
|
|
},
|
|
"desktop": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"mobile": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"premium": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_type": {
|
|
"type": "integer"
|
|
},
|
|
"bot": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"bio": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"system": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"nsfw_allowed": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"mfa_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"webauthn_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"totp_secret": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"totp_last_ticket": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"deleted": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"email": {
|
|
"type": "string"
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"public_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"purchased_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"premium_usage_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"rights": {
|
|
"type": "string"
|
|
},
|
|
"sessions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Session"
|
|
}
|
|
},
|
|
"relationships": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Relationship"
|
|
}
|
|
},
|
|
"connected_accounts": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ConnectedAccount"
|
|
}
|
|
},
|
|
"data": {
|
|
"type": "object",
|
|
"properties": {
|
|
"valid_tokens_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"hash": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"valid_tokens_since"
|
|
]
|
|
},
|
|
"fingerprints": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"settings": {
|
|
"$ref": "#/definitions/UserSettings"
|
|
},
|
|
"extended_settings": {
|
|
"type": "string",
|
|
"default": "{}"
|
|
},
|
|
"security_keys": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SecurityKey"
|
|
}
|
|
},
|
|
"badge_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"connected_accounts",
|
|
"created_at",
|
|
"data",
|
|
"deleted",
|
|
"desktop",
|
|
"disabled",
|
|
"discriminator",
|
|
"extended_settings",
|
|
"fingerprints",
|
|
"flags",
|
|
"id",
|
|
"mfa_enabled",
|
|
"mobile",
|
|
"nsfw_allowed",
|
|
"premium",
|
|
"premium_since",
|
|
"premium_type",
|
|
"premium_usage_flags",
|
|
"public_flags",
|
|
"purchased_flags",
|
|
"relationships",
|
|
"rights",
|
|
"security_keys",
|
|
"sessions",
|
|
"system",
|
|
"username",
|
|
"verified",
|
|
"webauthn_enabled"
|
|
]
|
|
},
|
|
"Session": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"client_info": {
|
|
"type": "object",
|
|
"properties": {
|
|
"client": {
|
|
"type": "string"
|
|
},
|
|
"os": {
|
|
"type": "string"
|
|
},
|
|
"version": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"client",
|
|
"os",
|
|
"version"
|
|
]
|
|
},
|
|
"client_status": {
|
|
"$ref": "#/definitions/ClientStatus"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"activities",
|
|
"client_info",
|
|
"client_status",
|
|
"id",
|
|
"session_id",
|
|
"status",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
]
|
|
},
|
|
"ClientStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"desktop": {
|
|
"type": "string"
|
|
},
|
|
"mobile": {
|
|
"type": "string"
|
|
},
|
|
"web": {
|
|
"type": "string"
|
|
},
|
|
"embedded": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Relationship": {
|
|
"type": "object",
|
|
"properties": {
|
|
"from_id": {
|
|
"type": "string"
|
|
},
|
|
"from": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"to_id": {
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"nickname": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/RelationshipType"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"from",
|
|
"from_id",
|
|
"id",
|
|
"to",
|
|
"to_id",
|
|
"type"
|
|
]
|
|
},
|
|
"RelationshipType": {
|
|
"type": "number",
|
|
"enum": [
|
|
4,
|
|
3,
|
|
2,
|
|
1
|
|
]
|
|
},
|
|
"ConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"external_id": {
|
|
"type": "string"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"friend_sync": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"revoked": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"show_activity": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"visibility": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"integrations": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"metadata_": {},
|
|
"metadata_visibility": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"two_way_link": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"token_data": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/ConnectedAccountTokenData"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"external_id",
|
|
"id",
|
|
"name",
|
|
"type",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"ConnectedAccountTokenData": {
|
|
"type": "object",
|
|
"properties": {
|
|
"access_token": {
|
|
"type": "string"
|
|
},
|
|
"token_type": {
|
|
"type": "string"
|
|
},
|
|
"scope": {
|
|
"type": "string"
|
|
},
|
|
"refresh_token": {
|
|
"type": "string"
|
|
},
|
|
"expires_in": {
|
|
"type": "integer"
|
|
},
|
|
"expires_at": {
|
|
"type": "integer"
|
|
},
|
|
"fetched_at": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"access_token",
|
|
"fetched_at"
|
|
]
|
|
},
|
|
"UserSettings": {
|
|
"type": "object",
|
|
"properties": {
|
|
"index": {
|
|
"type": "string"
|
|
},
|
|
"afk_timeout": {
|
|
"type": "integer",
|
|
"default": 3600
|
|
},
|
|
"allow_accessibility_detection": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"animate_emoji": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"animate_stickers": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"contact_sync_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"convert_emoticons": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"custom_status": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/CustomStatus"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"default_guilds_restricted": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"detect_platform_accounts": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"developer_mode": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"disable_games_tab": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"enable_tts_command": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"friend_discovery_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"friend_source_flags": {
|
|
"$ref": "#/definitions/FriendSourceFlags"
|
|
},
|
|
"gateway_connected": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"gif_auto_play": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"guild_folders": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/GuildFolder"
|
|
},
|
|
"default": []
|
|
},
|
|
"guild_positions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"inline_attachment_media": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"inline_embed_media": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"locale": {
|
|
"type": "string",
|
|
"default": "en-US"
|
|
},
|
|
"message_display_compact": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"native_phone_integration_enabled": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"render_embeds": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"render_reactions": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"restricted_guilds": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"show_current_game": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string",
|
|
"default": "online"
|
|
},
|
|
"stream_notifications_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"theme": {
|
|
"enum": [
|
|
"dark",
|
|
"light"
|
|
],
|
|
"type": "string",
|
|
"default": "dark"
|
|
},
|
|
"timezone_offset": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"view_nsfw_guilds": {
|
|
"type": "boolean",
|
|
"default": true
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk_timeout",
|
|
"allow_accessibility_detection",
|
|
"animate_emoji",
|
|
"animate_stickers",
|
|
"contact_sync_enabled",
|
|
"convert_emoticons",
|
|
"custom_status",
|
|
"default_guilds_restricted",
|
|
"detect_platform_accounts",
|
|
"developer_mode",
|
|
"disable_games_tab",
|
|
"enable_tts_command",
|
|
"explicit_content_filter",
|
|
"friend_discovery_flags",
|
|
"friend_source_flags",
|
|
"gateway_connected",
|
|
"gif_auto_play",
|
|
"guild_folders",
|
|
"guild_positions",
|
|
"index",
|
|
"inline_attachment_media",
|
|
"inline_embed_media",
|
|
"locale",
|
|
"message_display_compact",
|
|
"native_phone_integration_enabled",
|
|
"render_embeds",
|
|
"render_reactions",
|
|
"restricted_guilds",
|
|
"show_current_game",
|
|
"status",
|
|
"stream_notifications_enabled",
|
|
"theme",
|
|
"timezone_offset",
|
|
"view_nsfw_guilds"
|
|
]
|
|
},
|
|
"CustomStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"emoji_id": {
|
|
"type": "string"
|
|
},
|
|
"emoji_name": {
|
|
"type": "string"
|
|
},
|
|
"expires_at": {
|
|
"type": "integer"
|
|
},
|
|
"text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"FriendSourceFlags": {
|
|
"type": "object",
|
|
"properties": {
|
|
"all": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"all"
|
|
]
|
|
},
|
|
"GuildFolder": {
|
|
"type": "object",
|
|
"properties": {
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"guild_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"color",
|
|
"guild_ids",
|
|
"id",
|
|
"name"
|
|
]
|
|
},
|
|
"SecurityKey": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"key_id": {
|
|
"type": "string"
|
|
},
|
|
"public_key": {
|
|
"type": "string"
|
|
},
|
|
"counter": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"counter",
|
|
"id",
|
|
"key_id",
|
|
"name",
|
|
"public_key",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"ChannelPermissionOverwrite": {
|
|
"type": "object",
|
|
"properties": {
|
|
"allow": {
|
|
"type": "string"
|
|
},
|
|
"deny": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"allow",
|
|
"deny",
|
|
"id",
|
|
"type"
|
|
]
|
|
},
|
|
"ChannelPermissionOverwriteType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"Invite": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "string"
|
|
},
|
|
"temporary": {
|
|
"type": "boolean"
|
|
},
|
|
"uses": {
|
|
"type": "integer"
|
|
},
|
|
"max_uses": {
|
|
"type": "integer"
|
|
},
|
|
"max_age": {
|
|
"type": "integer"
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"expires_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"inviter_id": {
|
|
"type": "string"
|
|
},
|
|
"inviter": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"target_user_id": {
|
|
"type": "string"
|
|
},
|
|
"target_user": {
|
|
"type": "string"
|
|
},
|
|
"target_user_type": {
|
|
"type": "integer"
|
|
},
|
|
"vanity_url": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"code",
|
|
"created_at",
|
|
"flags",
|
|
"guild",
|
|
"guild_id",
|
|
"inviter",
|
|
"max_age",
|
|
"max_uses",
|
|
"target_user_id",
|
|
"temporary",
|
|
"uses"
|
|
]
|
|
},
|
|
"Message": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"author_id": {
|
|
"type": "string"
|
|
},
|
|
"author": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"member_id": {
|
|
"type": "string"
|
|
},
|
|
"member": {
|
|
"$ref": "#/definitions/Member"
|
|
},
|
|
"webhook_id": {
|
|
"type": "string"
|
|
},
|
|
"webhook": {
|
|
"$ref": "#/definitions/Webhook"
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"application": {
|
|
"$ref": "#/definitions/Application"
|
|
},
|
|
"content": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"edited_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"tts": {
|
|
"type": "boolean"
|
|
},
|
|
"mention_everyone": {
|
|
"type": "boolean"
|
|
},
|
|
"mentions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/User"
|
|
}
|
|
},
|
|
"mention_roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"mention_channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Channel"
|
|
}
|
|
},
|
|
"sticker_items": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"attachments": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Attachment"
|
|
}
|
|
},
|
|
"embeds": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Embed"
|
|
}
|
|
},
|
|
"reactions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Reaction"
|
|
}
|
|
},
|
|
"nonce": {
|
|
"type": "string"
|
|
},
|
|
"pinned_at": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"pinned": {
|
|
"type": "boolean"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/MessageType"
|
|
},
|
|
"activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "integer"
|
|
},
|
|
"party_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"party_id",
|
|
"type"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"message_reference": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"message_id"
|
|
]
|
|
},
|
|
"referenced_message": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/Message"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"interaction": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/InteractionType"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"type"
|
|
]
|
|
},
|
|
"interaction_metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/InteractionType"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"authorizing_integration_owners": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"command_type": {
|
|
"$ref": "#/definitions/ApplicationCommandType"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"authorizing_integration_owners",
|
|
"command_type",
|
|
"id",
|
|
"name",
|
|
"type",
|
|
"user_id"
|
|
]
|
|
},
|
|
"components": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ActionRowComponent"
|
|
}
|
|
},
|
|
"poll": {
|
|
"$ref": "#/definitions/Poll"
|
|
},
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"embeds",
|
|
"flags",
|
|
"id",
|
|
"mention_channels",
|
|
"mention_roles",
|
|
"mentions",
|
|
"pinned",
|
|
"reactions",
|
|
"timestamp",
|
|
"type"
|
|
]
|
|
},
|
|
"Member": {
|
|
"type": "object",
|
|
"properties": {
|
|
"index": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"nick": {
|
|
"type": "string"
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"joined_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"premium_since": {
|
|
"type": "integer"
|
|
},
|
|
"deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"mute": {
|
|
"type": "boolean"
|
|
},
|
|
"pending": {
|
|
"type": "boolean"
|
|
},
|
|
"settings": {
|
|
"$ref": "#/definitions/UserGuildSettings"
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"joined_by": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"theme_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"communication_disabled_until": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"banner",
|
|
"bio",
|
|
"communication_disabled_until",
|
|
"deaf",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"index",
|
|
"joined_at",
|
|
"joined_by",
|
|
"mute",
|
|
"pending",
|
|
"roles",
|
|
"settings",
|
|
"user"
|
|
]
|
|
},
|
|
"Role": {
|
|
"type": "object",
|
|
"properties": {
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"hoist": {
|
|
"type": "boolean"
|
|
},
|
|
"managed": {
|
|
"type": "boolean"
|
|
},
|
|
"mentionable": {
|
|
"type": "boolean"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"permissions": {
|
|
"type": "string"
|
|
},
|
|
"position": {
|
|
"type": "integer"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"unicode_emoji": {
|
|
"type": "string"
|
|
},
|
|
"tags": {
|
|
"type": "object",
|
|
"properties": {
|
|
"bot_id": {
|
|
"type": "string"
|
|
},
|
|
"integration_id": {
|
|
"type": "string"
|
|
},
|
|
"premium_subscriber": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"colors": {
|
|
"$ref": "#/definitions/RoleColors"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"color",
|
|
"colors",
|
|
"flags",
|
|
"guild",
|
|
"guild_id",
|
|
"hoist",
|
|
"id",
|
|
"managed",
|
|
"mentionable",
|
|
"name",
|
|
"permissions",
|
|
"position"
|
|
]
|
|
},
|
|
"RoleColors": {
|
|
"type": "object",
|
|
"properties": {
|
|
"primary_color": {
|
|
"type": "integer"
|
|
},
|
|
"secondary_color": {
|
|
"type": "integer"
|
|
},
|
|
"tertiary_color": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"primary_color"
|
|
]
|
|
},
|
|
"UserGuildSettings": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_overrides": {
|
|
"anyOf": [
|
|
{
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"$ref": "#/definitions/ChannelOverride"
|
|
}
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mobile_push": {
|
|
"type": "boolean"
|
|
},
|
|
"mute_config": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress_everyone": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress_roles": {
|
|
"type": "boolean"
|
|
},
|
|
"version": {
|
|
"type": "integer"
|
|
},
|
|
"guild_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"mute_scheduled_events": {
|
|
"type": "boolean"
|
|
},
|
|
"hide_muted_channels": {
|
|
"type": "boolean"
|
|
},
|
|
"notify_highlights": {
|
|
"type": "integer",
|
|
"const": 0
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_overrides",
|
|
"flags",
|
|
"guild_id",
|
|
"hide_muted_channels",
|
|
"message_notifications",
|
|
"mobile_push",
|
|
"mute_config",
|
|
"mute_scheduled_events",
|
|
"muted",
|
|
"notify_highlights",
|
|
"suppress_everyone",
|
|
"suppress_roles",
|
|
"version"
|
|
]
|
|
},
|
|
"ChannelOverride": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_id",
|
|
"message_notifications",
|
|
"mute_config",
|
|
"muted"
|
|
]
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"Webhook": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/WebhookType"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"token": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"application": {
|
|
"$ref": "#/definitions/Application"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"source_guild_id": {
|
|
"type": "string"
|
|
},
|
|
"source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"source_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"source_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"application",
|
|
"application_id",
|
|
"avatar",
|
|
"channel",
|
|
"channel_id",
|
|
"id",
|
|
"name",
|
|
"source_channel",
|
|
"source_channel_id",
|
|
"type",
|
|
"url",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"WebhookType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3
|
|
]
|
|
},
|
|
"Application": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"summary": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"type": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true
|
|
},
|
|
"hook": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"bot_public": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"bot_require_code_grant": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"verify_key": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"redirect_uris": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"rpc_application_state": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"store_application_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"verification_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"interactions_endpoint_url": {
|
|
"type": "string"
|
|
},
|
|
"integration_public": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"integration_require_code_grant": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"discoverability_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"discovery_eligibility_flags": {
|
|
"type": "integer",
|
|
"default": 2240
|
|
},
|
|
"bot": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"tags": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"cover_image": {
|
|
"type": "string"
|
|
},
|
|
"install_params": {
|
|
"type": "object",
|
|
"properties": {
|
|
"scopes": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"permissions": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"permissions",
|
|
"scopes"
|
|
]
|
|
},
|
|
"terms_of_service_url": {
|
|
"type": "string"
|
|
},
|
|
"privacy_policy_url": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"custom_install_url": {
|
|
"type": "string"
|
|
},
|
|
"team": {
|
|
"$ref": "#/definitions/Team"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"description",
|
|
"discoverability_state",
|
|
"discovery_eligibility_flags",
|
|
"flags",
|
|
"hook",
|
|
"id",
|
|
"integration_public",
|
|
"integration_require_code_grant",
|
|
"name",
|
|
"owner",
|
|
"redirect_uris",
|
|
"rpc_application_state",
|
|
"store_application_state",
|
|
"summary",
|
|
"verification_state",
|
|
"verify_key"
|
|
]
|
|
},
|
|
"Team": {
|
|
"type": "object",
|
|
"properties": {
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"members": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/TeamMember"
|
|
}
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"owner_user_id": {
|
|
"type": "string"
|
|
},
|
|
"owner_user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"members",
|
|
"name",
|
|
"owner_user",
|
|
"owner_user_id"
|
|
]
|
|
},
|
|
"TeamMember": {
|
|
"type": "object",
|
|
"properties": {
|
|
"membership_state": {
|
|
"$ref": "#/definitions/TeamMemberState"
|
|
},
|
|
"permissions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"role": {
|
|
"$ref": "#/definitions/TeamMemberRole"
|
|
},
|
|
"team_id": {
|
|
"type": "string"
|
|
},
|
|
"team": {
|
|
"$ref": "#/definitions/Team"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"membership_state",
|
|
"permissions",
|
|
"role",
|
|
"team",
|
|
"team_id",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"TeamMemberState": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"TeamMemberRole": {
|
|
"type": "string",
|
|
"enum": [
|
|
"admin",
|
|
"developer",
|
|
"read_only"
|
|
]
|
|
},
|
|
"Sticker": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"available": {
|
|
"type": "boolean"
|
|
},
|
|
"tags": {
|
|
"type": "string"
|
|
},
|
|
"pack_id": {
|
|
"type": "string"
|
|
},
|
|
"pack": {
|
|
"$ref": "#/definitions/StickerPack"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/StickerType"
|
|
},
|
|
"format_type": {
|
|
"$ref": "#/definitions/StickerFormatType"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"format_type",
|
|
"id",
|
|
"name",
|
|
"pack",
|
|
"type"
|
|
]
|
|
},
|
|
"StickerPack": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"banner_asset_id": {
|
|
"type": "string"
|
|
},
|
|
"stickers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"cover_sticker_id": {
|
|
"type": "string"
|
|
},
|
|
"cover_sticker": {
|
|
"$ref": "#/definitions/Sticker"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"stickers"
|
|
]
|
|
},
|
|
"StickerType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"StickerFormatType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4
|
|
]
|
|
},
|
|
"Attachment": {
|
|
"type": "object",
|
|
"properties": {
|
|
"filename": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "integer"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
},
|
|
"content_type": {
|
|
"type": "string"
|
|
},
|
|
"message_id": {
|
|
"type": "string"
|
|
},
|
|
"message": {
|
|
"$ref": "#/definitions/Message"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"filename",
|
|
"id",
|
|
"message",
|
|
"message_id",
|
|
"proxy_url",
|
|
"size",
|
|
"url"
|
|
]
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"Reaction": {
|
|
"type": "object",
|
|
"properties": {
|
|
"count": {
|
|
"type": "integer"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"user_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"count",
|
|
"emoji",
|
|
"user_ids"
|
|
]
|
|
},
|
|
"PartialEmoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name"
|
|
]
|
|
},
|
|
"MessageType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
16,
|
|
19,
|
|
20,
|
|
41,
|
|
42,
|
|
43,
|
|
50,
|
|
63,
|
|
255
|
|
]
|
|
},
|
|
"InteractionType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5
|
|
]
|
|
},
|
|
"ApplicationCommandType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4
|
|
]
|
|
},
|
|
"ActionRowComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.ActionRow"
|
|
},
|
|
"components": {
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/ButtonComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/SelectMenuComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/StringSelectMenuComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/TextInputComponent"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"components",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.ActionRow": {
|
|
"type": "number",
|
|
"const": 1
|
|
},
|
|
"ButtonComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.Button"
|
|
},
|
|
"style": {
|
|
"$ref": "#/definitions/ButtonStyle"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"sku_id": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"style",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.Button": {
|
|
"type": "number",
|
|
"const": 2
|
|
},
|
|
"ButtonStyle": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6
|
|
]
|
|
},
|
|
"SelectMenuComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": [
|
|
3,
|
|
5,
|
|
6,
|
|
7,
|
|
8
|
|
],
|
|
"type": "number"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_types": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
},
|
|
"default_values": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuDefaultOption"
|
|
}
|
|
},
|
|
"min_values": {
|
|
"type": "integer"
|
|
},
|
|
"max_values": {
|
|
"type": "integer"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"type"
|
|
]
|
|
},
|
|
"SelectMenuDefaultOption": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"channel",
|
|
"role",
|
|
"user"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"type"
|
|
]
|
|
},
|
|
"StringSelectMenuComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.StringSelect"
|
|
},
|
|
"options": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuOption"
|
|
}
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_types": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
},
|
|
"default_values": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuDefaultOption"
|
|
}
|
|
},
|
|
"min_values": {
|
|
"type": "integer"
|
|
},
|
|
"max_values": {
|
|
"type": "integer"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"options",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.StringSelect": {
|
|
"type": "number",
|
|
"const": 3
|
|
},
|
|
"SelectMenuOption": {
|
|
"type": "object",
|
|
"properties": {
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"default": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"label",
|
|
"value"
|
|
]
|
|
},
|
|
"TextInputComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.TextInput"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"style": {
|
|
"$ref": "#/definitions/TextInputStyle"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"min_length": {
|
|
"type": "integer"
|
|
},
|
|
"max_length": {
|
|
"type": "integer"
|
|
},
|
|
"required": {
|
|
"type": "boolean"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"label",
|
|
"style",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.TextInput": {
|
|
"type": "number",
|
|
"const": 4
|
|
},
|
|
"TextInputStyle": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"Poll": {
|
|
"type": "object",
|
|
"properties": {
|
|
"question": {
|
|
"$ref": "#/definitions/PollMedia"
|
|
},
|
|
"answers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/PollAnswer"
|
|
}
|
|
},
|
|
"expiry": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"allow_multiselect": {
|
|
"type": "boolean"
|
|
},
|
|
"results": {
|
|
"$ref": "#/definitions/PollResult"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"allow_multiselect",
|
|
"answers",
|
|
"expiry",
|
|
"question"
|
|
]
|
|
},
|
|
"PollMedia": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"PollAnswer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"answer_id": {
|
|
"type": "string"
|
|
},
|
|
"poll_media": {
|
|
"$ref": "#/definitions/PollMedia"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"poll_media"
|
|
]
|
|
},
|
|
"PollResult": {
|
|
"type": "object",
|
|
"properties": {
|
|
"is_finalized": {
|
|
"type": "boolean"
|
|
},
|
|
"answer_counts": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/PollAnswerCount"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"answer_counts",
|
|
"is_finalized"
|
|
]
|
|
},
|
|
"PollAnswerCount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"count": {
|
|
"type": "integer"
|
|
},
|
|
"me_voted": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"count",
|
|
"id",
|
|
"me_voted"
|
|
]
|
|
},
|
|
"VoiceState": {
|
|
"type": "object",
|
|
"properties": {
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"member": {
|
|
"$ref": "#/definitions/Member"
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
},
|
|
"token": {
|
|
"type": "string"
|
|
},
|
|
"deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"mute": {
|
|
"type": "boolean"
|
|
},
|
|
"self_deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"self_mute": {
|
|
"type": "boolean"
|
|
},
|
|
"self_stream": {
|
|
"type": "boolean"
|
|
},
|
|
"self_video": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress": {
|
|
"type": "boolean"
|
|
},
|
|
"request_to_speak_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"deaf",
|
|
"guild_id",
|
|
"id",
|
|
"member",
|
|
"mute",
|
|
"self_deaf",
|
|
"self_mute",
|
|
"self_video",
|
|
"session_id",
|
|
"suppress",
|
|
"token",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"ReadState": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"public_ack": {
|
|
"type": "string"
|
|
},
|
|
"notifications_cursor": {
|
|
"type": "string"
|
|
},
|
|
"last_pin_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"mention_count": {
|
|
"type": "integer"
|
|
},
|
|
"manual": {
|
|
"type": "boolean"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"id",
|
|
"last_message_id",
|
|
"manual",
|
|
"mention_count",
|
|
"notifications_cursor",
|
|
"public_ack",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Ban": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"executor_id": {
|
|
"type": "string"
|
|
},
|
|
"executor": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"ip": {
|
|
"type": "string"
|
|
},
|
|
"reason": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"executor",
|
|
"executor_id",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"ip",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Template": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"usage_count": {
|
|
"type": "integer"
|
|
},
|
|
"creator_id": {
|
|
"type": "string"
|
|
},
|
|
"creator": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"updated_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"source_guild_id": {
|
|
"type": "string"
|
|
},
|
|
"source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"serialized_source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"code",
|
|
"created_at",
|
|
"creator",
|
|
"creator_id",
|
|
"id",
|
|
"name",
|
|
"serialized_source_guild",
|
|
"source_guild",
|
|
"source_guild_id",
|
|
"updated_at"
|
|
]
|
|
},
|
|
"Emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"animated": {
|
|
"type": "boolean"
|
|
},
|
|
"available": {
|
|
"type": "boolean"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"managed": {
|
|
"type": "boolean"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"require_colons": {
|
|
"type": "boolean"
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"groups": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"available",
|
|
"groups",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"managed",
|
|
"name",
|
|
"require_colons",
|
|
"roles",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"GuildWelcomeScreen": {
|
|
"type": "object",
|
|
"properties": {
|
|
"enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"welcome_channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"emoji_id": {
|
|
"type": "string"
|
|
},
|
|
"emoji_name": {
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_id",
|
|
"description"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"description",
|
|
"enabled",
|
|
"welcome_channels"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"EmojiSourceResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": [
|
|
"APPLICATION",
|
|
"GUILD"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/EmojiGuild"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"application": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/EmojiApplication"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"type"
|
|
],
|
|
"definitions": {
|
|
"EmojiGuild": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"description": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"features": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"emojis": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Emoji"
|
|
}
|
|
},
|
|
"premium_tier": {
|
|
"type": "integer"
|
|
},
|
|
"premium_subscription_count": {
|
|
"type": "integer"
|
|
},
|
|
"approximate_member_count": {
|
|
"type": "integer"
|
|
},
|
|
"approximate_presence_count": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"emojis",
|
|
"features",
|
|
"id",
|
|
"name",
|
|
"premium_tier"
|
|
]
|
|
},
|
|
"Emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"animated": {
|
|
"type": "boolean"
|
|
},
|
|
"available": {
|
|
"type": "boolean"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"managed": {
|
|
"type": "boolean"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"require_colons": {
|
|
"type": "boolean"
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"groups": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"available",
|
|
"groups",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"managed",
|
|
"name",
|
|
"require_colons",
|
|
"roles",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Guild": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"afk_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"afk_timeout": {
|
|
"type": "integer"
|
|
},
|
|
"bans": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Ban"
|
|
}
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"default_message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"discovery_splash": {
|
|
"type": "string"
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer"
|
|
},
|
|
"features": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"primary_category_id": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"large": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"max_members": {
|
|
"type": "integer"
|
|
},
|
|
"max_presences": {
|
|
"type": "integer"
|
|
},
|
|
"max_video_channel_users": {
|
|
"type": "integer"
|
|
},
|
|
"member_count": {
|
|
"type": "integer"
|
|
},
|
|
"presence_count": {
|
|
"type": "integer"
|
|
},
|
|
"members": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Member"
|
|
}
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Channel"
|
|
}
|
|
},
|
|
"template_id": {
|
|
"type": "string"
|
|
},
|
|
"template": {
|
|
"$ref": "#/definitions/Template"
|
|
},
|
|
"emojis": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Emoji"
|
|
}
|
|
},
|
|
"stickers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"invites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Invite"
|
|
}
|
|
},
|
|
"voice_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/VoiceState"
|
|
}
|
|
},
|
|
"webhooks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Webhook"
|
|
}
|
|
},
|
|
"mfa_level": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"owner_id": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"preferred_locale": {
|
|
"type": "string"
|
|
},
|
|
"premium_subscription_count": {
|
|
"type": "integer"
|
|
},
|
|
"premium_tier": {
|
|
"type": "integer"
|
|
},
|
|
"public_updates_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"public_updates_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"rules_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"rules_channel": {
|
|
"type": "string"
|
|
},
|
|
"region": {
|
|
"type": "string"
|
|
},
|
|
"splash": {
|
|
"type": "string"
|
|
},
|
|
"system_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"system_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"system_channel_flags": {
|
|
"type": "integer"
|
|
},
|
|
"unavailable": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"verification_level": {
|
|
"type": "integer"
|
|
},
|
|
"welcome_screen": {
|
|
"$ref": "#/definitions/GuildWelcomeScreen",
|
|
"description": "DEPRECATED: Look at the new Guild onboarding screens."
|
|
},
|
|
"widget_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"widget_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"widget_enabled": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"nsfw_level": {
|
|
"type": "integer"
|
|
},
|
|
"nsfw": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"parent": {
|
|
"type": "string"
|
|
},
|
|
"permissions": {
|
|
"type": "integer"
|
|
},
|
|
"premium_progress_bar_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"channel_ordering": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bans",
|
|
"channel_ordering",
|
|
"channels",
|
|
"emojis",
|
|
"features",
|
|
"id",
|
|
"invites",
|
|
"members",
|
|
"name",
|
|
"nsfw",
|
|
"premium_progress_bar_enabled",
|
|
"public_updates_channel_id",
|
|
"roles",
|
|
"stickers",
|
|
"template",
|
|
"unavailable",
|
|
"voice_states",
|
|
"webhooks",
|
|
"welcome_screen",
|
|
"widget_enabled"
|
|
]
|
|
},
|
|
"Channel": {
|
|
"type": "object",
|
|
"properties": {
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ChannelType"
|
|
},
|
|
"recipients": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Recipient"
|
|
}
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"parent_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"parent": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"owner_id": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"last_pin_timestamp": {
|
|
"type": "integer"
|
|
},
|
|
"default_auto_archive_duration": {
|
|
"type": "integer"
|
|
},
|
|
"permission_overwrites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwrite"
|
|
}
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
},
|
|
"bitrate": {
|
|
"type": "integer"
|
|
},
|
|
"user_limit": {
|
|
"type": "integer"
|
|
},
|
|
"nsfw": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"topic": {
|
|
"type": "string"
|
|
},
|
|
"invites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Invite"
|
|
}
|
|
},
|
|
"retention_policy_id": {
|
|
"type": "string"
|
|
},
|
|
"messages": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Message"
|
|
}
|
|
},
|
|
"voice_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/VoiceState"
|
|
}
|
|
},
|
|
"read_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ReadState"
|
|
}
|
|
},
|
|
"webhooks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Webhook"
|
|
}
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"position": {
|
|
"description": "Must be calculated Channel.calculatePosition",
|
|
"type": "integer"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"created_at",
|
|
"flags",
|
|
"id",
|
|
"nsfw",
|
|
"owner",
|
|
"parent_id",
|
|
"position",
|
|
"type"
|
|
]
|
|
},
|
|
"ChannelType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
33,
|
|
34,
|
|
35,
|
|
64,
|
|
255
|
|
]
|
|
},
|
|
"Recipient": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"closed": {
|
|
"type": "boolean"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"closed",
|
|
"id",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"User": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"theme_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"phone": {
|
|
"type": "string"
|
|
},
|
|
"desktop": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"mobile": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"premium": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_type": {
|
|
"type": "integer"
|
|
},
|
|
"bot": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"bio": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"system": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"nsfw_allowed": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"mfa_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"webauthn_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"totp_secret": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"totp_last_ticket": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"deleted": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"email": {
|
|
"type": "string"
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"public_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"purchased_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"premium_usage_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"rights": {
|
|
"type": "string"
|
|
},
|
|
"sessions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Session"
|
|
}
|
|
},
|
|
"relationships": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Relationship"
|
|
}
|
|
},
|
|
"connected_accounts": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ConnectedAccount"
|
|
}
|
|
},
|
|
"data": {
|
|
"type": "object",
|
|
"properties": {
|
|
"valid_tokens_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"hash": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"valid_tokens_since"
|
|
]
|
|
},
|
|
"fingerprints": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"settings": {
|
|
"$ref": "#/definitions/UserSettings"
|
|
},
|
|
"extended_settings": {
|
|
"type": "string",
|
|
"default": "{}"
|
|
},
|
|
"security_keys": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SecurityKey"
|
|
}
|
|
},
|
|
"badge_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"connected_accounts",
|
|
"created_at",
|
|
"data",
|
|
"deleted",
|
|
"desktop",
|
|
"disabled",
|
|
"discriminator",
|
|
"extended_settings",
|
|
"fingerprints",
|
|
"flags",
|
|
"id",
|
|
"mfa_enabled",
|
|
"mobile",
|
|
"nsfw_allowed",
|
|
"premium",
|
|
"premium_since",
|
|
"premium_type",
|
|
"premium_usage_flags",
|
|
"public_flags",
|
|
"purchased_flags",
|
|
"relationships",
|
|
"rights",
|
|
"security_keys",
|
|
"sessions",
|
|
"system",
|
|
"username",
|
|
"verified",
|
|
"webauthn_enabled"
|
|
]
|
|
},
|
|
"Session": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"client_info": {
|
|
"type": "object",
|
|
"properties": {
|
|
"client": {
|
|
"type": "string"
|
|
},
|
|
"os": {
|
|
"type": "string"
|
|
},
|
|
"version": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"client",
|
|
"os",
|
|
"version"
|
|
]
|
|
},
|
|
"client_status": {
|
|
"$ref": "#/definitions/ClientStatus"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"activities",
|
|
"client_info",
|
|
"client_status",
|
|
"id",
|
|
"session_id",
|
|
"status",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
]
|
|
},
|
|
"ClientStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"desktop": {
|
|
"type": "string"
|
|
},
|
|
"mobile": {
|
|
"type": "string"
|
|
},
|
|
"web": {
|
|
"type": "string"
|
|
},
|
|
"embedded": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Relationship": {
|
|
"type": "object",
|
|
"properties": {
|
|
"from_id": {
|
|
"type": "string"
|
|
},
|
|
"from": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"to_id": {
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"nickname": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/RelationshipType"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"from",
|
|
"from_id",
|
|
"id",
|
|
"to",
|
|
"to_id",
|
|
"type"
|
|
]
|
|
},
|
|
"RelationshipType": {
|
|
"type": "number",
|
|
"enum": [
|
|
4,
|
|
3,
|
|
2,
|
|
1
|
|
]
|
|
},
|
|
"ConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"external_id": {
|
|
"type": "string"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"friend_sync": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"revoked": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"show_activity": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"visibility": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"integrations": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"metadata_": {},
|
|
"metadata_visibility": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"two_way_link": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"token_data": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/ConnectedAccountTokenData"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"external_id",
|
|
"id",
|
|
"name",
|
|
"type",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"ConnectedAccountTokenData": {
|
|
"type": "object",
|
|
"properties": {
|
|
"access_token": {
|
|
"type": "string"
|
|
},
|
|
"token_type": {
|
|
"type": "string"
|
|
},
|
|
"scope": {
|
|
"type": "string"
|
|
},
|
|
"refresh_token": {
|
|
"type": "string"
|
|
},
|
|
"expires_in": {
|
|
"type": "integer"
|
|
},
|
|
"expires_at": {
|
|
"type": "integer"
|
|
},
|
|
"fetched_at": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"access_token",
|
|
"fetched_at"
|
|
]
|
|
},
|
|
"UserSettings": {
|
|
"type": "object",
|
|
"properties": {
|
|
"index": {
|
|
"type": "string"
|
|
},
|
|
"afk_timeout": {
|
|
"type": "integer",
|
|
"default": 3600
|
|
},
|
|
"allow_accessibility_detection": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"animate_emoji": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"animate_stickers": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"contact_sync_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"convert_emoticons": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"custom_status": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/CustomStatus"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"default_guilds_restricted": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"detect_platform_accounts": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"developer_mode": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"disable_games_tab": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"enable_tts_command": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"friend_discovery_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"friend_source_flags": {
|
|
"$ref": "#/definitions/FriendSourceFlags"
|
|
},
|
|
"gateway_connected": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"gif_auto_play": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"guild_folders": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/GuildFolder"
|
|
},
|
|
"default": []
|
|
},
|
|
"guild_positions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"inline_attachment_media": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"inline_embed_media": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"locale": {
|
|
"type": "string",
|
|
"default": "en-US"
|
|
},
|
|
"message_display_compact": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"native_phone_integration_enabled": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"render_embeds": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"render_reactions": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"restricted_guilds": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"show_current_game": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string",
|
|
"default": "online"
|
|
},
|
|
"stream_notifications_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"theme": {
|
|
"enum": [
|
|
"dark",
|
|
"light"
|
|
],
|
|
"type": "string",
|
|
"default": "dark"
|
|
},
|
|
"timezone_offset": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"view_nsfw_guilds": {
|
|
"type": "boolean",
|
|
"default": true
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk_timeout",
|
|
"allow_accessibility_detection",
|
|
"animate_emoji",
|
|
"animate_stickers",
|
|
"contact_sync_enabled",
|
|
"convert_emoticons",
|
|
"custom_status",
|
|
"default_guilds_restricted",
|
|
"detect_platform_accounts",
|
|
"developer_mode",
|
|
"disable_games_tab",
|
|
"enable_tts_command",
|
|
"explicit_content_filter",
|
|
"friend_discovery_flags",
|
|
"friend_source_flags",
|
|
"gateway_connected",
|
|
"gif_auto_play",
|
|
"guild_folders",
|
|
"guild_positions",
|
|
"index",
|
|
"inline_attachment_media",
|
|
"inline_embed_media",
|
|
"locale",
|
|
"message_display_compact",
|
|
"native_phone_integration_enabled",
|
|
"render_embeds",
|
|
"render_reactions",
|
|
"restricted_guilds",
|
|
"show_current_game",
|
|
"status",
|
|
"stream_notifications_enabled",
|
|
"theme",
|
|
"timezone_offset",
|
|
"view_nsfw_guilds"
|
|
]
|
|
},
|
|
"CustomStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"emoji_id": {
|
|
"type": "string"
|
|
},
|
|
"emoji_name": {
|
|
"type": "string"
|
|
},
|
|
"expires_at": {
|
|
"type": "integer"
|
|
},
|
|
"text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"FriendSourceFlags": {
|
|
"type": "object",
|
|
"properties": {
|
|
"all": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"all"
|
|
]
|
|
},
|
|
"GuildFolder": {
|
|
"type": "object",
|
|
"properties": {
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"guild_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"color",
|
|
"guild_ids",
|
|
"id",
|
|
"name"
|
|
]
|
|
},
|
|
"SecurityKey": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"key_id": {
|
|
"type": "string"
|
|
},
|
|
"public_key": {
|
|
"type": "string"
|
|
},
|
|
"counter": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"counter",
|
|
"id",
|
|
"key_id",
|
|
"name",
|
|
"public_key",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"ChannelPermissionOverwrite": {
|
|
"type": "object",
|
|
"properties": {
|
|
"allow": {
|
|
"type": "string"
|
|
},
|
|
"deny": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"allow",
|
|
"deny",
|
|
"id",
|
|
"type"
|
|
]
|
|
},
|
|
"ChannelPermissionOverwriteType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"Invite": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "string"
|
|
},
|
|
"temporary": {
|
|
"type": "boolean"
|
|
},
|
|
"uses": {
|
|
"type": "integer"
|
|
},
|
|
"max_uses": {
|
|
"type": "integer"
|
|
},
|
|
"max_age": {
|
|
"type": "integer"
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"expires_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"inviter_id": {
|
|
"type": "string"
|
|
},
|
|
"inviter": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"target_user_id": {
|
|
"type": "string"
|
|
},
|
|
"target_user": {
|
|
"type": "string"
|
|
},
|
|
"target_user_type": {
|
|
"type": "integer"
|
|
},
|
|
"vanity_url": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"code",
|
|
"created_at",
|
|
"flags",
|
|
"guild",
|
|
"guild_id",
|
|
"inviter",
|
|
"max_age",
|
|
"max_uses",
|
|
"target_user_id",
|
|
"temporary",
|
|
"uses"
|
|
]
|
|
},
|
|
"Message": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"author_id": {
|
|
"type": "string"
|
|
},
|
|
"author": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"member_id": {
|
|
"type": "string"
|
|
},
|
|
"member": {
|
|
"$ref": "#/definitions/Member"
|
|
},
|
|
"webhook_id": {
|
|
"type": "string"
|
|
},
|
|
"webhook": {
|
|
"$ref": "#/definitions/Webhook"
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"application": {
|
|
"$ref": "#/definitions/Application"
|
|
},
|
|
"content": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"edited_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"tts": {
|
|
"type": "boolean"
|
|
},
|
|
"mention_everyone": {
|
|
"type": "boolean"
|
|
},
|
|
"mentions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/User"
|
|
}
|
|
},
|
|
"mention_roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"mention_channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Channel"
|
|
}
|
|
},
|
|
"sticker_items": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"attachments": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Attachment"
|
|
}
|
|
},
|
|
"embeds": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Embed"
|
|
}
|
|
},
|
|
"reactions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Reaction"
|
|
}
|
|
},
|
|
"nonce": {
|
|
"type": "string"
|
|
},
|
|
"pinned_at": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"pinned": {
|
|
"type": "boolean"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/MessageType"
|
|
},
|
|
"activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "integer"
|
|
},
|
|
"party_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"party_id",
|
|
"type"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"message_reference": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"message_id"
|
|
]
|
|
},
|
|
"referenced_message": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/Message"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"interaction": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/InteractionType"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"type"
|
|
]
|
|
},
|
|
"interaction_metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/InteractionType"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"authorizing_integration_owners": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"command_type": {
|
|
"$ref": "#/definitions/ApplicationCommandType"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"authorizing_integration_owners",
|
|
"command_type",
|
|
"id",
|
|
"name",
|
|
"type",
|
|
"user_id"
|
|
]
|
|
},
|
|
"components": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ActionRowComponent"
|
|
}
|
|
},
|
|
"poll": {
|
|
"$ref": "#/definitions/Poll"
|
|
},
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"embeds",
|
|
"flags",
|
|
"id",
|
|
"mention_channels",
|
|
"mention_roles",
|
|
"mentions",
|
|
"pinned",
|
|
"reactions",
|
|
"timestamp",
|
|
"type"
|
|
]
|
|
},
|
|
"Member": {
|
|
"type": "object",
|
|
"properties": {
|
|
"index": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"nick": {
|
|
"type": "string"
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"joined_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"premium_since": {
|
|
"type": "integer"
|
|
},
|
|
"deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"mute": {
|
|
"type": "boolean"
|
|
},
|
|
"pending": {
|
|
"type": "boolean"
|
|
},
|
|
"settings": {
|
|
"$ref": "#/definitions/UserGuildSettings"
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"joined_by": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"theme_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"communication_disabled_until": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"banner",
|
|
"bio",
|
|
"communication_disabled_until",
|
|
"deaf",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"index",
|
|
"joined_at",
|
|
"joined_by",
|
|
"mute",
|
|
"pending",
|
|
"roles",
|
|
"settings",
|
|
"user"
|
|
]
|
|
},
|
|
"Role": {
|
|
"type": "object",
|
|
"properties": {
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"hoist": {
|
|
"type": "boolean"
|
|
},
|
|
"managed": {
|
|
"type": "boolean"
|
|
},
|
|
"mentionable": {
|
|
"type": "boolean"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"permissions": {
|
|
"type": "string"
|
|
},
|
|
"position": {
|
|
"type": "integer"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"unicode_emoji": {
|
|
"type": "string"
|
|
},
|
|
"tags": {
|
|
"type": "object",
|
|
"properties": {
|
|
"bot_id": {
|
|
"type": "string"
|
|
},
|
|
"integration_id": {
|
|
"type": "string"
|
|
},
|
|
"premium_subscriber": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"colors": {
|
|
"$ref": "#/definitions/RoleColors"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"color",
|
|
"colors",
|
|
"flags",
|
|
"guild",
|
|
"guild_id",
|
|
"hoist",
|
|
"id",
|
|
"managed",
|
|
"mentionable",
|
|
"name",
|
|
"permissions",
|
|
"position"
|
|
]
|
|
},
|
|
"RoleColors": {
|
|
"type": "object",
|
|
"properties": {
|
|
"primary_color": {
|
|
"type": "integer"
|
|
},
|
|
"secondary_color": {
|
|
"type": "integer"
|
|
},
|
|
"tertiary_color": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"primary_color"
|
|
]
|
|
},
|
|
"UserGuildSettings": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_overrides": {
|
|
"anyOf": [
|
|
{
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"$ref": "#/definitions/ChannelOverride"
|
|
}
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mobile_push": {
|
|
"type": "boolean"
|
|
},
|
|
"mute_config": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress_everyone": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress_roles": {
|
|
"type": "boolean"
|
|
},
|
|
"version": {
|
|
"type": "integer"
|
|
},
|
|
"guild_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"mute_scheduled_events": {
|
|
"type": "boolean"
|
|
},
|
|
"hide_muted_channels": {
|
|
"type": "boolean"
|
|
},
|
|
"notify_highlights": {
|
|
"type": "integer",
|
|
"const": 0
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_overrides",
|
|
"flags",
|
|
"guild_id",
|
|
"hide_muted_channels",
|
|
"message_notifications",
|
|
"mobile_push",
|
|
"mute_config",
|
|
"mute_scheduled_events",
|
|
"muted",
|
|
"notify_highlights",
|
|
"suppress_everyone",
|
|
"suppress_roles",
|
|
"version"
|
|
]
|
|
},
|
|
"ChannelOverride": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_id",
|
|
"message_notifications",
|
|
"mute_config",
|
|
"muted"
|
|
]
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"Webhook": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/WebhookType"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"token": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"application": {
|
|
"$ref": "#/definitions/Application"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"source_guild_id": {
|
|
"type": "string"
|
|
},
|
|
"source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"source_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"source_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"application",
|
|
"application_id",
|
|
"avatar",
|
|
"channel",
|
|
"channel_id",
|
|
"id",
|
|
"name",
|
|
"source_channel",
|
|
"source_channel_id",
|
|
"type",
|
|
"url",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"WebhookType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3
|
|
]
|
|
},
|
|
"Application": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"summary": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"type": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true
|
|
},
|
|
"hook": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"bot_public": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"bot_require_code_grant": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"verify_key": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"redirect_uris": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"rpc_application_state": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"store_application_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"verification_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"interactions_endpoint_url": {
|
|
"type": "string"
|
|
},
|
|
"integration_public": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"integration_require_code_grant": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"discoverability_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"discovery_eligibility_flags": {
|
|
"type": "integer",
|
|
"default": 2240
|
|
},
|
|
"bot": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"tags": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"cover_image": {
|
|
"type": "string"
|
|
},
|
|
"install_params": {
|
|
"type": "object",
|
|
"properties": {
|
|
"scopes": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"permissions": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"permissions",
|
|
"scopes"
|
|
]
|
|
},
|
|
"terms_of_service_url": {
|
|
"type": "string"
|
|
},
|
|
"privacy_policy_url": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"custom_install_url": {
|
|
"type": "string"
|
|
},
|
|
"team": {
|
|
"$ref": "#/definitions/Team"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"description",
|
|
"discoverability_state",
|
|
"discovery_eligibility_flags",
|
|
"flags",
|
|
"hook",
|
|
"id",
|
|
"integration_public",
|
|
"integration_require_code_grant",
|
|
"name",
|
|
"owner",
|
|
"redirect_uris",
|
|
"rpc_application_state",
|
|
"store_application_state",
|
|
"summary",
|
|
"verification_state",
|
|
"verify_key"
|
|
]
|
|
},
|
|
"Team": {
|
|
"type": "object",
|
|
"properties": {
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"members": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/TeamMember"
|
|
}
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"owner_user_id": {
|
|
"type": "string"
|
|
},
|
|
"owner_user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"members",
|
|
"name",
|
|
"owner_user",
|
|
"owner_user_id"
|
|
]
|
|
},
|
|
"TeamMember": {
|
|
"type": "object",
|
|
"properties": {
|
|
"membership_state": {
|
|
"$ref": "#/definitions/TeamMemberState"
|
|
},
|
|
"permissions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"role": {
|
|
"$ref": "#/definitions/TeamMemberRole"
|
|
},
|
|
"team_id": {
|
|
"type": "string"
|
|
},
|
|
"team": {
|
|
"$ref": "#/definitions/Team"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"membership_state",
|
|
"permissions",
|
|
"role",
|
|
"team",
|
|
"team_id",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"TeamMemberState": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"TeamMemberRole": {
|
|
"type": "string",
|
|
"enum": [
|
|
"admin",
|
|
"developer",
|
|
"read_only"
|
|
]
|
|
},
|
|
"Sticker": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"available": {
|
|
"type": "boolean"
|
|
},
|
|
"tags": {
|
|
"type": "string"
|
|
},
|
|
"pack_id": {
|
|
"type": "string"
|
|
},
|
|
"pack": {
|
|
"$ref": "#/definitions/StickerPack"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/StickerType"
|
|
},
|
|
"format_type": {
|
|
"$ref": "#/definitions/StickerFormatType"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"format_type",
|
|
"id",
|
|
"name",
|
|
"pack",
|
|
"type"
|
|
]
|
|
},
|
|
"StickerPack": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"banner_asset_id": {
|
|
"type": "string"
|
|
},
|
|
"stickers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"cover_sticker_id": {
|
|
"type": "string"
|
|
},
|
|
"cover_sticker": {
|
|
"$ref": "#/definitions/Sticker"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"stickers"
|
|
]
|
|
},
|
|
"StickerType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"StickerFormatType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4
|
|
]
|
|
},
|
|
"Attachment": {
|
|
"type": "object",
|
|
"properties": {
|
|
"filename": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "integer"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
},
|
|
"content_type": {
|
|
"type": "string"
|
|
},
|
|
"message_id": {
|
|
"type": "string"
|
|
},
|
|
"message": {
|
|
"$ref": "#/definitions/Message"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"filename",
|
|
"id",
|
|
"message",
|
|
"message_id",
|
|
"proxy_url",
|
|
"size",
|
|
"url"
|
|
]
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"Reaction": {
|
|
"type": "object",
|
|
"properties": {
|
|
"count": {
|
|
"type": "integer"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"user_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"count",
|
|
"emoji",
|
|
"user_ids"
|
|
]
|
|
},
|
|
"PartialEmoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name"
|
|
]
|
|
},
|
|
"MessageType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
16,
|
|
19,
|
|
20,
|
|
41,
|
|
42,
|
|
43,
|
|
50,
|
|
63,
|
|
255
|
|
]
|
|
},
|
|
"InteractionType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5
|
|
]
|
|
},
|
|
"ApplicationCommandType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4
|
|
]
|
|
},
|
|
"ActionRowComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.ActionRow"
|
|
},
|
|
"components": {
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/ButtonComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/SelectMenuComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/StringSelectMenuComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/TextInputComponent"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"components",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.ActionRow": {
|
|
"type": "number",
|
|
"const": 1
|
|
},
|
|
"ButtonComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.Button"
|
|
},
|
|
"style": {
|
|
"$ref": "#/definitions/ButtonStyle"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"sku_id": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"style",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.Button": {
|
|
"type": "number",
|
|
"const": 2
|
|
},
|
|
"ButtonStyle": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6
|
|
]
|
|
},
|
|
"SelectMenuComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": [
|
|
3,
|
|
5,
|
|
6,
|
|
7,
|
|
8
|
|
],
|
|
"type": "number"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_types": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
},
|
|
"default_values": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuDefaultOption"
|
|
}
|
|
},
|
|
"min_values": {
|
|
"type": "integer"
|
|
},
|
|
"max_values": {
|
|
"type": "integer"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"type"
|
|
]
|
|
},
|
|
"SelectMenuDefaultOption": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"channel",
|
|
"role",
|
|
"user"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"type"
|
|
]
|
|
},
|
|
"StringSelectMenuComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.StringSelect"
|
|
},
|
|
"options": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuOption"
|
|
}
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_types": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
},
|
|
"default_values": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuDefaultOption"
|
|
}
|
|
},
|
|
"min_values": {
|
|
"type": "integer"
|
|
},
|
|
"max_values": {
|
|
"type": "integer"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"options",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.StringSelect": {
|
|
"type": "number",
|
|
"const": 3
|
|
},
|
|
"SelectMenuOption": {
|
|
"type": "object",
|
|
"properties": {
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"default": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"label",
|
|
"value"
|
|
]
|
|
},
|
|
"TextInputComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.TextInput"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"style": {
|
|
"$ref": "#/definitions/TextInputStyle"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"min_length": {
|
|
"type": "integer"
|
|
},
|
|
"max_length": {
|
|
"type": "integer"
|
|
},
|
|
"required": {
|
|
"type": "boolean"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"label",
|
|
"style",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.TextInput": {
|
|
"type": "number",
|
|
"const": 4
|
|
},
|
|
"TextInputStyle": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"Poll": {
|
|
"type": "object",
|
|
"properties": {
|
|
"question": {
|
|
"$ref": "#/definitions/PollMedia"
|
|
},
|
|
"answers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/PollAnswer"
|
|
}
|
|
},
|
|
"expiry": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"allow_multiselect": {
|
|
"type": "boolean"
|
|
},
|
|
"results": {
|
|
"$ref": "#/definitions/PollResult"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"allow_multiselect",
|
|
"answers",
|
|
"expiry",
|
|
"question"
|
|
]
|
|
},
|
|
"PollMedia": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"PollAnswer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"answer_id": {
|
|
"type": "string"
|
|
},
|
|
"poll_media": {
|
|
"$ref": "#/definitions/PollMedia"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"poll_media"
|
|
]
|
|
},
|
|
"PollResult": {
|
|
"type": "object",
|
|
"properties": {
|
|
"is_finalized": {
|
|
"type": "boolean"
|
|
},
|
|
"answer_counts": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/PollAnswerCount"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"answer_counts",
|
|
"is_finalized"
|
|
]
|
|
},
|
|
"PollAnswerCount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"count": {
|
|
"type": "integer"
|
|
},
|
|
"me_voted": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"count",
|
|
"id",
|
|
"me_voted"
|
|
]
|
|
},
|
|
"VoiceState": {
|
|
"type": "object",
|
|
"properties": {
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"member": {
|
|
"$ref": "#/definitions/Member"
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
},
|
|
"token": {
|
|
"type": "string"
|
|
},
|
|
"deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"mute": {
|
|
"type": "boolean"
|
|
},
|
|
"self_deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"self_mute": {
|
|
"type": "boolean"
|
|
},
|
|
"self_stream": {
|
|
"type": "boolean"
|
|
},
|
|
"self_video": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress": {
|
|
"type": "boolean"
|
|
},
|
|
"request_to_speak_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"deaf",
|
|
"guild_id",
|
|
"id",
|
|
"member",
|
|
"mute",
|
|
"self_deaf",
|
|
"self_mute",
|
|
"self_video",
|
|
"session_id",
|
|
"suppress",
|
|
"token",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"ReadState": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"public_ack": {
|
|
"type": "string"
|
|
},
|
|
"notifications_cursor": {
|
|
"type": "string"
|
|
},
|
|
"last_pin_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"mention_count": {
|
|
"type": "integer"
|
|
},
|
|
"manual": {
|
|
"type": "boolean"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"id",
|
|
"last_message_id",
|
|
"manual",
|
|
"mention_count",
|
|
"notifications_cursor",
|
|
"public_ack",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Ban": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"executor_id": {
|
|
"type": "string"
|
|
},
|
|
"executor": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"ip": {
|
|
"type": "string"
|
|
},
|
|
"reason": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"executor",
|
|
"executor_id",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"ip",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Template": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"usage_count": {
|
|
"type": "integer"
|
|
},
|
|
"creator_id": {
|
|
"type": "string"
|
|
},
|
|
"creator": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"updated_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"source_guild_id": {
|
|
"type": "string"
|
|
},
|
|
"source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"serialized_source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"code",
|
|
"created_at",
|
|
"creator",
|
|
"creator_id",
|
|
"id",
|
|
"name",
|
|
"serialized_source_guild",
|
|
"source_guild",
|
|
"source_guild_id",
|
|
"updated_at"
|
|
]
|
|
},
|
|
"GuildWelcomeScreen": {
|
|
"type": "object",
|
|
"properties": {
|
|
"enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"welcome_channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"emoji_id": {
|
|
"type": "string"
|
|
},
|
|
"emoji_name": {
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_id",
|
|
"description"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"description",
|
|
"enabled",
|
|
"welcome_channels"
|
|
]
|
|
},
|
|
"EmojiApplication": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"name"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"GatewayBotResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"shards": {
|
|
"type": "integer"
|
|
},
|
|
"session_start_limit": {
|
|
"type": "object",
|
|
"properties": {
|
|
"total": {
|
|
"type": "integer"
|
|
},
|
|
"remaining": {
|
|
"type": "integer"
|
|
},
|
|
"reset_after": {
|
|
"type": "integer"
|
|
},
|
|
"max_concurrency": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"max_concurrency",
|
|
"remaining",
|
|
"reset_after",
|
|
"total"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"session_start_limit",
|
|
"shards",
|
|
"url"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"GatewayResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"url"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"GenerateRegistrationTokensResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"tokens": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"tokens"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"GuildBansResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"reason": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"user": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"avatar",
|
|
"discriminator",
|
|
"id",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"reason",
|
|
"user"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"GuildCreateResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"primary_category_id": {
|
|
"type": "string"
|
|
},
|
|
"large": {
|
|
"type": "boolean"
|
|
},
|
|
"max_members": {
|
|
"type": "integer"
|
|
},
|
|
"max_presences": {
|
|
"type": "integer"
|
|
},
|
|
"max_video_channel_users": {
|
|
"type": "integer"
|
|
},
|
|
"member_count": {
|
|
"type": "integer"
|
|
},
|
|
"presence_count": {
|
|
"type": "integer"
|
|
},
|
|
"template_id": {
|
|
"type": "string"
|
|
},
|
|
"mfa_level": {
|
|
"type": "integer"
|
|
},
|
|
"owner_id": {
|
|
"type": "string"
|
|
},
|
|
"premium_subscription_count": {
|
|
"type": "integer"
|
|
},
|
|
"premium_tier": {
|
|
"type": "integer"
|
|
},
|
|
"welcome_screen": {
|
|
"$ref": "#/definitions/GuildWelcomeScreen"
|
|
},
|
|
"widget_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"widget_enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"nsfw_level": {
|
|
"type": "integer"
|
|
},
|
|
"nsfw": {
|
|
"type": "boolean"
|
|
},
|
|
"parent": {
|
|
"type": "string"
|
|
},
|
|
"region": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"banner": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"system_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"rules_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"guild_template_code": {
|
|
"type": "string"
|
|
},
|
|
"staff_only": {
|
|
"type": "boolean"
|
|
},
|
|
"splash": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"features": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"verification_level": {
|
|
"type": "integer"
|
|
},
|
|
"default_message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"system_channel_flags": {
|
|
"type": "integer"
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer"
|
|
},
|
|
"public_updates_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"afk_timeout": {
|
|
"type": "integer"
|
|
},
|
|
"afk_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"preferred_locale": {
|
|
"type": "string"
|
|
},
|
|
"premium_progress_bar_enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"discovery_splash": {
|
|
"type": "string"
|
|
},
|
|
"safety_alerts_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"nsfw",
|
|
"welcome_screen",
|
|
"widget_enabled"
|
|
],
|
|
"definitions": {
|
|
"GuildWelcomeScreen": {
|
|
"type": "object",
|
|
"properties": {
|
|
"enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"welcome_channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"emoji_id": {
|
|
"type": "string"
|
|
},
|
|
"emoji_name": {
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_id",
|
|
"description"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"description",
|
|
"enabled",
|
|
"welcome_channels"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"GuildDiscoveryRequirementsResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"safe_environment": {
|
|
"type": "boolean"
|
|
},
|
|
"healthy": {
|
|
"type": "boolean"
|
|
},
|
|
"health_score_pending": {
|
|
"type": "boolean"
|
|
},
|
|
"size": {
|
|
"type": "boolean"
|
|
},
|
|
"nsfw_properties": {},
|
|
"protected": {
|
|
"type": "boolean"
|
|
},
|
|
"sufficient": {
|
|
"type": "boolean"
|
|
},
|
|
"sufficient_without_grace_period": {
|
|
"type": "boolean"
|
|
},
|
|
"valid_rules_channel": {
|
|
"type": "boolean"
|
|
},
|
|
"retention_healthy": {
|
|
"type": "boolean"
|
|
},
|
|
"engagement_healthy": {
|
|
"type": "boolean"
|
|
},
|
|
"age": {
|
|
"type": "boolean"
|
|
},
|
|
"minimum_age": {
|
|
"type": "integer"
|
|
},
|
|
"health_score": {
|
|
"type": "object",
|
|
"properties": {
|
|
"avg_nonnew_participators": {
|
|
"type": "integer"
|
|
},
|
|
"avg_nonnew_communicators": {
|
|
"type": "integer"
|
|
},
|
|
"num_intentful_joiners": {
|
|
"type": "integer"
|
|
},
|
|
"perc_ret_w1_intentful": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"avg_nonnew_communicators",
|
|
"avg_nonnew_participators",
|
|
"num_intentful_joiners",
|
|
"perc_ret_w1_intentful"
|
|
]
|
|
},
|
|
"minimum_size": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"age",
|
|
"engagement_healthy",
|
|
"guild_id",
|
|
"health_score",
|
|
"health_score_pending",
|
|
"healthy",
|
|
"minimum_age",
|
|
"minimum_size",
|
|
"nsfw_properties",
|
|
"protected",
|
|
"retention_healthy",
|
|
"safe_environment",
|
|
"size",
|
|
"sufficient",
|
|
"sufficient_without_grace_period",
|
|
"valid_rules_channel"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"GuildMessagesSearchResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"messages": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/GuildMessagesSearchMessage"
|
|
}
|
|
},
|
|
"total_results": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"messages",
|
|
"total_results"
|
|
],
|
|
"definitions": {
|
|
"GuildMessagesSearchMessage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/MessageType"
|
|
},
|
|
"content": {
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"author": {
|
|
"$ref": "#/definitions/PublicUser"
|
|
},
|
|
"attachments": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Attachment"
|
|
}
|
|
},
|
|
"embeds": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Embed"
|
|
}
|
|
},
|
|
"mentions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/PublicUser"
|
|
}
|
|
},
|
|
"mention_roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"pinned": {
|
|
"type": "boolean"
|
|
},
|
|
"mention_everyone": {
|
|
"type": "boolean"
|
|
},
|
|
"tts": {
|
|
"type": "boolean"
|
|
},
|
|
"timestamp": {
|
|
"type": "string"
|
|
},
|
|
"edited_timestamp": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"components": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ActionRowComponent"
|
|
}
|
|
},
|
|
"poll": {
|
|
"$ref": "#/definitions/Poll"
|
|
},
|
|
"hit": {
|
|
"type": "boolean",
|
|
"const": true
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"attachments",
|
|
"author",
|
|
"channel_id",
|
|
"components",
|
|
"edited_timestamp",
|
|
"embeds",
|
|
"flags",
|
|
"hit",
|
|
"id",
|
|
"mention_roles",
|
|
"mentions",
|
|
"pinned",
|
|
"poll",
|
|
"timestamp",
|
|
"tts",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
16,
|
|
19,
|
|
20,
|
|
41,
|
|
42,
|
|
43,
|
|
50,
|
|
63,
|
|
255
|
|
]
|
|
},
|
|
"PublicUser": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```",
|
|
"type": "string"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_type": {
|
|
"type": "integer"
|
|
},
|
|
"theme_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"badge_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"discriminator",
|
|
"id",
|
|
"premium_since",
|
|
"premium_type",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
},
|
|
"Attachment": {
|
|
"type": "object",
|
|
"properties": {
|
|
"filename": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "integer"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
},
|
|
"content_type": {
|
|
"type": "string"
|
|
},
|
|
"message_id": {
|
|
"type": "string"
|
|
},
|
|
"message": {
|
|
"$ref": "#/definitions/Message"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"filename",
|
|
"id",
|
|
"message",
|
|
"message_id",
|
|
"proxy_url",
|
|
"size",
|
|
"url"
|
|
]
|
|
},
|
|
"Message": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"author_id": {
|
|
"type": "string"
|
|
},
|
|
"author": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"member_id": {
|
|
"type": "string"
|
|
},
|
|
"member": {
|
|
"$ref": "#/definitions/Member"
|
|
},
|
|
"webhook_id": {
|
|
"type": "string"
|
|
},
|
|
"webhook": {
|
|
"$ref": "#/definitions/Webhook"
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"application": {
|
|
"$ref": "#/definitions/Application"
|
|
},
|
|
"content": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"edited_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"tts": {
|
|
"type": "boolean"
|
|
},
|
|
"mention_everyone": {
|
|
"type": "boolean"
|
|
},
|
|
"mentions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/User"
|
|
}
|
|
},
|
|
"mention_roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"mention_channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Channel"
|
|
}
|
|
},
|
|
"sticker_items": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"attachments": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Attachment"
|
|
}
|
|
},
|
|
"embeds": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Embed"
|
|
}
|
|
},
|
|
"reactions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Reaction"
|
|
}
|
|
},
|
|
"nonce": {
|
|
"type": "string"
|
|
},
|
|
"pinned_at": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"pinned": {
|
|
"type": "boolean"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/MessageType"
|
|
},
|
|
"activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "integer"
|
|
},
|
|
"party_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"party_id",
|
|
"type"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"message_reference": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"message_id"
|
|
]
|
|
},
|
|
"referenced_message": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/Message"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"interaction": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/InteractionType"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"type"
|
|
]
|
|
},
|
|
"interaction_metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/InteractionType"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"authorizing_integration_owners": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"command_type": {
|
|
"$ref": "#/definitions/ApplicationCommandType"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"authorizing_integration_owners",
|
|
"command_type",
|
|
"id",
|
|
"name",
|
|
"type",
|
|
"user_id"
|
|
]
|
|
},
|
|
"components": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ActionRowComponent"
|
|
}
|
|
},
|
|
"poll": {
|
|
"$ref": "#/definitions/Poll"
|
|
},
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"embeds",
|
|
"flags",
|
|
"id",
|
|
"mention_channels",
|
|
"mention_roles",
|
|
"mentions",
|
|
"pinned",
|
|
"reactions",
|
|
"timestamp",
|
|
"type"
|
|
]
|
|
},
|
|
"Channel": {
|
|
"type": "object",
|
|
"properties": {
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ChannelType"
|
|
},
|
|
"recipients": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Recipient"
|
|
}
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"parent_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"parent": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"owner_id": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"last_pin_timestamp": {
|
|
"type": "integer"
|
|
},
|
|
"default_auto_archive_duration": {
|
|
"type": "integer"
|
|
},
|
|
"permission_overwrites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwrite"
|
|
}
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
},
|
|
"bitrate": {
|
|
"type": "integer"
|
|
},
|
|
"user_limit": {
|
|
"type": "integer"
|
|
},
|
|
"nsfw": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"topic": {
|
|
"type": "string"
|
|
},
|
|
"invites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Invite"
|
|
}
|
|
},
|
|
"retention_policy_id": {
|
|
"type": "string"
|
|
},
|
|
"messages": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Message"
|
|
}
|
|
},
|
|
"voice_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/VoiceState"
|
|
}
|
|
},
|
|
"read_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ReadState"
|
|
}
|
|
},
|
|
"webhooks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Webhook"
|
|
}
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"position": {
|
|
"description": "Must be calculated Channel.calculatePosition",
|
|
"type": "integer"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"created_at",
|
|
"flags",
|
|
"id",
|
|
"nsfw",
|
|
"owner",
|
|
"parent_id",
|
|
"position",
|
|
"type"
|
|
]
|
|
},
|
|
"ChannelType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
33,
|
|
34,
|
|
35,
|
|
64,
|
|
255
|
|
]
|
|
},
|
|
"Recipient": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"closed": {
|
|
"type": "boolean"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"closed",
|
|
"id",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"User": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"theme_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"phone": {
|
|
"type": "string"
|
|
},
|
|
"desktop": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"mobile": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"premium": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_type": {
|
|
"type": "integer"
|
|
},
|
|
"bot": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"bio": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"system": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"nsfw_allowed": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"mfa_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"webauthn_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"totp_secret": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"totp_last_ticket": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"deleted": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"email": {
|
|
"type": "string"
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"public_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"purchased_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"premium_usage_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"rights": {
|
|
"type": "string"
|
|
},
|
|
"sessions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Session"
|
|
}
|
|
},
|
|
"relationships": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Relationship"
|
|
}
|
|
},
|
|
"connected_accounts": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ConnectedAccount"
|
|
}
|
|
},
|
|
"data": {
|
|
"type": "object",
|
|
"properties": {
|
|
"valid_tokens_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"hash": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"valid_tokens_since"
|
|
]
|
|
},
|
|
"fingerprints": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"settings": {
|
|
"$ref": "#/definitions/UserSettings"
|
|
},
|
|
"extended_settings": {
|
|
"type": "string",
|
|
"default": "{}"
|
|
},
|
|
"security_keys": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SecurityKey"
|
|
}
|
|
},
|
|
"badge_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"connected_accounts",
|
|
"created_at",
|
|
"data",
|
|
"deleted",
|
|
"desktop",
|
|
"disabled",
|
|
"discriminator",
|
|
"extended_settings",
|
|
"fingerprints",
|
|
"flags",
|
|
"id",
|
|
"mfa_enabled",
|
|
"mobile",
|
|
"nsfw_allowed",
|
|
"premium",
|
|
"premium_since",
|
|
"premium_type",
|
|
"premium_usage_flags",
|
|
"public_flags",
|
|
"purchased_flags",
|
|
"relationships",
|
|
"rights",
|
|
"security_keys",
|
|
"sessions",
|
|
"system",
|
|
"username",
|
|
"verified",
|
|
"webauthn_enabled"
|
|
]
|
|
},
|
|
"Session": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"client_info": {
|
|
"type": "object",
|
|
"properties": {
|
|
"client": {
|
|
"type": "string"
|
|
},
|
|
"os": {
|
|
"type": "string"
|
|
},
|
|
"version": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"client",
|
|
"os",
|
|
"version"
|
|
]
|
|
},
|
|
"client_status": {
|
|
"$ref": "#/definitions/ClientStatus"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"activities",
|
|
"client_info",
|
|
"client_status",
|
|
"id",
|
|
"session_id",
|
|
"status",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
]
|
|
},
|
|
"ClientStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"desktop": {
|
|
"type": "string"
|
|
},
|
|
"mobile": {
|
|
"type": "string"
|
|
},
|
|
"web": {
|
|
"type": "string"
|
|
},
|
|
"embedded": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Relationship": {
|
|
"type": "object",
|
|
"properties": {
|
|
"from_id": {
|
|
"type": "string"
|
|
},
|
|
"from": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"to_id": {
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"nickname": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/RelationshipType"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"from",
|
|
"from_id",
|
|
"id",
|
|
"to",
|
|
"to_id",
|
|
"type"
|
|
]
|
|
},
|
|
"RelationshipType": {
|
|
"type": "number",
|
|
"enum": [
|
|
4,
|
|
3,
|
|
2,
|
|
1
|
|
]
|
|
},
|
|
"ConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"external_id": {
|
|
"type": "string"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"friend_sync": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"revoked": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"show_activity": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"visibility": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"integrations": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"metadata_": {},
|
|
"metadata_visibility": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"two_way_link": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"token_data": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/ConnectedAccountTokenData"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"external_id",
|
|
"id",
|
|
"name",
|
|
"type",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"ConnectedAccountTokenData": {
|
|
"type": "object",
|
|
"properties": {
|
|
"access_token": {
|
|
"type": "string"
|
|
},
|
|
"token_type": {
|
|
"type": "string"
|
|
},
|
|
"scope": {
|
|
"type": "string"
|
|
},
|
|
"refresh_token": {
|
|
"type": "string"
|
|
},
|
|
"expires_in": {
|
|
"type": "integer"
|
|
},
|
|
"expires_at": {
|
|
"type": "integer"
|
|
},
|
|
"fetched_at": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"access_token",
|
|
"fetched_at"
|
|
]
|
|
},
|
|
"UserSettings": {
|
|
"type": "object",
|
|
"properties": {
|
|
"index": {
|
|
"type": "string"
|
|
},
|
|
"afk_timeout": {
|
|
"type": "integer",
|
|
"default": 3600
|
|
},
|
|
"allow_accessibility_detection": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"animate_emoji": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"animate_stickers": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"contact_sync_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"convert_emoticons": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"custom_status": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/CustomStatus"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"default_guilds_restricted": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"detect_platform_accounts": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"developer_mode": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"disable_games_tab": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"enable_tts_command": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"friend_discovery_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"friend_source_flags": {
|
|
"$ref": "#/definitions/FriendSourceFlags"
|
|
},
|
|
"gateway_connected": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"gif_auto_play": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"guild_folders": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/GuildFolder"
|
|
},
|
|
"default": []
|
|
},
|
|
"guild_positions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"inline_attachment_media": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"inline_embed_media": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"locale": {
|
|
"type": "string",
|
|
"default": "en-US"
|
|
},
|
|
"message_display_compact": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"native_phone_integration_enabled": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"render_embeds": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"render_reactions": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"restricted_guilds": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"show_current_game": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string",
|
|
"default": "online"
|
|
},
|
|
"stream_notifications_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"theme": {
|
|
"enum": [
|
|
"dark",
|
|
"light"
|
|
],
|
|
"type": "string",
|
|
"default": "dark"
|
|
},
|
|
"timezone_offset": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"view_nsfw_guilds": {
|
|
"type": "boolean",
|
|
"default": true
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk_timeout",
|
|
"allow_accessibility_detection",
|
|
"animate_emoji",
|
|
"animate_stickers",
|
|
"contact_sync_enabled",
|
|
"convert_emoticons",
|
|
"custom_status",
|
|
"default_guilds_restricted",
|
|
"detect_platform_accounts",
|
|
"developer_mode",
|
|
"disable_games_tab",
|
|
"enable_tts_command",
|
|
"explicit_content_filter",
|
|
"friend_discovery_flags",
|
|
"friend_source_flags",
|
|
"gateway_connected",
|
|
"gif_auto_play",
|
|
"guild_folders",
|
|
"guild_positions",
|
|
"index",
|
|
"inline_attachment_media",
|
|
"inline_embed_media",
|
|
"locale",
|
|
"message_display_compact",
|
|
"native_phone_integration_enabled",
|
|
"render_embeds",
|
|
"render_reactions",
|
|
"restricted_guilds",
|
|
"show_current_game",
|
|
"status",
|
|
"stream_notifications_enabled",
|
|
"theme",
|
|
"timezone_offset",
|
|
"view_nsfw_guilds"
|
|
]
|
|
},
|
|
"CustomStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"emoji_id": {
|
|
"type": "string"
|
|
},
|
|
"emoji_name": {
|
|
"type": "string"
|
|
},
|
|
"expires_at": {
|
|
"type": "integer"
|
|
},
|
|
"text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"FriendSourceFlags": {
|
|
"type": "object",
|
|
"properties": {
|
|
"all": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"all"
|
|
]
|
|
},
|
|
"GuildFolder": {
|
|
"type": "object",
|
|
"properties": {
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"guild_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"color",
|
|
"guild_ids",
|
|
"id",
|
|
"name"
|
|
]
|
|
},
|
|
"SecurityKey": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"key_id": {
|
|
"type": "string"
|
|
},
|
|
"public_key": {
|
|
"type": "string"
|
|
},
|
|
"counter": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"counter",
|
|
"id",
|
|
"key_id",
|
|
"name",
|
|
"public_key",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Guild": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"afk_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"afk_timeout": {
|
|
"type": "integer"
|
|
},
|
|
"bans": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Ban"
|
|
}
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"default_message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"discovery_splash": {
|
|
"type": "string"
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer"
|
|
},
|
|
"features": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"primary_category_id": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"large": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"max_members": {
|
|
"type": "integer"
|
|
},
|
|
"max_presences": {
|
|
"type": "integer"
|
|
},
|
|
"max_video_channel_users": {
|
|
"type": "integer"
|
|
},
|
|
"member_count": {
|
|
"type": "integer"
|
|
},
|
|
"presence_count": {
|
|
"type": "integer"
|
|
},
|
|
"members": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Member"
|
|
}
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Channel"
|
|
}
|
|
},
|
|
"template_id": {
|
|
"type": "string"
|
|
},
|
|
"template": {
|
|
"$ref": "#/definitions/Template"
|
|
},
|
|
"emojis": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Emoji"
|
|
}
|
|
},
|
|
"stickers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"invites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Invite"
|
|
}
|
|
},
|
|
"voice_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/VoiceState"
|
|
}
|
|
},
|
|
"webhooks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Webhook"
|
|
}
|
|
},
|
|
"mfa_level": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"owner_id": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"preferred_locale": {
|
|
"type": "string"
|
|
},
|
|
"premium_subscription_count": {
|
|
"type": "integer"
|
|
},
|
|
"premium_tier": {
|
|
"type": "integer"
|
|
},
|
|
"public_updates_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"public_updates_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"rules_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"rules_channel": {
|
|
"type": "string"
|
|
},
|
|
"region": {
|
|
"type": "string"
|
|
},
|
|
"splash": {
|
|
"type": "string"
|
|
},
|
|
"system_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"system_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"system_channel_flags": {
|
|
"type": "integer"
|
|
},
|
|
"unavailable": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"verification_level": {
|
|
"type": "integer"
|
|
},
|
|
"welcome_screen": {
|
|
"$ref": "#/definitions/GuildWelcomeScreen",
|
|
"description": "DEPRECATED: Look at the new Guild onboarding screens."
|
|
},
|
|
"widget_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"widget_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"widget_enabled": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"nsfw_level": {
|
|
"type": "integer"
|
|
},
|
|
"nsfw": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"parent": {
|
|
"type": "string"
|
|
},
|
|
"permissions": {
|
|
"type": "integer"
|
|
},
|
|
"premium_progress_bar_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"channel_ordering": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bans",
|
|
"channel_ordering",
|
|
"channels",
|
|
"emojis",
|
|
"features",
|
|
"id",
|
|
"invites",
|
|
"members",
|
|
"name",
|
|
"nsfw",
|
|
"premium_progress_bar_enabled",
|
|
"public_updates_channel_id",
|
|
"roles",
|
|
"stickers",
|
|
"template",
|
|
"unavailable",
|
|
"voice_states",
|
|
"webhooks",
|
|
"welcome_screen",
|
|
"widget_enabled"
|
|
]
|
|
},
|
|
"Ban": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"executor_id": {
|
|
"type": "string"
|
|
},
|
|
"executor": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"ip": {
|
|
"type": "string"
|
|
},
|
|
"reason": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"executor",
|
|
"executor_id",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"ip",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Member": {
|
|
"type": "object",
|
|
"properties": {
|
|
"index": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"nick": {
|
|
"type": "string"
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"joined_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"premium_since": {
|
|
"type": "integer"
|
|
},
|
|
"deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"mute": {
|
|
"type": "boolean"
|
|
},
|
|
"pending": {
|
|
"type": "boolean"
|
|
},
|
|
"settings": {
|
|
"$ref": "#/definitions/UserGuildSettings"
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"joined_by": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"theme_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"communication_disabled_until": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"banner",
|
|
"bio",
|
|
"communication_disabled_until",
|
|
"deaf",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"index",
|
|
"joined_at",
|
|
"joined_by",
|
|
"mute",
|
|
"pending",
|
|
"roles",
|
|
"settings",
|
|
"user"
|
|
]
|
|
},
|
|
"Role": {
|
|
"type": "object",
|
|
"properties": {
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"hoist": {
|
|
"type": "boolean"
|
|
},
|
|
"managed": {
|
|
"type": "boolean"
|
|
},
|
|
"mentionable": {
|
|
"type": "boolean"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"permissions": {
|
|
"type": "string"
|
|
},
|
|
"position": {
|
|
"type": "integer"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"unicode_emoji": {
|
|
"type": "string"
|
|
},
|
|
"tags": {
|
|
"type": "object",
|
|
"properties": {
|
|
"bot_id": {
|
|
"type": "string"
|
|
},
|
|
"integration_id": {
|
|
"type": "string"
|
|
},
|
|
"premium_subscriber": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"colors": {
|
|
"$ref": "#/definitions/RoleColors"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"color",
|
|
"colors",
|
|
"flags",
|
|
"guild",
|
|
"guild_id",
|
|
"hoist",
|
|
"id",
|
|
"managed",
|
|
"mentionable",
|
|
"name",
|
|
"permissions",
|
|
"position"
|
|
]
|
|
},
|
|
"RoleColors": {
|
|
"type": "object",
|
|
"properties": {
|
|
"primary_color": {
|
|
"type": "integer"
|
|
},
|
|
"secondary_color": {
|
|
"type": "integer"
|
|
},
|
|
"tertiary_color": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"primary_color"
|
|
]
|
|
},
|
|
"UserGuildSettings": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_overrides": {
|
|
"anyOf": [
|
|
{
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"$ref": "#/definitions/ChannelOverride"
|
|
}
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mobile_push": {
|
|
"type": "boolean"
|
|
},
|
|
"mute_config": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress_everyone": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress_roles": {
|
|
"type": "boolean"
|
|
},
|
|
"version": {
|
|
"type": "integer"
|
|
},
|
|
"guild_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"mute_scheduled_events": {
|
|
"type": "boolean"
|
|
},
|
|
"hide_muted_channels": {
|
|
"type": "boolean"
|
|
},
|
|
"notify_highlights": {
|
|
"type": "integer",
|
|
"const": 0
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_overrides",
|
|
"flags",
|
|
"guild_id",
|
|
"hide_muted_channels",
|
|
"message_notifications",
|
|
"mobile_push",
|
|
"mute_config",
|
|
"mute_scheduled_events",
|
|
"muted",
|
|
"notify_highlights",
|
|
"suppress_everyone",
|
|
"suppress_roles",
|
|
"version"
|
|
]
|
|
},
|
|
"ChannelOverride": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_id",
|
|
"message_notifications",
|
|
"mute_config",
|
|
"muted"
|
|
]
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"Template": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"usage_count": {
|
|
"type": "integer"
|
|
},
|
|
"creator_id": {
|
|
"type": "string"
|
|
},
|
|
"creator": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"updated_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"source_guild_id": {
|
|
"type": "string"
|
|
},
|
|
"source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"serialized_source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"code",
|
|
"created_at",
|
|
"creator",
|
|
"creator_id",
|
|
"id",
|
|
"name",
|
|
"serialized_source_guild",
|
|
"source_guild",
|
|
"source_guild_id",
|
|
"updated_at"
|
|
]
|
|
},
|
|
"Emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"animated": {
|
|
"type": "boolean"
|
|
},
|
|
"available": {
|
|
"type": "boolean"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"managed": {
|
|
"type": "boolean"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"require_colons": {
|
|
"type": "boolean"
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"groups": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"available",
|
|
"groups",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"managed",
|
|
"name",
|
|
"require_colons",
|
|
"roles",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Sticker": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"available": {
|
|
"type": "boolean"
|
|
},
|
|
"tags": {
|
|
"type": "string"
|
|
},
|
|
"pack_id": {
|
|
"type": "string"
|
|
},
|
|
"pack": {
|
|
"$ref": "#/definitions/StickerPack"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/StickerType"
|
|
},
|
|
"format_type": {
|
|
"$ref": "#/definitions/StickerFormatType"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"format_type",
|
|
"id",
|
|
"name",
|
|
"pack",
|
|
"type"
|
|
]
|
|
},
|
|
"StickerPack": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"banner_asset_id": {
|
|
"type": "string"
|
|
},
|
|
"stickers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"cover_sticker_id": {
|
|
"type": "string"
|
|
},
|
|
"cover_sticker": {
|
|
"$ref": "#/definitions/Sticker"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"stickers"
|
|
]
|
|
},
|
|
"StickerType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"StickerFormatType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4
|
|
]
|
|
},
|
|
"Invite": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "string"
|
|
},
|
|
"temporary": {
|
|
"type": "boolean"
|
|
},
|
|
"uses": {
|
|
"type": "integer"
|
|
},
|
|
"max_uses": {
|
|
"type": "integer"
|
|
},
|
|
"max_age": {
|
|
"type": "integer"
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"expires_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"inviter_id": {
|
|
"type": "string"
|
|
},
|
|
"inviter": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"target_user_id": {
|
|
"type": "string"
|
|
},
|
|
"target_user": {
|
|
"type": "string"
|
|
},
|
|
"target_user_type": {
|
|
"type": "integer"
|
|
},
|
|
"vanity_url": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"code",
|
|
"created_at",
|
|
"flags",
|
|
"guild",
|
|
"guild_id",
|
|
"inviter",
|
|
"max_age",
|
|
"max_uses",
|
|
"target_user_id",
|
|
"temporary",
|
|
"uses"
|
|
]
|
|
},
|
|
"VoiceState": {
|
|
"type": "object",
|
|
"properties": {
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"member": {
|
|
"$ref": "#/definitions/Member"
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
},
|
|
"token": {
|
|
"type": "string"
|
|
},
|
|
"deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"mute": {
|
|
"type": "boolean"
|
|
},
|
|
"self_deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"self_mute": {
|
|
"type": "boolean"
|
|
},
|
|
"self_stream": {
|
|
"type": "boolean"
|
|
},
|
|
"self_video": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress": {
|
|
"type": "boolean"
|
|
},
|
|
"request_to_speak_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"deaf",
|
|
"guild_id",
|
|
"id",
|
|
"member",
|
|
"mute",
|
|
"self_deaf",
|
|
"self_mute",
|
|
"self_video",
|
|
"session_id",
|
|
"suppress",
|
|
"token",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Webhook": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/WebhookType"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"token": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"application": {
|
|
"$ref": "#/definitions/Application"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"source_guild_id": {
|
|
"type": "string"
|
|
},
|
|
"source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"source_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"source_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"application",
|
|
"application_id",
|
|
"avatar",
|
|
"channel",
|
|
"channel_id",
|
|
"id",
|
|
"name",
|
|
"source_channel",
|
|
"source_channel_id",
|
|
"type",
|
|
"url",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"WebhookType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3
|
|
]
|
|
},
|
|
"Application": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"summary": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"type": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true
|
|
},
|
|
"hook": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"bot_public": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"bot_require_code_grant": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"verify_key": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"redirect_uris": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"rpc_application_state": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"store_application_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"verification_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"interactions_endpoint_url": {
|
|
"type": "string"
|
|
},
|
|
"integration_public": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"integration_require_code_grant": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"discoverability_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"discovery_eligibility_flags": {
|
|
"type": "integer",
|
|
"default": 2240
|
|
},
|
|
"bot": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"tags": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"cover_image": {
|
|
"type": "string"
|
|
},
|
|
"install_params": {
|
|
"type": "object",
|
|
"properties": {
|
|
"scopes": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"permissions": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"permissions",
|
|
"scopes"
|
|
]
|
|
},
|
|
"terms_of_service_url": {
|
|
"type": "string"
|
|
},
|
|
"privacy_policy_url": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"custom_install_url": {
|
|
"type": "string"
|
|
},
|
|
"team": {
|
|
"$ref": "#/definitions/Team"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"description",
|
|
"discoverability_state",
|
|
"discovery_eligibility_flags",
|
|
"flags",
|
|
"hook",
|
|
"id",
|
|
"integration_public",
|
|
"integration_require_code_grant",
|
|
"name",
|
|
"owner",
|
|
"redirect_uris",
|
|
"rpc_application_state",
|
|
"store_application_state",
|
|
"summary",
|
|
"verification_state",
|
|
"verify_key"
|
|
]
|
|
},
|
|
"Team": {
|
|
"type": "object",
|
|
"properties": {
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"members": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/TeamMember"
|
|
}
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"owner_user_id": {
|
|
"type": "string"
|
|
},
|
|
"owner_user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"members",
|
|
"name",
|
|
"owner_user",
|
|
"owner_user_id"
|
|
]
|
|
},
|
|
"TeamMember": {
|
|
"type": "object",
|
|
"properties": {
|
|
"membership_state": {
|
|
"$ref": "#/definitions/TeamMemberState"
|
|
},
|
|
"permissions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"role": {
|
|
"$ref": "#/definitions/TeamMemberRole"
|
|
},
|
|
"team_id": {
|
|
"type": "string"
|
|
},
|
|
"team": {
|
|
"$ref": "#/definitions/Team"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"membership_state",
|
|
"permissions",
|
|
"role",
|
|
"team",
|
|
"team_id",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"TeamMemberState": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"TeamMemberRole": {
|
|
"type": "string",
|
|
"enum": [
|
|
"admin",
|
|
"developer",
|
|
"read_only"
|
|
]
|
|
},
|
|
"GuildWelcomeScreen": {
|
|
"type": "object",
|
|
"properties": {
|
|
"enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"welcome_channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"emoji_id": {
|
|
"type": "string"
|
|
},
|
|
"emoji_name": {
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_id",
|
|
"description"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"description",
|
|
"enabled",
|
|
"welcome_channels"
|
|
]
|
|
},
|
|
"ChannelPermissionOverwrite": {
|
|
"type": "object",
|
|
"properties": {
|
|
"allow": {
|
|
"type": "string"
|
|
},
|
|
"deny": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"allow",
|
|
"deny",
|
|
"id",
|
|
"type"
|
|
]
|
|
},
|
|
"ChannelPermissionOverwriteType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"ReadState": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"public_ack": {
|
|
"type": "string"
|
|
},
|
|
"notifications_cursor": {
|
|
"type": "string"
|
|
},
|
|
"last_pin_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"mention_count": {
|
|
"type": "integer"
|
|
},
|
|
"manual": {
|
|
"type": "boolean"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"id",
|
|
"last_message_id",
|
|
"manual",
|
|
"mention_count",
|
|
"notifications_cursor",
|
|
"public_ack",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"Reaction": {
|
|
"type": "object",
|
|
"properties": {
|
|
"count": {
|
|
"type": "integer"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"user_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"count",
|
|
"emoji",
|
|
"user_ids"
|
|
]
|
|
},
|
|
"PartialEmoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name"
|
|
]
|
|
},
|
|
"InteractionType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5
|
|
]
|
|
},
|
|
"ApplicationCommandType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4
|
|
]
|
|
},
|
|
"ActionRowComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.ActionRow"
|
|
},
|
|
"components": {
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/ButtonComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/SelectMenuComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/StringSelectMenuComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/TextInputComponent"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"components",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.ActionRow": {
|
|
"type": "number",
|
|
"const": 1
|
|
},
|
|
"ButtonComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.Button"
|
|
},
|
|
"style": {
|
|
"$ref": "#/definitions/ButtonStyle"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"sku_id": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"style",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.Button": {
|
|
"type": "number",
|
|
"const": 2
|
|
},
|
|
"ButtonStyle": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6
|
|
]
|
|
},
|
|
"SelectMenuComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": [
|
|
3,
|
|
5,
|
|
6,
|
|
7,
|
|
8
|
|
],
|
|
"type": "number"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_types": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
},
|
|
"default_values": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuDefaultOption"
|
|
}
|
|
},
|
|
"min_values": {
|
|
"type": "integer"
|
|
},
|
|
"max_values": {
|
|
"type": "integer"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"type"
|
|
]
|
|
},
|
|
"SelectMenuDefaultOption": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"channel",
|
|
"role",
|
|
"user"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"type"
|
|
]
|
|
},
|
|
"StringSelectMenuComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.StringSelect"
|
|
},
|
|
"options": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuOption"
|
|
}
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_types": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
},
|
|
"default_values": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuDefaultOption"
|
|
}
|
|
},
|
|
"min_values": {
|
|
"type": "integer"
|
|
},
|
|
"max_values": {
|
|
"type": "integer"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"options",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.StringSelect": {
|
|
"type": "number",
|
|
"const": 3
|
|
},
|
|
"SelectMenuOption": {
|
|
"type": "object",
|
|
"properties": {
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"default": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"label",
|
|
"value"
|
|
]
|
|
},
|
|
"TextInputComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.TextInput"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"style": {
|
|
"$ref": "#/definitions/TextInputStyle"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"min_length": {
|
|
"type": "integer"
|
|
},
|
|
"max_length": {
|
|
"type": "integer"
|
|
},
|
|
"required": {
|
|
"type": "boolean"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"label",
|
|
"style",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.TextInput": {
|
|
"type": "number",
|
|
"const": 4
|
|
},
|
|
"TextInputStyle": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"Poll": {
|
|
"type": "object",
|
|
"properties": {
|
|
"question": {
|
|
"$ref": "#/definitions/PollMedia"
|
|
},
|
|
"answers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/PollAnswer"
|
|
}
|
|
},
|
|
"expiry": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"allow_multiselect": {
|
|
"type": "boolean"
|
|
},
|
|
"results": {
|
|
"$ref": "#/definitions/PollResult"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"allow_multiselect",
|
|
"answers",
|
|
"expiry",
|
|
"question"
|
|
]
|
|
},
|
|
"PollMedia": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"PollAnswer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"answer_id": {
|
|
"type": "string"
|
|
},
|
|
"poll_media": {
|
|
"$ref": "#/definitions/PollMedia"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"poll_media"
|
|
]
|
|
},
|
|
"PollResult": {
|
|
"type": "object",
|
|
"properties": {
|
|
"is_finalized": {
|
|
"type": "boolean"
|
|
},
|
|
"answer_counts": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/PollAnswerCount"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"answer_counts",
|
|
"is_finalized"
|
|
]
|
|
},
|
|
"PollAnswerCount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"count": {
|
|
"type": "integer"
|
|
},
|
|
"me_voted": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"count",
|
|
"id",
|
|
"me_voted"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"GuildPruneResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"pruned": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"pruned"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"GuildPurgeResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"purged": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"purged"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"GuildRecommendationsResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"recommended_guilds": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Guild"
|
|
}
|
|
},
|
|
"load_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"load_id",
|
|
"recommended_guilds"
|
|
],
|
|
"definitions": {
|
|
"Guild": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"afk_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"afk_timeout": {
|
|
"type": "integer"
|
|
},
|
|
"bans": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Ban"
|
|
}
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"default_message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"discovery_splash": {
|
|
"type": "string"
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer"
|
|
},
|
|
"features": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"primary_category_id": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"large": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"max_members": {
|
|
"type": "integer"
|
|
},
|
|
"max_presences": {
|
|
"type": "integer"
|
|
},
|
|
"max_video_channel_users": {
|
|
"type": "integer"
|
|
},
|
|
"member_count": {
|
|
"type": "integer"
|
|
},
|
|
"presence_count": {
|
|
"type": "integer"
|
|
},
|
|
"members": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Member"
|
|
}
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Channel"
|
|
}
|
|
},
|
|
"template_id": {
|
|
"type": "string"
|
|
},
|
|
"template": {
|
|
"$ref": "#/definitions/Template"
|
|
},
|
|
"emojis": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Emoji"
|
|
}
|
|
},
|
|
"stickers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"invites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Invite"
|
|
}
|
|
},
|
|
"voice_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/VoiceState"
|
|
}
|
|
},
|
|
"webhooks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Webhook"
|
|
}
|
|
},
|
|
"mfa_level": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"owner_id": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"preferred_locale": {
|
|
"type": "string"
|
|
},
|
|
"premium_subscription_count": {
|
|
"type": "integer"
|
|
},
|
|
"premium_tier": {
|
|
"type": "integer"
|
|
},
|
|
"public_updates_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"public_updates_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"rules_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"rules_channel": {
|
|
"type": "string"
|
|
},
|
|
"region": {
|
|
"type": "string"
|
|
},
|
|
"splash": {
|
|
"type": "string"
|
|
},
|
|
"system_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"system_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"system_channel_flags": {
|
|
"type": "integer"
|
|
},
|
|
"unavailable": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"verification_level": {
|
|
"type": "integer"
|
|
},
|
|
"welcome_screen": {
|
|
"$ref": "#/definitions/GuildWelcomeScreen",
|
|
"description": "DEPRECATED: Look at the new Guild onboarding screens."
|
|
},
|
|
"widget_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"widget_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"widget_enabled": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"nsfw_level": {
|
|
"type": "integer"
|
|
},
|
|
"nsfw": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"parent": {
|
|
"type": "string"
|
|
},
|
|
"permissions": {
|
|
"type": "integer"
|
|
},
|
|
"premium_progress_bar_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"channel_ordering": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bans",
|
|
"channel_ordering",
|
|
"channels",
|
|
"emojis",
|
|
"features",
|
|
"id",
|
|
"invites",
|
|
"members",
|
|
"name",
|
|
"nsfw",
|
|
"premium_progress_bar_enabled",
|
|
"public_updates_channel_id",
|
|
"roles",
|
|
"stickers",
|
|
"template",
|
|
"unavailable",
|
|
"voice_states",
|
|
"webhooks",
|
|
"welcome_screen",
|
|
"widget_enabled"
|
|
]
|
|
},
|
|
"Channel": {
|
|
"type": "object",
|
|
"properties": {
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ChannelType"
|
|
},
|
|
"recipients": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Recipient"
|
|
}
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"parent_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"parent": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"owner_id": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"last_pin_timestamp": {
|
|
"type": "integer"
|
|
},
|
|
"default_auto_archive_duration": {
|
|
"type": "integer"
|
|
},
|
|
"permission_overwrites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwrite"
|
|
}
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
},
|
|
"bitrate": {
|
|
"type": "integer"
|
|
},
|
|
"user_limit": {
|
|
"type": "integer"
|
|
},
|
|
"nsfw": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"topic": {
|
|
"type": "string"
|
|
},
|
|
"invites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Invite"
|
|
}
|
|
},
|
|
"retention_policy_id": {
|
|
"type": "string"
|
|
},
|
|
"messages": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Message"
|
|
}
|
|
},
|
|
"voice_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/VoiceState"
|
|
}
|
|
},
|
|
"read_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ReadState"
|
|
}
|
|
},
|
|
"webhooks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Webhook"
|
|
}
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"position": {
|
|
"description": "Must be calculated Channel.calculatePosition",
|
|
"type": "integer"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"created_at",
|
|
"flags",
|
|
"id",
|
|
"nsfw",
|
|
"owner",
|
|
"parent_id",
|
|
"position",
|
|
"type"
|
|
]
|
|
},
|
|
"ChannelType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
33,
|
|
34,
|
|
35,
|
|
64,
|
|
255
|
|
]
|
|
},
|
|
"Recipient": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"closed": {
|
|
"type": "boolean"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"closed",
|
|
"id",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"User": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"theme_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"phone": {
|
|
"type": "string"
|
|
},
|
|
"desktop": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"mobile": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"premium": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_type": {
|
|
"type": "integer"
|
|
},
|
|
"bot": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"bio": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"system": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"nsfw_allowed": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"mfa_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"webauthn_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"totp_secret": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"totp_last_ticket": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"deleted": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"email": {
|
|
"type": "string"
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"public_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"purchased_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"premium_usage_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"rights": {
|
|
"type": "string"
|
|
},
|
|
"sessions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Session"
|
|
}
|
|
},
|
|
"relationships": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Relationship"
|
|
}
|
|
},
|
|
"connected_accounts": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ConnectedAccount"
|
|
}
|
|
},
|
|
"data": {
|
|
"type": "object",
|
|
"properties": {
|
|
"valid_tokens_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"hash": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"valid_tokens_since"
|
|
]
|
|
},
|
|
"fingerprints": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"settings": {
|
|
"$ref": "#/definitions/UserSettings"
|
|
},
|
|
"extended_settings": {
|
|
"type": "string",
|
|
"default": "{}"
|
|
},
|
|
"security_keys": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SecurityKey"
|
|
}
|
|
},
|
|
"badge_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"connected_accounts",
|
|
"created_at",
|
|
"data",
|
|
"deleted",
|
|
"desktop",
|
|
"disabled",
|
|
"discriminator",
|
|
"extended_settings",
|
|
"fingerprints",
|
|
"flags",
|
|
"id",
|
|
"mfa_enabled",
|
|
"mobile",
|
|
"nsfw_allowed",
|
|
"premium",
|
|
"premium_since",
|
|
"premium_type",
|
|
"premium_usage_flags",
|
|
"public_flags",
|
|
"purchased_flags",
|
|
"relationships",
|
|
"rights",
|
|
"security_keys",
|
|
"sessions",
|
|
"system",
|
|
"username",
|
|
"verified",
|
|
"webauthn_enabled"
|
|
]
|
|
},
|
|
"Session": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"client_info": {
|
|
"type": "object",
|
|
"properties": {
|
|
"client": {
|
|
"type": "string"
|
|
},
|
|
"os": {
|
|
"type": "string"
|
|
},
|
|
"version": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"client",
|
|
"os",
|
|
"version"
|
|
]
|
|
},
|
|
"client_status": {
|
|
"$ref": "#/definitions/ClientStatus"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"activities",
|
|
"client_info",
|
|
"client_status",
|
|
"id",
|
|
"session_id",
|
|
"status",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
]
|
|
},
|
|
"ClientStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"desktop": {
|
|
"type": "string"
|
|
},
|
|
"mobile": {
|
|
"type": "string"
|
|
},
|
|
"web": {
|
|
"type": "string"
|
|
},
|
|
"embedded": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Relationship": {
|
|
"type": "object",
|
|
"properties": {
|
|
"from_id": {
|
|
"type": "string"
|
|
},
|
|
"from": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"to_id": {
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"nickname": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/RelationshipType"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"from",
|
|
"from_id",
|
|
"id",
|
|
"to",
|
|
"to_id",
|
|
"type"
|
|
]
|
|
},
|
|
"RelationshipType": {
|
|
"type": "number",
|
|
"enum": [
|
|
4,
|
|
3,
|
|
2,
|
|
1
|
|
]
|
|
},
|
|
"ConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"external_id": {
|
|
"type": "string"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"friend_sync": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"revoked": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"show_activity": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"visibility": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"integrations": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"metadata_": {},
|
|
"metadata_visibility": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"two_way_link": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"token_data": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/ConnectedAccountTokenData"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"external_id",
|
|
"id",
|
|
"name",
|
|
"type",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"ConnectedAccountTokenData": {
|
|
"type": "object",
|
|
"properties": {
|
|
"access_token": {
|
|
"type": "string"
|
|
},
|
|
"token_type": {
|
|
"type": "string"
|
|
},
|
|
"scope": {
|
|
"type": "string"
|
|
},
|
|
"refresh_token": {
|
|
"type": "string"
|
|
},
|
|
"expires_in": {
|
|
"type": "integer"
|
|
},
|
|
"expires_at": {
|
|
"type": "integer"
|
|
},
|
|
"fetched_at": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"access_token",
|
|
"fetched_at"
|
|
]
|
|
},
|
|
"UserSettings": {
|
|
"type": "object",
|
|
"properties": {
|
|
"index": {
|
|
"type": "string"
|
|
},
|
|
"afk_timeout": {
|
|
"type": "integer",
|
|
"default": 3600
|
|
},
|
|
"allow_accessibility_detection": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"animate_emoji": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"animate_stickers": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"contact_sync_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"convert_emoticons": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"custom_status": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/CustomStatus"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"default_guilds_restricted": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"detect_platform_accounts": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"developer_mode": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"disable_games_tab": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"enable_tts_command": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"friend_discovery_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"friend_source_flags": {
|
|
"$ref": "#/definitions/FriendSourceFlags"
|
|
},
|
|
"gateway_connected": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"gif_auto_play": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"guild_folders": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/GuildFolder"
|
|
},
|
|
"default": []
|
|
},
|
|
"guild_positions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"inline_attachment_media": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"inline_embed_media": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"locale": {
|
|
"type": "string",
|
|
"default": "en-US"
|
|
},
|
|
"message_display_compact": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"native_phone_integration_enabled": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"render_embeds": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"render_reactions": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"restricted_guilds": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"show_current_game": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string",
|
|
"default": "online"
|
|
},
|
|
"stream_notifications_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"theme": {
|
|
"enum": [
|
|
"dark",
|
|
"light"
|
|
],
|
|
"type": "string",
|
|
"default": "dark"
|
|
},
|
|
"timezone_offset": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"view_nsfw_guilds": {
|
|
"type": "boolean",
|
|
"default": true
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk_timeout",
|
|
"allow_accessibility_detection",
|
|
"animate_emoji",
|
|
"animate_stickers",
|
|
"contact_sync_enabled",
|
|
"convert_emoticons",
|
|
"custom_status",
|
|
"default_guilds_restricted",
|
|
"detect_platform_accounts",
|
|
"developer_mode",
|
|
"disable_games_tab",
|
|
"enable_tts_command",
|
|
"explicit_content_filter",
|
|
"friend_discovery_flags",
|
|
"friend_source_flags",
|
|
"gateway_connected",
|
|
"gif_auto_play",
|
|
"guild_folders",
|
|
"guild_positions",
|
|
"index",
|
|
"inline_attachment_media",
|
|
"inline_embed_media",
|
|
"locale",
|
|
"message_display_compact",
|
|
"native_phone_integration_enabled",
|
|
"render_embeds",
|
|
"render_reactions",
|
|
"restricted_guilds",
|
|
"show_current_game",
|
|
"status",
|
|
"stream_notifications_enabled",
|
|
"theme",
|
|
"timezone_offset",
|
|
"view_nsfw_guilds"
|
|
]
|
|
},
|
|
"CustomStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"emoji_id": {
|
|
"type": "string"
|
|
},
|
|
"emoji_name": {
|
|
"type": "string"
|
|
},
|
|
"expires_at": {
|
|
"type": "integer"
|
|
},
|
|
"text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"FriendSourceFlags": {
|
|
"type": "object",
|
|
"properties": {
|
|
"all": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"all"
|
|
]
|
|
},
|
|
"GuildFolder": {
|
|
"type": "object",
|
|
"properties": {
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"guild_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"color",
|
|
"guild_ids",
|
|
"id",
|
|
"name"
|
|
]
|
|
},
|
|
"SecurityKey": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"key_id": {
|
|
"type": "string"
|
|
},
|
|
"public_key": {
|
|
"type": "string"
|
|
},
|
|
"counter": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"counter",
|
|
"id",
|
|
"key_id",
|
|
"name",
|
|
"public_key",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"ChannelPermissionOverwrite": {
|
|
"type": "object",
|
|
"properties": {
|
|
"allow": {
|
|
"type": "string"
|
|
},
|
|
"deny": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"allow",
|
|
"deny",
|
|
"id",
|
|
"type"
|
|
]
|
|
},
|
|
"ChannelPermissionOverwriteType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"Invite": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "string"
|
|
},
|
|
"temporary": {
|
|
"type": "boolean"
|
|
},
|
|
"uses": {
|
|
"type": "integer"
|
|
},
|
|
"max_uses": {
|
|
"type": "integer"
|
|
},
|
|
"max_age": {
|
|
"type": "integer"
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"expires_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"inviter_id": {
|
|
"type": "string"
|
|
},
|
|
"inviter": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"target_user_id": {
|
|
"type": "string"
|
|
},
|
|
"target_user": {
|
|
"type": "string"
|
|
},
|
|
"target_user_type": {
|
|
"type": "integer"
|
|
},
|
|
"vanity_url": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"code",
|
|
"created_at",
|
|
"flags",
|
|
"guild",
|
|
"guild_id",
|
|
"inviter",
|
|
"max_age",
|
|
"max_uses",
|
|
"target_user_id",
|
|
"temporary",
|
|
"uses"
|
|
]
|
|
},
|
|
"Message": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"author_id": {
|
|
"type": "string"
|
|
},
|
|
"author": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"member_id": {
|
|
"type": "string"
|
|
},
|
|
"member": {
|
|
"$ref": "#/definitions/Member"
|
|
},
|
|
"webhook_id": {
|
|
"type": "string"
|
|
},
|
|
"webhook": {
|
|
"$ref": "#/definitions/Webhook"
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"application": {
|
|
"$ref": "#/definitions/Application"
|
|
},
|
|
"content": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"edited_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"tts": {
|
|
"type": "boolean"
|
|
},
|
|
"mention_everyone": {
|
|
"type": "boolean"
|
|
},
|
|
"mentions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/User"
|
|
}
|
|
},
|
|
"mention_roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"mention_channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Channel"
|
|
}
|
|
},
|
|
"sticker_items": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"attachments": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Attachment"
|
|
}
|
|
},
|
|
"embeds": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Embed"
|
|
}
|
|
},
|
|
"reactions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Reaction"
|
|
}
|
|
},
|
|
"nonce": {
|
|
"type": "string"
|
|
},
|
|
"pinned_at": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"pinned": {
|
|
"type": "boolean"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/MessageType"
|
|
},
|
|
"activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "integer"
|
|
},
|
|
"party_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"party_id",
|
|
"type"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"message_reference": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"message_id"
|
|
]
|
|
},
|
|
"referenced_message": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/Message"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"interaction": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/InteractionType"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"type"
|
|
]
|
|
},
|
|
"interaction_metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/InteractionType"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"authorizing_integration_owners": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"command_type": {
|
|
"$ref": "#/definitions/ApplicationCommandType"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"authorizing_integration_owners",
|
|
"command_type",
|
|
"id",
|
|
"name",
|
|
"type",
|
|
"user_id"
|
|
]
|
|
},
|
|
"components": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ActionRowComponent"
|
|
}
|
|
},
|
|
"poll": {
|
|
"$ref": "#/definitions/Poll"
|
|
},
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"embeds",
|
|
"flags",
|
|
"id",
|
|
"mention_channels",
|
|
"mention_roles",
|
|
"mentions",
|
|
"pinned",
|
|
"reactions",
|
|
"timestamp",
|
|
"type"
|
|
]
|
|
},
|
|
"Member": {
|
|
"type": "object",
|
|
"properties": {
|
|
"index": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"nick": {
|
|
"type": "string"
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"joined_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"premium_since": {
|
|
"type": "integer"
|
|
},
|
|
"deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"mute": {
|
|
"type": "boolean"
|
|
},
|
|
"pending": {
|
|
"type": "boolean"
|
|
},
|
|
"settings": {
|
|
"$ref": "#/definitions/UserGuildSettings"
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"joined_by": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"theme_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"communication_disabled_until": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"banner",
|
|
"bio",
|
|
"communication_disabled_until",
|
|
"deaf",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"index",
|
|
"joined_at",
|
|
"joined_by",
|
|
"mute",
|
|
"pending",
|
|
"roles",
|
|
"settings",
|
|
"user"
|
|
]
|
|
},
|
|
"Role": {
|
|
"type": "object",
|
|
"properties": {
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"hoist": {
|
|
"type": "boolean"
|
|
},
|
|
"managed": {
|
|
"type": "boolean"
|
|
},
|
|
"mentionable": {
|
|
"type": "boolean"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"permissions": {
|
|
"type": "string"
|
|
},
|
|
"position": {
|
|
"type": "integer"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"unicode_emoji": {
|
|
"type": "string"
|
|
},
|
|
"tags": {
|
|
"type": "object",
|
|
"properties": {
|
|
"bot_id": {
|
|
"type": "string"
|
|
},
|
|
"integration_id": {
|
|
"type": "string"
|
|
},
|
|
"premium_subscriber": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"colors": {
|
|
"$ref": "#/definitions/RoleColors"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"color",
|
|
"colors",
|
|
"flags",
|
|
"guild",
|
|
"guild_id",
|
|
"hoist",
|
|
"id",
|
|
"managed",
|
|
"mentionable",
|
|
"name",
|
|
"permissions",
|
|
"position"
|
|
]
|
|
},
|
|
"RoleColors": {
|
|
"type": "object",
|
|
"properties": {
|
|
"primary_color": {
|
|
"type": "integer"
|
|
},
|
|
"secondary_color": {
|
|
"type": "integer"
|
|
},
|
|
"tertiary_color": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"primary_color"
|
|
]
|
|
},
|
|
"UserGuildSettings": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_overrides": {
|
|
"anyOf": [
|
|
{
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"$ref": "#/definitions/ChannelOverride"
|
|
}
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mobile_push": {
|
|
"type": "boolean"
|
|
},
|
|
"mute_config": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress_everyone": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress_roles": {
|
|
"type": "boolean"
|
|
},
|
|
"version": {
|
|
"type": "integer"
|
|
},
|
|
"guild_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"mute_scheduled_events": {
|
|
"type": "boolean"
|
|
},
|
|
"hide_muted_channels": {
|
|
"type": "boolean"
|
|
},
|
|
"notify_highlights": {
|
|
"type": "integer",
|
|
"const": 0
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_overrides",
|
|
"flags",
|
|
"guild_id",
|
|
"hide_muted_channels",
|
|
"message_notifications",
|
|
"mobile_push",
|
|
"mute_config",
|
|
"mute_scheduled_events",
|
|
"muted",
|
|
"notify_highlights",
|
|
"suppress_everyone",
|
|
"suppress_roles",
|
|
"version"
|
|
]
|
|
},
|
|
"ChannelOverride": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_id",
|
|
"message_notifications",
|
|
"mute_config",
|
|
"muted"
|
|
]
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"Webhook": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/WebhookType"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"token": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"application": {
|
|
"$ref": "#/definitions/Application"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"source_guild_id": {
|
|
"type": "string"
|
|
},
|
|
"source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"source_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"source_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"application",
|
|
"application_id",
|
|
"avatar",
|
|
"channel",
|
|
"channel_id",
|
|
"id",
|
|
"name",
|
|
"source_channel",
|
|
"source_channel_id",
|
|
"type",
|
|
"url",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"WebhookType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3
|
|
]
|
|
},
|
|
"Application": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"summary": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"type": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true
|
|
},
|
|
"hook": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"bot_public": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"bot_require_code_grant": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"verify_key": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"redirect_uris": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"rpc_application_state": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"store_application_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"verification_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"interactions_endpoint_url": {
|
|
"type": "string"
|
|
},
|
|
"integration_public": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"integration_require_code_grant": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"discoverability_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"discovery_eligibility_flags": {
|
|
"type": "integer",
|
|
"default": 2240
|
|
},
|
|
"bot": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"tags": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"cover_image": {
|
|
"type": "string"
|
|
},
|
|
"install_params": {
|
|
"type": "object",
|
|
"properties": {
|
|
"scopes": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"permissions": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"permissions",
|
|
"scopes"
|
|
]
|
|
},
|
|
"terms_of_service_url": {
|
|
"type": "string"
|
|
},
|
|
"privacy_policy_url": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"custom_install_url": {
|
|
"type": "string"
|
|
},
|
|
"team": {
|
|
"$ref": "#/definitions/Team"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"description",
|
|
"discoverability_state",
|
|
"discovery_eligibility_flags",
|
|
"flags",
|
|
"hook",
|
|
"id",
|
|
"integration_public",
|
|
"integration_require_code_grant",
|
|
"name",
|
|
"owner",
|
|
"redirect_uris",
|
|
"rpc_application_state",
|
|
"store_application_state",
|
|
"summary",
|
|
"verification_state",
|
|
"verify_key"
|
|
]
|
|
},
|
|
"Team": {
|
|
"type": "object",
|
|
"properties": {
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"members": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/TeamMember"
|
|
}
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"owner_user_id": {
|
|
"type": "string"
|
|
},
|
|
"owner_user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"members",
|
|
"name",
|
|
"owner_user",
|
|
"owner_user_id"
|
|
]
|
|
},
|
|
"TeamMember": {
|
|
"type": "object",
|
|
"properties": {
|
|
"membership_state": {
|
|
"$ref": "#/definitions/TeamMemberState"
|
|
},
|
|
"permissions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"role": {
|
|
"$ref": "#/definitions/TeamMemberRole"
|
|
},
|
|
"team_id": {
|
|
"type": "string"
|
|
},
|
|
"team": {
|
|
"$ref": "#/definitions/Team"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"membership_state",
|
|
"permissions",
|
|
"role",
|
|
"team",
|
|
"team_id",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"TeamMemberState": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"TeamMemberRole": {
|
|
"type": "string",
|
|
"enum": [
|
|
"admin",
|
|
"developer",
|
|
"read_only"
|
|
]
|
|
},
|
|
"Sticker": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"available": {
|
|
"type": "boolean"
|
|
},
|
|
"tags": {
|
|
"type": "string"
|
|
},
|
|
"pack_id": {
|
|
"type": "string"
|
|
},
|
|
"pack": {
|
|
"$ref": "#/definitions/StickerPack"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/StickerType"
|
|
},
|
|
"format_type": {
|
|
"$ref": "#/definitions/StickerFormatType"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"format_type",
|
|
"id",
|
|
"name",
|
|
"pack",
|
|
"type"
|
|
]
|
|
},
|
|
"StickerPack": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"banner_asset_id": {
|
|
"type": "string"
|
|
},
|
|
"stickers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"cover_sticker_id": {
|
|
"type": "string"
|
|
},
|
|
"cover_sticker": {
|
|
"$ref": "#/definitions/Sticker"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"stickers"
|
|
]
|
|
},
|
|
"StickerType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"StickerFormatType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4
|
|
]
|
|
},
|
|
"Attachment": {
|
|
"type": "object",
|
|
"properties": {
|
|
"filename": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "integer"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
},
|
|
"content_type": {
|
|
"type": "string"
|
|
},
|
|
"message_id": {
|
|
"type": "string"
|
|
},
|
|
"message": {
|
|
"$ref": "#/definitions/Message"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"filename",
|
|
"id",
|
|
"message",
|
|
"message_id",
|
|
"proxy_url",
|
|
"size",
|
|
"url"
|
|
]
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"Reaction": {
|
|
"type": "object",
|
|
"properties": {
|
|
"count": {
|
|
"type": "integer"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"user_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"count",
|
|
"emoji",
|
|
"user_ids"
|
|
]
|
|
},
|
|
"PartialEmoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name"
|
|
]
|
|
},
|
|
"MessageType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
16,
|
|
19,
|
|
20,
|
|
41,
|
|
42,
|
|
43,
|
|
50,
|
|
63,
|
|
255
|
|
]
|
|
},
|
|
"InteractionType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5
|
|
]
|
|
},
|
|
"ApplicationCommandType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4
|
|
]
|
|
},
|
|
"ActionRowComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.ActionRow"
|
|
},
|
|
"components": {
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/ButtonComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/SelectMenuComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/StringSelectMenuComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/TextInputComponent"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"components",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.ActionRow": {
|
|
"type": "number",
|
|
"const": 1
|
|
},
|
|
"ButtonComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.Button"
|
|
},
|
|
"style": {
|
|
"$ref": "#/definitions/ButtonStyle"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"sku_id": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"style",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.Button": {
|
|
"type": "number",
|
|
"const": 2
|
|
},
|
|
"ButtonStyle": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6
|
|
]
|
|
},
|
|
"SelectMenuComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": [
|
|
3,
|
|
5,
|
|
6,
|
|
7,
|
|
8
|
|
],
|
|
"type": "number"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_types": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
},
|
|
"default_values": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuDefaultOption"
|
|
}
|
|
},
|
|
"min_values": {
|
|
"type": "integer"
|
|
},
|
|
"max_values": {
|
|
"type": "integer"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"type"
|
|
]
|
|
},
|
|
"SelectMenuDefaultOption": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"channel",
|
|
"role",
|
|
"user"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"type"
|
|
]
|
|
},
|
|
"StringSelectMenuComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.StringSelect"
|
|
},
|
|
"options": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuOption"
|
|
}
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_types": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
},
|
|
"default_values": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuDefaultOption"
|
|
}
|
|
},
|
|
"min_values": {
|
|
"type": "integer"
|
|
},
|
|
"max_values": {
|
|
"type": "integer"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"options",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.StringSelect": {
|
|
"type": "number",
|
|
"const": 3
|
|
},
|
|
"SelectMenuOption": {
|
|
"type": "object",
|
|
"properties": {
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"default": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"label",
|
|
"value"
|
|
]
|
|
},
|
|
"TextInputComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.TextInput"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"style": {
|
|
"$ref": "#/definitions/TextInputStyle"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"min_length": {
|
|
"type": "integer"
|
|
},
|
|
"max_length": {
|
|
"type": "integer"
|
|
},
|
|
"required": {
|
|
"type": "boolean"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"label",
|
|
"style",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.TextInput": {
|
|
"type": "number",
|
|
"const": 4
|
|
},
|
|
"TextInputStyle": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"Poll": {
|
|
"type": "object",
|
|
"properties": {
|
|
"question": {
|
|
"$ref": "#/definitions/PollMedia"
|
|
},
|
|
"answers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/PollAnswer"
|
|
}
|
|
},
|
|
"expiry": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"allow_multiselect": {
|
|
"type": "boolean"
|
|
},
|
|
"results": {
|
|
"$ref": "#/definitions/PollResult"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"allow_multiselect",
|
|
"answers",
|
|
"expiry",
|
|
"question"
|
|
]
|
|
},
|
|
"PollMedia": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"PollAnswer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"answer_id": {
|
|
"type": "string"
|
|
},
|
|
"poll_media": {
|
|
"$ref": "#/definitions/PollMedia"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"poll_media"
|
|
]
|
|
},
|
|
"PollResult": {
|
|
"type": "object",
|
|
"properties": {
|
|
"is_finalized": {
|
|
"type": "boolean"
|
|
},
|
|
"answer_counts": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/PollAnswerCount"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"answer_counts",
|
|
"is_finalized"
|
|
]
|
|
},
|
|
"PollAnswerCount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"count": {
|
|
"type": "integer"
|
|
},
|
|
"me_voted": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"count",
|
|
"id",
|
|
"me_voted"
|
|
]
|
|
},
|
|
"VoiceState": {
|
|
"type": "object",
|
|
"properties": {
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"member": {
|
|
"$ref": "#/definitions/Member"
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
},
|
|
"token": {
|
|
"type": "string"
|
|
},
|
|
"deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"mute": {
|
|
"type": "boolean"
|
|
},
|
|
"self_deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"self_mute": {
|
|
"type": "boolean"
|
|
},
|
|
"self_stream": {
|
|
"type": "boolean"
|
|
},
|
|
"self_video": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress": {
|
|
"type": "boolean"
|
|
},
|
|
"request_to_speak_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"deaf",
|
|
"guild_id",
|
|
"id",
|
|
"member",
|
|
"mute",
|
|
"self_deaf",
|
|
"self_mute",
|
|
"self_video",
|
|
"session_id",
|
|
"suppress",
|
|
"token",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"ReadState": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"public_ack": {
|
|
"type": "string"
|
|
},
|
|
"notifications_cursor": {
|
|
"type": "string"
|
|
},
|
|
"last_pin_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"mention_count": {
|
|
"type": "integer"
|
|
},
|
|
"manual": {
|
|
"type": "boolean"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"id",
|
|
"last_message_id",
|
|
"manual",
|
|
"mention_count",
|
|
"notifications_cursor",
|
|
"public_ack",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Ban": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"executor_id": {
|
|
"type": "string"
|
|
},
|
|
"executor": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"ip": {
|
|
"type": "string"
|
|
},
|
|
"reason": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"executor",
|
|
"executor_id",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"ip",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Template": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"usage_count": {
|
|
"type": "integer"
|
|
},
|
|
"creator_id": {
|
|
"type": "string"
|
|
},
|
|
"creator": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"updated_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"source_guild_id": {
|
|
"type": "string"
|
|
},
|
|
"source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"serialized_source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"code",
|
|
"created_at",
|
|
"creator",
|
|
"creator_id",
|
|
"id",
|
|
"name",
|
|
"serialized_source_guild",
|
|
"source_guild",
|
|
"source_guild_id",
|
|
"updated_at"
|
|
]
|
|
},
|
|
"Emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"animated": {
|
|
"type": "boolean"
|
|
},
|
|
"available": {
|
|
"type": "boolean"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"managed": {
|
|
"type": "boolean"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"require_colons": {
|
|
"type": "boolean"
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"groups": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"available",
|
|
"groups",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"managed",
|
|
"name",
|
|
"require_colons",
|
|
"roles",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"GuildWelcomeScreen": {
|
|
"type": "object",
|
|
"properties": {
|
|
"enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"welcome_channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"emoji_id": {
|
|
"type": "string"
|
|
},
|
|
"emoji_name": {
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_id",
|
|
"description"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"description",
|
|
"enabled",
|
|
"welcome_channels"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"GuildVanityUrlResponse": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/GuildVanityUrl"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/GuildVanityUrlNoInvite"
|
|
},
|
|
{
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/GuildVanityUrl"
|
|
}
|
|
}
|
|
],
|
|
"definitions": {
|
|
"GuildVanityUrl": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "string"
|
|
},
|
|
"uses": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"code",
|
|
"uses"
|
|
]
|
|
},
|
|
"GuildVanityUrlNoInvite": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "null"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"code"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"GuildVanityUrlCreateResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"code"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"GuildWidgetJsonResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"instant_invite": {
|
|
"type": "string"
|
|
},
|
|
"channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"position": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"position"
|
|
]
|
|
}
|
|
},
|
|
"members": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/ClientStatus"
|
|
},
|
|
"avatar_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"avatar",
|
|
"avatar_url",
|
|
"discriminator",
|
|
"id",
|
|
"status",
|
|
"username"
|
|
]
|
|
}
|
|
},
|
|
"presence_count": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channels",
|
|
"id",
|
|
"instant_invite",
|
|
"members",
|
|
"name",
|
|
"presence_count"
|
|
],
|
|
"definitions": {
|
|
"ClientStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"desktop": {
|
|
"type": "string"
|
|
},
|
|
"mobile": {
|
|
"type": "string"
|
|
},
|
|
"web": {
|
|
"type": "string"
|
|
},
|
|
"embedded": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"GuildWidgetSettingsResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/Snowflake"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_id",
|
|
"enabled"
|
|
],
|
|
"definitions": {
|
|
"Snowflake": {
|
|
"description": "A container for useful snowflake-related methods.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"HubDirectoryEntriesResponse": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/HubDirectoryEntry"
|
|
},
|
|
"definitions": {
|
|
"HubDirectoryEntry": {
|
|
"type": "object",
|
|
"properties": {
|
|
"author_id": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"directory_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"primary_category_id": {
|
|
"type": "integer"
|
|
},
|
|
"type": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"author_id",
|
|
"created_at",
|
|
"description",
|
|
"directory_channel_id",
|
|
"guild",
|
|
"primary_category_id",
|
|
"type"
|
|
]
|
|
},
|
|
"Guild": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"afk_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"afk_timeout": {
|
|
"type": "integer"
|
|
},
|
|
"bans": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Ban"
|
|
}
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"default_message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"discovery_splash": {
|
|
"type": "string"
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer"
|
|
},
|
|
"features": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"primary_category_id": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"large": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"max_members": {
|
|
"type": "integer"
|
|
},
|
|
"max_presences": {
|
|
"type": "integer"
|
|
},
|
|
"max_video_channel_users": {
|
|
"type": "integer"
|
|
},
|
|
"member_count": {
|
|
"type": "integer"
|
|
},
|
|
"presence_count": {
|
|
"type": "integer"
|
|
},
|
|
"members": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Member"
|
|
}
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Channel"
|
|
}
|
|
},
|
|
"template_id": {
|
|
"type": "string"
|
|
},
|
|
"template": {
|
|
"$ref": "#/definitions/Template"
|
|
},
|
|
"emojis": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Emoji"
|
|
}
|
|
},
|
|
"stickers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"invites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Invite"
|
|
}
|
|
},
|
|
"voice_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/VoiceState"
|
|
}
|
|
},
|
|
"webhooks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Webhook"
|
|
}
|
|
},
|
|
"mfa_level": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"owner_id": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"preferred_locale": {
|
|
"type": "string"
|
|
},
|
|
"premium_subscription_count": {
|
|
"type": "integer"
|
|
},
|
|
"premium_tier": {
|
|
"type": "integer"
|
|
},
|
|
"public_updates_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"public_updates_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"rules_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"rules_channel": {
|
|
"type": "string"
|
|
},
|
|
"region": {
|
|
"type": "string"
|
|
},
|
|
"splash": {
|
|
"type": "string"
|
|
},
|
|
"system_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"system_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"system_channel_flags": {
|
|
"type": "integer"
|
|
},
|
|
"unavailable": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"verification_level": {
|
|
"type": "integer"
|
|
},
|
|
"welcome_screen": {
|
|
"$ref": "#/definitions/GuildWelcomeScreen",
|
|
"description": "DEPRECATED: Look at the new Guild onboarding screens."
|
|
},
|
|
"widget_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"widget_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"widget_enabled": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"nsfw_level": {
|
|
"type": "integer"
|
|
},
|
|
"nsfw": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"parent": {
|
|
"type": "string"
|
|
},
|
|
"permissions": {
|
|
"type": "integer"
|
|
},
|
|
"premium_progress_bar_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"channel_ordering": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bans",
|
|
"channel_ordering",
|
|
"channels",
|
|
"emojis",
|
|
"features",
|
|
"id",
|
|
"invites",
|
|
"members",
|
|
"name",
|
|
"nsfw",
|
|
"premium_progress_bar_enabled",
|
|
"public_updates_channel_id",
|
|
"roles",
|
|
"stickers",
|
|
"template",
|
|
"unavailable",
|
|
"voice_states",
|
|
"webhooks",
|
|
"welcome_screen",
|
|
"widget_enabled"
|
|
]
|
|
},
|
|
"Channel": {
|
|
"type": "object",
|
|
"properties": {
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ChannelType"
|
|
},
|
|
"recipients": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Recipient"
|
|
}
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"parent_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"parent": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"owner_id": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"last_pin_timestamp": {
|
|
"type": "integer"
|
|
},
|
|
"default_auto_archive_duration": {
|
|
"type": "integer"
|
|
},
|
|
"permission_overwrites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwrite"
|
|
}
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
},
|
|
"bitrate": {
|
|
"type": "integer"
|
|
},
|
|
"user_limit": {
|
|
"type": "integer"
|
|
},
|
|
"nsfw": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"topic": {
|
|
"type": "string"
|
|
},
|
|
"invites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Invite"
|
|
}
|
|
},
|
|
"retention_policy_id": {
|
|
"type": "string"
|
|
},
|
|
"messages": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Message"
|
|
}
|
|
},
|
|
"voice_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/VoiceState"
|
|
}
|
|
},
|
|
"read_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ReadState"
|
|
}
|
|
},
|
|
"webhooks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Webhook"
|
|
}
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"position": {
|
|
"description": "Must be calculated Channel.calculatePosition",
|
|
"type": "integer"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"created_at",
|
|
"flags",
|
|
"id",
|
|
"nsfw",
|
|
"owner",
|
|
"parent_id",
|
|
"position",
|
|
"type"
|
|
]
|
|
},
|
|
"ChannelType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
33,
|
|
34,
|
|
35,
|
|
64,
|
|
255
|
|
]
|
|
},
|
|
"Recipient": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"closed": {
|
|
"type": "boolean"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"closed",
|
|
"id",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"User": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"theme_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"phone": {
|
|
"type": "string"
|
|
},
|
|
"desktop": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"mobile": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"premium": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_type": {
|
|
"type": "integer"
|
|
},
|
|
"bot": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"bio": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"system": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"nsfw_allowed": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"mfa_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"webauthn_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"totp_secret": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"totp_last_ticket": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"deleted": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"email": {
|
|
"type": "string"
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"public_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"purchased_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"premium_usage_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"rights": {
|
|
"type": "string"
|
|
},
|
|
"sessions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Session"
|
|
}
|
|
},
|
|
"relationships": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Relationship"
|
|
}
|
|
},
|
|
"connected_accounts": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ConnectedAccount"
|
|
}
|
|
},
|
|
"data": {
|
|
"type": "object",
|
|
"properties": {
|
|
"valid_tokens_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"hash": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"valid_tokens_since"
|
|
]
|
|
},
|
|
"fingerprints": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"settings": {
|
|
"$ref": "#/definitions/UserSettings"
|
|
},
|
|
"extended_settings": {
|
|
"type": "string",
|
|
"default": "{}"
|
|
},
|
|
"security_keys": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SecurityKey"
|
|
}
|
|
},
|
|
"badge_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"connected_accounts",
|
|
"created_at",
|
|
"data",
|
|
"deleted",
|
|
"desktop",
|
|
"disabled",
|
|
"discriminator",
|
|
"extended_settings",
|
|
"fingerprints",
|
|
"flags",
|
|
"id",
|
|
"mfa_enabled",
|
|
"mobile",
|
|
"nsfw_allowed",
|
|
"premium",
|
|
"premium_since",
|
|
"premium_type",
|
|
"premium_usage_flags",
|
|
"public_flags",
|
|
"purchased_flags",
|
|
"relationships",
|
|
"rights",
|
|
"security_keys",
|
|
"sessions",
|
|
"system",
|
|
"username",
|
|
"verified",
|
|
"webauthn_enabled"
|
|
]
|
|
},
|
|
"Session": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"client_info": {
|
|
"type": "object",
|
|
"properties": {
|
|
"client": {
|
|
"type": "string"
|
|
},
|
|
"os": {
|
|
"type": "string"
|
|
},
|
|
"version": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"client",
|
|
"os",
|
|
"version"
|
|
]
|
|
},
|
|
"client_status": {
|
|
"$ref": "#/definitions/ClientStatus"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"activities",
|
|
"client_info",
|
|
"client_status",
|
|
"id",
|
|
"session_id",
|
|
"status",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
]
|
|
},
|
|
"ClientStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"desktop": {
|
|
"type": "string"
|
|
},
|
|
"mobile": {
|
|
"type": "string"
|
|
},
|
|
"web": {
|
|
"type": "string"
|
|
},
|
|
"embedded": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Relationship": {
|
|
"type": "object",
|
|
"properties": {
|
|
"from_id": {
|
|
"type": "string"
|
|
},
|
|
"from": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"to_id": {
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"nickname": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/RelationshipType"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"from",
|
|
"from_id",
|
|
"id",
|
|
"to",
|
|
"to_id",
|
|
"type"
|
|
]
|
|
},
|
|
"RelationshipType": {
|
|
"type": "number",
|
|
"enum": [
|
|
4,
|
|
3,
|
|
2,
|
|
1
|
|
]
|
|
},
|
|
"ConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"external_id": {
|
|
"type": "string"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"friend_sync": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"revoked": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"show_activity": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"visibility": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"integrations": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"metadata_": {},
|
|
"metadata_visibility": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"two_way_link": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"token_data": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/ConnectedAccountTokenData"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"external_id",
|
|
"id",
|
|
"name",
|
|
"type",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"ConnectedAccountTokenData": {
|
|
"type": "object",
|
|
"properties": {
|
|
"access_token": {
|
|
"type": "string"
|
|
},
|
|
"token_type": {
|
|
"type": "string"
|
|
},
|
|
"scope": {
|
|
"type": "string"
|
|
},
|
|
"refresh_token": {
|
|
"type": "string"
|
|
},
|
|
"expires_in": {
|
|
"type": "integer"
|
|
},
|
|
"expires_at": {
|
|
"type": "integer"
|
|
},
|
|
"fetched_at": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"access_token",
|
|
"fetched_at"
|
|
]
|
|
},
|
|
"UserSettings": {
|
|
"type": "object",
|
|
"properties": {
|
|
"index": {
|
|
"type": "string"
|
|
},
|
|
"afk_timeout": {
|
|
"type": "integer",
|
|
"default": 3600
|
|
},
|
|
"allow_accessibility_detection": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"animate_emoji": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"animate_stickers": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"contact_sync_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"convert_emoticons": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"custom_status": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/CustomStatus"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"default_guilds_restricted": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"detect_platform_accounts": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"developer_mode": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"disable_games_tab": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"enable_tts_command": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"friend_discovery_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"friend_source_flags": {
|
|
"$ref": "#/definitions/FriendSourceFlags"
|
|
},
|
|
"gateway_connected": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"gif_auto_play": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"guild_folders": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/GuildFolder"
|
|
},
|
|
"default": []
|
|
},
|
|
"guild_positions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"inline_attachment_media": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"inline_embed_media": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"locale": {
|
|
"type": "string",
|
|
"default": "en-US"
|
|
},
|
|
"message_display_compact": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"native_phone_integration_enabled": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"render_embeds": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"render_reactions": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"restricted_guilds": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"show_current_game": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string",
|
|
"default": "online"
|
|
},
|
|
"stream_notifications_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"theme": {
|
|
"enum": [
|
|
"dark",
|
|
"light"
|
|
],
|
|
"type": "string",
|
|
"default": "dark"
|
|
},
|
|
"timezone_offset": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"view_nsfw_guilds": {
|
|
"type": "boolean",
|
|
"default": true
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk_timeout",
|
|
"allow_accessibility_detection",
|
|
"animate_emoji",
|
|
"animate_stickers",
|
|
"contact_sync_enabled",
|
|
"convert_emoticons",
|
|
"custom_status",
|
|
"default_guilds_restricted",
|
|
"detect_platform_accounts",
|
|
"developer_mode",
|
|
"disable_games_tab",
|
|
"enable_tts_command",
|
|
"explicit_content_filter",
|
|
"friend_discovery_flags",
|
|
"friend_source_flags",
|
|
"gateway_connected",
|
|
"gif_auto_play",
|
|
"guild_folders",
|
|
"guild_positions",
|
|
"index",
|
|
"inline_attachment_media",
|
|
"inline_embed_media",
|
|
"locale",
|
|
"message_display_compact",
|
|
"native_phone_integration_enabled",
|
|
"render_embeds",
|
|
"render_reactions",
|
|
"restricted_guilds",
|
|
"show_current_game",
|
|
"status",
|
|
"stream_notifications_enabled",
|
|
"theme",
|
|
"timezone_offset",
|
|
"view_nsfw_guilds"
|
|
]
|
|
},
|
|
"CustomStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"emoji_id": {
|
|
"type": "string"
|
|
},
|
|
"emoji_name": {
|
|
"type": "string"
|
|
},
|
|
"expires_at": {
|
|
"type": "integer"
|
|
},
|
|
"text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"FriendSourceFlags": {
|
|
"type": "object",
|
|
"properties": {
|
|
"all": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"all"
|
|
]
|
|
},
|
|
"GuildFolder": {
|
|
"type": "object",
|
|
"properties": {
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"guild_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"color",
|
|
"guild_ids",
|
|
"id",
|
|
"name"
|
|
]
|
|
},
|
|
"SecurityKey": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"key_id": {
|
|
"type": "string"
|
|
},
|
|
"public_key": {
|
|
"type": "string"
|
|
},
|
|
"counter": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"counter",
|
|
"id",
|
|
"key_id",
|
|
"name",
|
|
"public_key",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"ChannelPermissionOverwrite": {
|
|
"type": "object",
|
|
"properties": {
|
|
"allow": {
|
|
"type": "string"
|
|
},
|
|
"deny": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"allow",
|
|
"deny",
|
|
"id",
|
|
"type"
|
|
]
|
|
},
|
|
"ChannelPermissionOverwriteType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"Invite": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "string"
|
|
},
|
|
"temporary": {
|
|
"type": "boolean"
|
|
},
|
|
"uses": {
|
|
"type": "integer"
|
|
},
|
|
"max_uses": {
|
|
"type": "integer"
|
|
},
|
|
"max_age": {
|
|
"type": "integer"
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"expires_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"inviter_id": {
|
|
"type": "string"
|
|
},
|
|
"inviter": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"target_user_id": {
|
|
"type": "string"
|
|
},
|
|
"target_user": {
|
|
"type": "string"
|
|
},
|
|
"target_user_type": {
|
|
"type": "integer"
|
|
},
|
|
"vanity_url": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"code",
|
|
"created_at",
|
|
"flags",
|
|
"guild",
|
|
"guild_id",
|
|
"inviter",
|
|
"max_age",
|
|
"max_uses",
|
|
"target_user_id",
|
|
"temporary",
|
|
"uses"
|
|
]
|
|
},
|
|
"Message": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"author_id": {
|
|
"type": "string"
|
|
},
|
|
"author": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"member_id": {
|
|
"type": "string"
|
|
},
|
|
"member": {
|
|
"$ref": "#/definitions/Member"
|
|
},
|
|
"webhook_id": {
|
|
"type": "string"
|
|
},
|
|
"webhook": {
|
|
"$ref": "#/definitions/Webhook"
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"application": {
|
|
"$ref": "#/definitions/Application"
|
|
},
|
|
"content": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"edited_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"tts": {
|
|
"type": "boolean"
|
|
},
|
|
"mention_everyone": {
|
|
"type": "boolean"
|
|
},
|
|
"mentions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/User"
|
|
}
|
|
},
|
|
"mention_roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"mention_channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Channel"
|
|
}
|
|
},
|
|
"sticker_items": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"attachments": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Attachment"
|
|
}
|
|
},
|
|
"embeds": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Embed"
|
|
}
|
|
},
|
|
"reactions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Reaction"
|
|
}
|
|
},
|
|
"nonce": {
|
|
"type": "string"
|
|
},
|
|
"pinned_at": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"pinned": {
|
|
"type": "boolean"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/MessageType"
|
|
},
|
|
"activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "integer"
|
|
},
|
|
"party_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"party_id",
|
|
"type"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"message_reference": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"message_id"
|
|
]
|
|
},
|
|
"referenced_message": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/Message"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"interaction": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/InteractionType"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"type"
|
|
]
|
|
},
|
|
"interaction_metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/InteractionType"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"authorizing_integration_owners": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"command_type": {
|
|
"$ref": "#/definitions/ApplicationCommandType"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"authorizing_integration_owners",
|
|
"command_type",
|
|
"id",
|
|
"name",
|
|
"type",
|
|
"user_id"
|
|
]
|
|
},
|
|
"components": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ActionRowComponent"
|
|
}
|
|
},
|
|
"poll": {
|
|
"$ref": "#/definitions/Poll"
|
|
},
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"embeds",
|
|
"flags",
|
|
"id",
|
|
"mention_channels",
|
|
"mention_roles",
|
|
"mentions",
|
|
"pinned",
|
|
"reactions",
|
|
"timestamp",
|
|
"type"
|
|
]
|
|
},
|
|
"Member": {
|
|
"type": "object",
|
|
"properties": {
|
|
"index": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"nick": {
|
|
"type": "string"
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"joined_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"premium_since": {
|
|
"type": "integer"
|
|
},
|
|
"deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"mute": {
|
|
"type": "boolean"
|
|
},
|
|
"pending": {
|
|
"type": "boolean"
|
|
},
|
|
"settings": {
|
|
"$ref": "#/definitions/UserGuildSettings"
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"joined_by": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"theme_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"communication_disabled_until": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"banner",
|
|
"bio",
|
|
"communication_disabled_until",
|
|
"deaf",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"index",
|
|
"joined_at",
|
|
"joined_by",
|
|
"mute",
|
|
"pending",
|
|
"roles",
|
|
"settings",
|
|
"user"
|
|
]
|
|
},
|
|
"Role": {
|
|
"type": "object",
|
|
"properties": {
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"hoist": {
|
|
"type": "boolean"
|
|
},
|
|
"managed": {
|
|
"type": "boolean"
|
|
},
|
|
"mentionable": {
|
|
"type": "boolean"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"permissions": {
|
|
"type": "string"
|
|
},
|
|
"position": {
|
|
"type": "integer"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"unicode_emoji": {
|
|
"type": "string"
|
|
},
|
|
"tags": {
|
|
"type": "object",
|
|
"properties": {
|
|
"bot_id": {
|
|
"type": "string"
|
|
},
|
|
"integration_id": {
|
|
"type": "string"
|
|
},
|
|
"premium_subscriber": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"colors": {
|
|
"$ref": "#/definitions/RoleColors"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"color",
|
|
"colors",
|
|
"flags",
|
|
"guild",
|
|
"guild_id",
|
|
"hoist",
|
|
"id",
|
|
"managed",
|
|
"mentionable",
|
|
"name",
|
|
"permissions",
|
|
"position"
|
|
]
|
|
},
|
|
"RoleColors": {
|
|
"type": "object",
|
|
"properties": {
|
|
"primary_color": {
|
|
"type": "integer"
|
|
},
|
|
"secondary_color": {
|
|
"type": "integer"
|
|
},
|
|
"tertiary_color": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"primary_color"
|
|
]
|
|
},
|
|
"UserGuildSettings": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_overrides": {
|
|
"anyOf": [
|
|
{
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"$ref": "#/definitions/ChannelOverride"
|
|
}
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mobile_push": {
|
|
"type": "boolean"
|
|
},
|
|
"mute_config": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress_everyone": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress_roles": {
|
|
"type": "boolean"
|
|
},
|
|
"version": {
|
|
"type": "integer"
|
|
},
|
|
"guild_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"mute_scheduled_events": {
|
|
"type": "boolean"
|
|
},
|
|
"hide_muted_channels": {
|
|
"type": "boolean"
|
|
},
|
|
"notify_highlights": {
|
|
"type": "integer",
|
|
"const": 0
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_overrides",
|
|
"flags",
|
|
"guild_id",
|
|
"hide_muted_channels",
|
|
"message_notifications",
|
|
"mobile_push",
|
|
"mute_config",
|
|
"mute_scheduled_events",
|
|
"muted",
|
|
"notify_highlights",
|
|
"suppress_everyone",
|
|
"suppress_roles",
|
|
"version"
|
|
]
|
|
},
|
|
"ChannelOverride": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_id",
|
|
"message_notifications",
|
|
"mute_config",
|
|
"muted"
|
|
]
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"Webhook": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/WebhookType"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"token": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"application": {
|
|
"$ref": "#/definitions/Application"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"source_guild_id": {
|
|
"type": "string"
|
|
},
|
|
"source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"source_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"source_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"application",
|
|
"application_id",
|
|
"avatar",
|
|
"channel",
|
|
"channel_id",
|
|
"id",
|
|
"name",
|
|
"source_channel",
|
|
"source_channel_id",
|
|
"type",
|
|
"url",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"WebhookType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3
|
|
]
|
|
},
|
|
"Application": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"summary": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"type": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true
|
|
},
|
|
"hook": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"bot_public": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"bot_require_code_grant": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"verify_key": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"redirect_uris": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"rpc_application_state": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"store_application_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"verification_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"interactions_endpoint_url": {
|
|
"type": "string"
|
|
},
|
|
"integration_public": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"integration_require_code_grant": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"discoverability_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"discovery_eligibility_flags": {
|
|
"type": "integer",
|
|
"default": 2240
|
|
},
|
|
"bot": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"tags": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"cover_image": {
|
|
"type": "string"
|
|
},
|
|
"install_params": {
|
|
"type": "object",
|
|
"properties": {
|
|
"scopes": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"permissions": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"permissions",
|
|
"scopes"
|
|
]
|
|
},
|
|
"terms_of_service_url": {
|
|
"type": "string"
|
|
},
|
|
"privacy_policy_url": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"custom_install_url": {
|
|
"type": "string"
|
|
},
|
|
"team": {
|
|
"$ref": "#/definitions/Team"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"description",
|
|
"discoverability_state",
|
|
"discovery_eligibility_flags",
|
|
"flags",
|
|
"hook",
|
|
"id",
|
|
"integration_public",
|
|
"integration_require_code_grant",
|
|
"name",
|
|
"owner",
|
|
"redirect_uris",
|
|
"rpc_application_state",
|
|
"store_application_state",
|
|
"summary",
|
|
"verification_state",
|
|
"verify_key"
|
|
]
|
|
},
|
|
"Team": {
|
|
"type": "object",
|
|
"properties": {
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"members": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/TeamMember"
|
|
}
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"owner_user_id": {
|
|
"type": "string"
|
|
},
|
|
"owner_user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"members",
|
|
"name",
|
|
"owner_user",
|
|
"owner_user_id"
|
|
]
|
|
},
|
|
"TeamMember": {
|
|
"type": "object",
|
|
"properties": {
|
|
"membership_state": {
|
|
"$ref": "#/definitions/TeamMemberState"
|
|
},
|
|
"permissions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"role": {
|
|
"$ref": "#/definitions/TeamMemberRole"
|
|
},
|
|
"team_id": {
|
|
"type": "string"
|
|
},
|
|
"team": {
|
|
"$ref": "#/definitions/Team"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"membership_state",
|
|
"permissions",
|
|
"role",
|
|
"team",
|
|
"team_id",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"TeamMemberState": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"TeamMemberRole": {
|
|
"type": "string",
|
|
"enum": [
|
|
"admin",
|
|
"developer",
|
|
"read_only"
|
|
]
|
|
},
|
|
"Sticker": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"available": {
|
|
"type": "boolean"
|
|
},
|
|
"tags": {
|
|
"type": "string"
|
|
},
|
|
"pack_id": {
|
|
"type": "string"
|
|
},
|
|
"pack": {
|
|
"$ref": "#/definitions/StickerPack"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/StickerType"
|
|
},
|
|
"format_type": {
|
|
"$ref": "#/definitions/StickerFormatType"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"format_type",
|
|
"id",
|
|
"name",
|
|
"pack",
|
|
"type"
|
|
]
|
|
},
|
|
"StickerPack": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"banner_asset_id": {
|
|
"type": "string"
|
|
},
|
|
"stickers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"cover_sticker_id": {
|
|
"type": "string"
|
|
},
|
|
"cover_sticker": {
|
|
"$ref": "#/definitions/Sticker"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"stickers"
|
|
]
|
|
},
|
|
"StickerType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"StickerFormatType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4
|
|
]
|
|
},
|
|
"Attachment": {
|
|
"type": "object",
|
|
"properties": {
|
|
"filename": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "integer"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
},
|
|
"content_type": {
|
|
"type": "string"
|
|
},
|
|
"message_id": {
|
|
"type": "string"
|
|
},
|
|
"message": {
|
|
"$ref": "#/definitions/Message"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"filename",
|
|
"id",
|
|
"message",
|
|
"message_id",
|
|
"proxy_url",
|
|
"size",
|
|
"url"
|
|
]
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"Reaction": {
|
|
"type": "object",
|
|
"properties": {
|
|
"count": {
|
|
"type": "integer"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"user_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"count",
|
|
"emoji",
|
|
"user_ids"
|
|
]
|
|
},
|
|
"PartialEmoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name"
|
|
]
|
|
},
|
|
"MessageType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
16,
|
|
19,
|
|
20,
|
|
41,
|
|
42,
|
|
43,
|
|
50,
|
|
63,
|
|
255
|
|
]
|
|
},
|
|
"InteractionType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5
|
|
]
|
|
},
|
|
"ApplicationCommandType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4
|
|
]
|
|
},
|
|
"ActionRowComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.ActionRow"
|
|
},
|
|
"components": {
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/ButtonComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/SelectMenuComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/StringSelectMenuComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/TextInputComponent"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"components",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.ActionRow": {
|
|
"type": "number",
|
|
"const": 1
|
|
},
|
|
"ButtonComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.Button"
|
|
},
|
|
"style": {
|
|
"$ref": "#/definitions/ButtonStyle"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"sku_id": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"style",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.Button": {
|
|
"type": "number",
|
|
"const": 2
|
|
},
|
|
"ButtonStyle": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6
|
|
]
|
|
},
|
|
"SelectMenuComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": [
|
|
3,
|
|
5,
|
|
6,
|
|
7,
|
|
8
|
|
],
|
|
"type": "number"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_types": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
},
|
|
"default_values": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuDefaultOption"
|
|
}
|
|
},
|
|
"min_values": {
|
|
"type": "integer"
|
|
},
|
|
"max_values": {
|
|
"type": "integer"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"type"
|
|
]
|
|
},
|
|
"SelectMenuDefaultOption": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"channel",
|
|
"role",
|
|
"user"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"type"
|
|
]
|
|
},
|
|
"StringSelectMenuComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.StringSelect"
|
|
},
|
|
"options": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuOption"
|
|
}
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_types": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
},
|
|
"default_values": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuDefaultOption"
|
|
}
|
|
},
|
|
"min_values": {
|
|
"type": "integer"
|
|
},
|
|
"max_values": {
|
|
"type": "integer"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"options",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.StringSelect": {
|
|
"type": "number",
|
|
"const": 3
|
|
},
|
|
"SelectMenuOption": {
|
|
"type": "object",
|
|
"properties": {
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"default": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"label",
|
|
"value"
|
|
]
|
|
},
|
|
"TextInputComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.TextInput"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"style": {
|
|
"$ref": "#/definitions/TextInputStyle"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"min_length": {
|
|
"type": "integer"
|
|
},
|
|
"max_length": {
|
|
"type": "integer"
|
|
},
|
|
"required": {
|
|
"type": "boolean"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"label",
|
|
"style",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.TextInput": {
|
|
"type": "number",
|
|
"const": 4
|
|
},
|
|
"TextInputStyle": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"Poll": {
|
|
"type": "object",
|
|
"properties": {
|
|
"question": {
|
|
"$ref": "#/definitions/PollMedia"
|
|
},
|
|
"answers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/PollAnswer"
|
|
}
|
|
},
|
|
"expiry": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"allow_multiselect": {
|
|
"type": "boolean"
|
|
},
|
|
"results": {
|
|
"$ref": "#/definitions/PollResult"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"allow_multiselect",
|
|
"answers",
|
|
"expiry",
|
|
"question"
|
|
]
|
|
},
|
|
"PollMedia": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"PollAnswer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"answer_id": {
|
|
"type": "string"
|
|
},
|
|
"poll_media": {
|
|
"$ref": "#/definitions/PollMedia"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"poll_media"
|
|
]
|
|
},
|
|
"PollResult": {
|
|
"type": "object",
|
|
"properties": {
|
|
"is_finalized": {
|
|
"type": "boolean"
|
|
},
|
|
"answer_counts": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/PollAnswerCount"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"answer_counts",
|
|
"is_finalized"
|
|
]
|
|
},
|
|
"PollAnswerCount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"count": {
|
|
"type": "integer"
|
|
},
|
|
"me_voted": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"count",
|
|
"id",
|
|
"me_voted"
|
|
]
|
|
},
|
|
"VoiceState": {
|
|
"type": "object",
|
|
"properties": {
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"member": {
|
|
"$ref": "#/definitions/Member"
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
},
|
|
"token": {
|
|
"type": "string"
|
|
},
|
|
"deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"mute": {
|
|
"type": "boolean"
|
|
},
|
|
"self_deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"self_mute": {
|
|
"type": "boolean"
|
|
},
|
|
"self_stream": {
|
|
"type": "boolean"
|
|
},
|
|
"self_video": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress": {
|
|
"type": "boolean"
|
|
},
|
|
"request_to_speak_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"deaf",
|
|
"guild_id",
|
|
"id",
|
|
"member",
|
|
"mute",
|
|
"self_deaf",
|
|
"self_mute",
|
|
"self_video",
|
|
"session_id",
|
|
"suppress",
|
|
"token",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"ReadState": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"public_ack": {
|
|
"type": "string"
|
|
},
|
|
"notifications_cursor": {
|
|
"type": "string"
|
|
},
|
|
"last_pin_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"mention_count": {
|
|
"type": "integer"
|
|
},
|
|
"manual": {
|
|
"type": "boolean"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"id",
|
|
"last_message_id",
|
|
"manual",
|
|
"mention_count",
|
|
"notifications_cursor",
|
|
"public_ack",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Ban": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"executor_id": {
|
|
"type": "string"
|
|
},
|
|
"executor": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"ip": {
|
|
"type": "string"
|
|
},
|
|
"reason": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"executor",
|
|
"executor_id",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"ip",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Template": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"usage_count": {
|
|
"type": "integer"
|
|
},
|
|
"creator_id": {
|
|
"type": "string"
|
|
},
|
|
"creator": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"updated_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"source_guild_id": {
|
|
"type": "string"
|
|
},
|
|
"source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"serialized_source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"code",
|
|
"created_at",
|
|
"creator",
|
|
"creator_id",
|
|
"id",
|
|
"name",
|
|
"serialized_source_guild",
|
|
"source_guild",
|
|
"source_guild_id",
|
|
"updated_at"
|
|
]
|
|
},
|
|
"Emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"animated": {
|
|
"type": "boolean"
|
|
},
|
|
"available": {
|
|
"type": "boolean"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"managed": {
|
|
"type": "boolean"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"require_colons": {
|
|
"type": "boolean"
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"groups": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"available",
|
|
"groups",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"managed",
|
|
"name",
|
|
"require_colons",
|
|
"roles",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"GuildWelcomeScreen": {
|
|
"type": "object",
|
|
"properties": {
|
|
"enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"welcome_channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"emoji_id": {
|
|
"type": "string"
|
|
},
|
|
"emoji_name": {
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_id",
|
|
"description"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"description",
|
|
"enabled",
|
|
"welcome_channels"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"HubWaitlistSignupResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"email": {
|
|
"type": "string"
|
|
},
|
|
"email_domain": {
|
|
"type": "string"
|
|
},
|
|
"school": {
|
|
"type": "string"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"email",
|
|
"email_domain",
|
|
"school",
|
|
"user_id"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"InstanceDomainsResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"cdn": {
|
|
"type": "string"
|
|
},
|
|
"gateway": {
|
|
"type": "string"
|
|
},
|
|
"defaultApiVersion": {
|
|
"type": "string"
|
|
},
|
|
"apiEndpoint": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"apiEndpoint",
|
|
"cdn",
|
|
"defaultApiVersion",
|
|
"gateway"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"InstancePingResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"ping": {
|
|
"type": "string",
|
|
"const": "pong!"
|
|
},
|
|
"instance": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"image": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"correspondenceEmail": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"correspondenceUserID": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"frontPage": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"tosPage": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"correspondenceEmail",
|
|
"correspondenceUserID",
|
|
"description",
|
|
"frontPage",
|
|
"id",
|
|
"image",
|
|
"name",
|
|
"tosPage"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"instance",
|
|
"ping"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"InstanceStatsResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"counts": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user": {
|
|
"type": "integer"
|
|
},
|
|
"guild": {
|
|
"type": "integer"
|
|
},
|
|
"message": {
|
|
"type": "integer"
|
|
},
|
|
"members": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"guild",
|
|
"members",
|
|
"message",
|
|
"user"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"counts"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"LocationMetadataResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"consent_required": {
|
|
"type": "boolean"
|
|
},
|
|
"country_code": {
|
|
"type": "string"
|
|
},
|
|
"promotional_email_opt_in": {
|
|
"type": "object",
|
|
"properties": {
|
|
"required": {
|
|
"type": "boolean",
|
|
"const": true
|
|
},
|
|
"pre_checked": {
|
|
"type": "boolean",
|
|
"const": false
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"pre_checked",
|
|
"required"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"consent_required",
|
|
"country_code",
|
|
"promotional_email_opt_in"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"MemberJoinGuildResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"guild": {
|
|
"$ref": "#/definitions/GuildCreateResponse"
|
|
},
|
|
"emojis": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Emoji"
|
|
}
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"stickers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"emojis",
|
|
"guild",
|
|
"roles",
|
|
"stickers"
|
|
],
|
|
"definitions": {
|
|
"GuildCreateResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"primary_category_id": {
|
|
"type": "string"
|
|
},
|
|
"large": {
|
|
"type": "boolean"
|
|
},
|
|
"max_members": {
|
|
"type": "integer"
|
|
},
|
|
"max_presences": {
|
|
"type": "integer"
|
|
},
|
|
"max_video_channel_users": {
|
|
"type": "integer"
|
|
},
|
|
"member_count": {
|
|
"type": "integer"
|
|
},
|
|
"presence_count": {
|
|
"type": "integer"
|
|
},
|
|
"template_id": {
|
|
"type": "string"
|
|
},
|
|
"mfa_level": {
|
|
"type": "integer"
|
|
},
|
|
"owner_id": {
|
|
"type": "string"
|
|
},
|
|
"premium_subscription_count": {
|
|
"type": "integer"
|
|
},
|
|
"premium_tier": {
|
|
"type": "integer"
|
|
},
|
|
"welcome_screen": {
|
|
"$ref": "#/definitions/GuildWelcomeScreen"
|
|
},
|
|
"widget_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"widget_enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"nsfw_level": {
|
|
"type": "integer"
|
|
},
|
|
"nsfw": {
|
|
"type": "boolean"
|
|
},
|
|
"parent": {
|
|
"type": "string"
|
|
},
|
|
"region": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"banner": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"system_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"rules_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"guild_template_code": {
|
|
"type": "string"
|
|
},
|
|
"staff_only": {
|
|
"type": "boolean"
|
|
},
|
|
"splash": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"features": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"verification_level": {
|
|
"type": "integer"
|
|
},
|
|
"default_message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"system_channel_flags": {
|
|
"type": "integer"
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer"
|
|
},
|
|
"public_updates_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"afk_timeout": {
|
|
"type": "integer"
|
|
},
|
|
"afk_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"preferred_locale": {
|
|
"type": "string"
|
|
},
|
|
"premium_progress_bar_enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"discovery_splash": {
|
|
"type": "string"
|
|
},
|
|
"safety_alerts_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"nsfw",
|
|
"welcome_screen",
|
|
"widget_enabled"
|
|
]
|
|
},
|
|
"GuildWelcomeScreen": {
|
|
"type": "object",
|
|
"properties": {
|
|
"enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"welcome_channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"emoji_id": {
|
|
"type": "string"
|
|
},
|
|
"emoji_name": {
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_id",
|
|
"description"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"description",
|
|
"enabled",
|
|
"welcome_channels"
|
|
]
|
|
},
|
|
"Emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"animated": {
|
|
"type": "boolean"
|
|
},
|
|
"available": {
|
|
"type": "boolean"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"managed": {
|
|
"type": "boolean"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"require_colons": {
|
|
"type": "boolean"
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"groups": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"available",
|
|
"groups",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"managed",
|
|
"name",
|
|
"require_colons",
|
|
"roles",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Guild": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"afk_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"afk_timeout": {
|
|
"type": "integer"
|
|
},
|
|
"bans": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Ban"
|
|
}
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"default_message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"discovery_splash": {
|
|
"type": "string"
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer"
|
|
},
|
|
"features": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"primary_category_id": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"large": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"max_members": {
|
|
"type": "integer"
|
|
},
|
|
"max_presences": {
|
|
"type": "integer"
|
|
},
|
|
"max_video_channel_users": {
|
|
"type": "integer"
|
|
},
|
|
"member_count": {
|
|
"type": "integer"
|
|
},
|
|
"presence_count": {
|
|
"type": "integer"
|
|
},
|
|
"members": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Member"
|
|
}
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Channel"
|
|
}
|
|
},
|
|
"template_id": {
|
|
"type": "string"
|
|
},
|
|
"template": {
|
|
"$ref": "#/definitions/Template"
|
|
},
|
|
"emojis": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Emoji"
|
|
}
|
|
},
|
|
"stickers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"invites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Invite"
|
|
}
|
|
},
|
|
"voice_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/VoiceState"
|
|
}
|
|
},
|
|
"webhooks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Webhook"
|
|
}
|
|
},
|
|
"mfa_level": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"owner_id": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"preferred_locale": {
|
|
"type": "string"
|
|
},
|
|
"premium_subscription_count": {
|
|
"type": "integer"
|
|
},
|
|
"premium_tier": {
|
|
"type": "integer"
|
|
},
|
|
"public_updates_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"public_updates_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"rules_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"rules_channel": {
|
|
"type": "string"
|
|
},
|
|
"region": {
|
|
"type": "string"
|
|
},
|
|
"splash": {
|
|
"type": "string"
|
|
},
|
|
"system_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"system_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"system_channel_flags": {
|
|
"type": "integer"
|
|
},
|
|
"unavailable": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"verification_level": {
|
|
"type": "integer"
|
|
},
|
|
"welcome_screen": {
|
|
"$ref": "#/definitions/GuildWelcomeScreen",
|
|
"description": "DEPRECATED: Look at the new Guild onboarding screens."
|
|
},
|
|
"widget_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"widget_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"widget_enabled": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"nsfw_level": {
|
|
"type": "integer"
|
|
},
|
|
"nsfw": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"parent": {
|
|
"type": "string"
|
|
},
|
|
"permissions": {
|
|
"type": "integer"
|
|
},
|
|
"premium_progress_bar_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"channel_ordering": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bans",
|
|
"channel_ordering",
|
|
"channels",
|
|
"emojis",
|
|
"features",
|
|
"id",
|
|
"invites",
|
|
"members",
|
|
"name",
|
|
"nsfw",
|
|
"premium_progress_bar_enabled",
|
|
"public_updates_channel_id",
|
|
"roles",
|
|
"stickers",
|
|
"template",
|
|
"unavailable",
|
|
"voice_states",
|
|
"webhooks",
|
|
"welcome_screen",
|
|
"widget_enabled"
|
|
]
|
|
},
|
|
"Channel": {
|
|
"type": "object",
|
|
"properties": {
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ChannelType"
|
|
},
|
|
"recipients": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Recipient"
|
|
}
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"parent_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"parent": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"owner_id": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"last_pin_timestamp": {
|
|
"type": "integer"
|
|
},
|
|
"default_auto_archive_duration": {
|
|
"type": "integer"
|
|
},
|
|
"permission_overwrites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwrite"
|
|
}
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
},
|
|
"bitrate": {
|
|
"type": "integer"
|
|
},
|
|
"user_limit": {
|
|
"type": "integer"
|
|
},
|
|
"nsfw": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"topic": {
|
|
"type": "string"
|
|
},
|
|
"invites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Invite"
|
|
}
|
|
},
|
|
"retention_policy_id": {
|
|
"type": "string"
|
|
},
|
|
"messages": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Message"
|
|
}
|
|
},
|
|
"voice_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/VoiceState"
|
|
}
|
|
},
|
|
"read_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ReadState"
|
|
}
|
|
},
|
|
"webhooks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Webhook"
|
|
}
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"position": {
|
|
"description": "Must be calculated Channel.calculatePosition",
|
|
"type": "integer"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"created_at",
|
|
"flags",
|
|
"id",
|
|
"nsfw",
|
|
"owner",
|
|
"parent_id",
|
|
"position",
|
|
"type"
|
|
]
|
|
},
|
|
"ChannelType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
33,
|
|
34,
|
|
35,
|
|
64,
|
|
255
|
|
]
|
|
},
|
|
"Recipient": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"closed": {
|
|
"type": "boolean"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"closed",
|
|
"id",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"User": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"theme_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"phone": {
|
|
"type": "string"
|
|
},
|
|
"desktop": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"mobile": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"premium": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_type": {
|
|
"type": "integer"
|
|
},
|
|
"bot": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"bio": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"system": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"nsfw_allowed": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"mfa_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"webauthn_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"totp_secret": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"totp_last_ticket": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"deleted": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"email": {
|
|
"type": "string"
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"public_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"purchased_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"premium_usage_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"rights": {
|
|
"type": "string"
|
|
},
|
|
"sessions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Session"
|
|
}
|
|
},
|
|
"relationships": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Relationship"
|
|
}
|
|
},
|
|
"connected_accounts": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ConnectedAccount"
|
|
}
|
|
},
|
|
"data": {
|
|
"type": "object",
|
|
"properties": {
|
|
"valid_tokens_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"hash": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"valid_tokens_since"
|
|
]
|
|
},
|
|
"fingerprints": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"settings": {
|
|
"$ref": "#/definitions/UserSettings"
|
|
},
|
|
"extended_settings": {
|
|
"type": "string",
|
|
"default": "{}"
|
|
},
|
|
"security_keys": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SecurityKey"
|
|
}
|
|
},
|
|
"badge_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"connected_accounts",
|
|
"created_at",
|
|
"data",
|
|
"deleted",
|
|
"desktop",
|
|
"disabled",
|
|
"discriminator",
|
|
"extended_settings",
|
|
"fingerprints",
|
|
"flags",
|
|
"id",
|
|
"mfa_enabled",
|
|
"mobile",
|
|
"nsfw_allowed",
|
|
"premium",
|
|
"premium_since",
|
|
"premium_type",
|
|
"premium_usage_flags",
|
|
"public_flags",
|
|
"purchased_flags",
|
|
"relationships",
|
|
"rights",
|
|
"security_keys",
|
|
"sessions",
|
|
"system",
|
|
"username",
|
|
"verified",
|
|
"webauthn_enabled"
|
|
]
|
|
},
|
|
"Session": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"client_info": {
|
|
"type": "object",
|
|
"properties": {
|
|
"client": {
|
|
"type": "string"
|
|
},
|
|
"os": {
|
|
"type": "string"
|
|
},
|
|
"version": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"client",
|
|
"os",
|
|
"version"
|
|
]
|
|
},
|
|
"client_status": {
|
|
"$ref": "#/definitions/ClientStatus"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"activities",
|
|
"client_info",
|
|
"client_status",
|
|
"id",
|
|
"session_id",
|
|
"status",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
]
|
|
},
|
|
"ClientStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"desktop": {
|
|
"type": "string"
|
|
},
|
|
"mobile": {
|
|
"type": "string"
|
|
},
|
|
"web": {
|
|
"type": "string"
|
|
},
|
|
"embedded": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Relationship": {
|
|
"type": "object",
|
|
"properties": {
|
|
"from_id": {
|
|
"type": "string"
|
|
},
|
|
"from": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"to_id": {
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"nickname": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/RelationshipType"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"from",
|
|
"from_id",
|
|
"id",
|
|
"to",
|
|
"to_id",
|
|
"type"
|
|
]
|
|
},
|
|
"RelationshipType": {
|
|
"type": "number",
|
|
"enum": [
|
|
4,
|
|
3,
|
|
2,
|
|
1
|
|
]
|
|
},
|
|
"ConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"external_id": {
|
|
"type": "string"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"friend_sync": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"revoked": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"show_activity": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"visibility": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"integrations": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"metadata_": {},
|
|
"metadata_visibility": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"two_way_link": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"token_data": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/ConnectedAccountTokenData"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"external_id",
|
|
"id",
|
|
"name",
|
|
"type",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"ConnectedAccountTokenData": {
|
|
"type": "object",
|
|
"properties": {
|
|
"access_token": {
|
|
"type": "string"
|
|
},
|
|
"token_type": {
|
|
"type": "string"
|
|
},
|
|
"scope": {
|
|
"type": "string"
|
|
},
|
|
"refresh_token": {
|
|
"type": "string"
|
|
},
|
|
"expires_in": {
|
|
"type": "integer"
|
|
},
|
|
"expires_at": {
|
|
"type": "integer"
|
|
},
|
|
"fetched_at": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"access_token",
|
|
"fetched_at"
|
|
]
|
|
},
|
|
"UserSettings": {
|
|
"type": "object",
|
|
"properties": {
|
|
"index": {
|
|
"type": "string"
|
|
},
|
|
"afk_timeout": {
|
|
"type": "integer",
|
|
"default": 3600
|
|
},
|
|
"allow_accessibility_detection": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"animate_emoji": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"animate_stickers": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"contact_sync_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"convert_emoticons": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"custom_status": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/CustomStatus"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"default_guilds_restricted": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"detect_platform_accounts": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"developer_mode": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"disable_games_tab": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"enable_tts_command": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"friend_discovery_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"friend_source_flags": {
|
|
"$ref": "#/definitions/FriendSourceFlags"
|
|
},
|
|
"gateway_connected": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"gif_auto_play": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"guild_folders": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/GuildFolder"
|
|
},
|
|
"default": []
|
|
},
|
|
"guild_positions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"inline_attachment_media": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"inline_embed_media": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"locale": {
|
|
"type": "string",
|
|
"default": "en-US"
|
|
},
|
|
"message_display_compact": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"native_phone_integration_enabled": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"render_embeds": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"render_reactions": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"restricted_guilds": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"show_current_game": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string",
|
|
"default": "online"
|
|
},
|
|
"stream_notifications_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"theme": {
|
|
"enum": [
|
|
"dark",
|
|
"light"
|
|
],
|
|
"type": "string",
|
|
"default": "dark"
|
|
},
|
|
"timezone_offset": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"view_nsfw_guilds": {
|
|
"type": "boolean",
|
|
"default": true
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk_timeout",
|
|
"allow_accessibility_detection",
|
|
"animate_emoji",
|
|
"animate_stickers",
|
|
"contact_sync_enabled",
|
|
"convert_emoticons",
|
|
"custom_status",
|
|
"default_guilds_restricted",
|
|
"detect_platform_accounts",
|
|
"developer_mode",
|
|
"disable_games_tab",
|
|
"enable_tts_command",
|
|
"explicit_content_filter",
|
|
"friend_discovery_flags",
|
|
"friend_source_flags",
|
|
"gateway_connected",
|
|
"gif_auto_play",
|
|
"guild_folders",
|
|
"guild_positions",
|
|
"index",
|
|
"inline_attachment_media",
|
|
"inline_embed_media",
|
|
"locale",
|
|
"message_display_compact",
|
|
"native_phone_integration_enabled",
|
|
"render_embeds",
|
|
"render_reactions",
|
|
"restricted_guilds",
|
|
"show_current_game",
|
|
"status",
|
|
"stream_notifications_enabled",
|
|
"theme",
|
|
"timezone_offset",
|
|
"view_nsfw_guilds"
|
|
]
|
|
},
|
|
"CustomStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"emoji_id": {
|
|
"type": "string"
|
|
},
|
|
"emoji_name": {
|
|
"type": "string"
|
|
},
|
|
"expires_at": {
|
|
"type": "integer"
|
|
},
|
|
"text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"FriendSourceFlags": {
|
|
"type": "object",
|
|
"properties": {
|
|
"all": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"all"
|
|
]
|
|
},
|
|
"GuildFolder": {
|
|
"type": "object",
|
|
"properties": {
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"guild_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"color",
|
|
"guild_ids",
|
|
"id",
|
|
"name"
|
|
]
|
|
},
|
|
"SecurityKey": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"key_id": {
|
|
"type": "string"
|
|
},
|
|
"public_key": {
|
|
"type": "string"
|
|
},
|
|
"counter": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"counter",
|
|
"id",
|
|
"key_id",
|
|
"name",
|
|
"public_key",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"ChannelPermissionOverwrite": {
|
|
"type": "object",
|
|
"properties": {
|
|
"allow": {
|
|
"type": "string"
|
|
},
|
|
"deny": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"allow",
|
|
"deny",
|
|
"id",
|
|
"type"
|
|
]
|
|
},
|
|
"ChannelPermissionOverwriteType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"Invite": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "string"
|
|
},
|
|
"temporary": {
|
|
"type": "boolean"
|
|
},
|
|
"uses": {
|
|
"type": "integer"
|
|
},
|
|
"max_uses": {
|
|
"type": "integer"
|
|
},
|
|
"max_age": {
|
|
"type": "integer"
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"expires_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"inviter_id": {
|
|
"type": "string"
|
|
},
|
|
"inviter": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"target_user_id": {
|
|
"type": "string"
|
|
},
|
|
"target_user": {
|
|
"type": "string"
|
|
},
|
|
"target_user_type": {
|
|
"type": "integer"
|
|
},
|
|
"vanity_url": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"code",
|
|
"created_at",
|
|
"flags",
|
|
"guild",
|
|
"guild_id",
|
|
"inviter",
|
|
"max_age",
|
|
"max_uses",
|
|
"target_user_id",
|
|
"temporary",
|
|
"uses"
|
|
]
|
|
},
|
|
"Message": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"author_id": {
|
|
"type": "string"
|
|
},
|
|
"author": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"member_id": {
|
|
"type": "string"
|
|
},
|
|
"member": {
|
|
"$ref": "#/definitions/Member"
|
|
},
|
|
"webhook_id": {
|
|
"type": "string"
|
|
},
|
|
"webhook": {
|
|
"$ref": "#/definitions/Webhook"
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"application": {
|
|
"$ref": "#/definitions/Application"
|
|
},
|
|
"content": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"edited_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"tts": {
|
|
"type": "boolean"
|
|
},
|
|
"mention_everyone": {
|
|
"type": "boolean"
|
|
},
|
|
"mentions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/User"
|
|
}
|
|
},
|
|
"mention_roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"mention_channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Channel"
|
|
}
|
|
},
|
|
"sticker_items": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"attachments": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Attachment"
|
|
}
|
|
},
|
|
"embeds": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Embed"
|
|
}
|
|
},
|
|
"reactions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Reaction"
|
|
}
|
|
},
|
|
"nonce": {
|
|
"type": "string"
|
|
},
|
|
"pinned_at": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"pinned": {
|
|
"type": "boolean"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/MessageType"
|
|
},
|
|
"activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "integer"
|
|
},
|
|
"party_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"party_id",
|
|
"type"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"message_reference": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"message_id"
|
|
]
|
|
},
|
|
"referenced_message": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/Message"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"interaction": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/InteractionType"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"type"
|
|
]
|
|
},
|
|
"interaction_metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/InteractionType"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"authorizing_integration_owners": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"command_type": {
|
|
"$ref": "#/definitions/ApplicationCommandType"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"authorizing_integration_owners",
|
|
"command_type",
|
|
"id",
|
|
"name",
|
|
"type",
|
|
"user_id"
|
|
]
|
|
},
|
|
"components": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ActionRowComponent"
|
|
}
|
|
},
|
|
"poll": {
|
|
"$ref": "#/definitions/Poll"
|
|
},
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"embeds",
|
|
"flags",
|
|
"id",
|
|
"mention_channels",
|
|
"mention_roles",
|
|
"mentions",
|
|
"pinned",
|
|
"reactions",
|
|
"timestamp",
|
|
"type"
|
|
]
|
|
},
|
|
"Member": {
|
|
"type": "object",
|
|
"properties": {
|
|
"index": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"nick": {
|
|
"type": "string"
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"joined_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"premium_since": {
|
|
"type": "integer"
|
|
},
|
|
"deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"mute": {
|
|
"type": "boolean"
|
|
},
|
|
"pending": {
|
|
"type": "boolean"
|
|
},
|
|
"settings": {
|
|
"$ref": "#/definitions/UserGuildSettings"
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"joined_by": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"theme_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"communication_disabled_until": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"banner",
|
|
"bio",
|
|
"communication_disabled_until",
|
|
"deaf",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"index",
|
|
"joined_at",
|
|
"joined_by",
|
|
"mute",
|
|
"pending",
|
|
"roles",
|
|
"settings",
|
|
"user"
|
|
]
|
|
},
|
|
"Role": {
|
|
"type": "object",
|
|
"properties": {
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"hoist": {
|
|
"type": "boolean"
|
|
},
|
|
"managed": {
|
|
"type": "boolean"
|
|
},
|
|
"mentionable": {
|
|
"type": "boolean"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"permissions": {
|
|
"type": "string"
|
|
},
|
|
"position": {
|
|
"type": "integer"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"unicode_emoji": {
|
|
"type": "string"
|
|
},
|
|
"tags": {
|
|
"type": "object",
|
|
"properties": {
|
|
"bot_id": {
|
|
"type": "string"
|
|
},
|
|
"integration_id": {
|
|
"type": "string"
|
|
},
|
|
"premium_subscriber": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"colors": {
|
|
"$ref": "#/definitions/RoleColors"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"color",
|
|
"colors",
|
|
"flags",
|
|
"guild",
|
|
"guild_id",
|
|
"hoist",
|
|
"id",
|
|
"managed",
|
|
"mentionable",
|
|
"name",
|
|
"permissions",
|
|
"position"
|
|
]
|
|
},
|
|
"RoleColors": {
|
|
"type": "object",
|
|
"properties": {
|
|
"primary_color": {
|
|
"type": "integer"
|
|
},
|
|
"secondary_color": {
|
|
"type": "integer"
|
|
},
|
|
"tertiary_color": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"primary_color"
|
|
]
|
|
},
|
|
"UserGuildSettings": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_overrides": {
|
|
"anyOf": [
|
|
{
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"$ref": "#/definitions/ChannelOverride"
|
|
}
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mobile_push": {
|
|
"type": "boolean"
|
|
},
|
|
"mute_config": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress_everyone": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress_roles": {
|
|
"type": "boolean"
|
|
},
|
|
"version": {
|
|
"type": "integer"
|
|
},
|
|
"guild_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"mute_scheduled_events": {
|
|
"type": "boolean"
|
|
},
|
|
"hide_muted_channels": {
|
|
"type": "boolean"
|
|
},
|
|
"notify_highlights": {
|
|
"type": "integer",
|
|
"const": 0
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_overrides",
|
|
"flags",
|
|
"guild_id",
|
|
"hide_muted_channels",
|
|
"message_notifications",
|
|
"mobile_push",
|
|
"mute_config",
|
|
"mute_scheduled_events",
|
|
"muted",
|
|
"notify_highlights",
|
|
"suppress_everyone",
|
|
"suppress_roles",
|
|
"version"
|
|
]
|
|
},
|
|
"ChannelOverride": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_id",
|
|
"message_notifications",
|
|
"mute_config",
|
|
"muted"
|
|
]
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"Webhook": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/WebhookType"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"token": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"application": {
|
|
"$ref": "#/definitions/Application"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"source_guild_id": {
|
|
"type": "string"
|
|
},
|
|
"source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"source_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"source_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"application",
|
|
"application_id",
|
|
"avatar",
|
|
"channel",
|
|
"channel_id",
|
|
"id",
|
|
"name",
|
|
"source_channel",
|
|
"source_channel_id",
|
|
"type",
|
|
"url",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"WebhookType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3
|
|
]
|
|
},
|
|
"Application": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"summary": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"type": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true
|
|
},
|
|
"hook": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"bot_public": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"bot_require_code_grant": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"verify_key": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"redirect_uris": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"rpc_application_state": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"store_application_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"verification_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"interactions_endpoint_url": {
|
|
"type": "string"
|
|
},
|
|
"integration_public": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"integration_require_code_grant": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"discoverability_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"discovery_eligibility_flags": {
|
|
"type": "integer",
|
|
"default": 2240
|
|
},
|
|
"bot": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"tags": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"cover_image": {
|
|
"type": "string"
|
|
},
|
|
"install_params": {
|
|
"type": "object",
|
|
"properties": {
|
|
"scopes": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"permissions": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"permissions",
|
|
"scopes"
|
|
]
|
|
},
|
|
"terms_of_service_url": {
|
|
"type": "string"
|
|
},
|
|
"privacy_policy_url": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"custom_install_url": {
|
|
"type": "string"
|
|
},
|
|
"team": {
|
|
"$ref": "#/definitions/Team"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"description",
|
|
"discoverability_state",
|
|
"discovery_eligibility_flags",
|
|
"flags",
|
|
"hook",
|
|
"id",
|
|
"integration_public",
|
|
"integration_require_code_grant",
|
|
"name",
|
|
"owner",
|
|
"redirect_uris",
|
|
"rpc_application_state",
|
|
"store_application_state",
|
|
"summary",
|
|
"verification_state",
|
|
"verify_key"
|
|
]
|
|
},
|
|
"Team": {
|
|
"type": "object",
|
|
"properties": {
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"members": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/TeamMember"
|
|
}
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"owner_user_id": {
|
|
"type": "string"
|
|
},
|
|
"owner_user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"members",
|
|
"name",
|
|
"owner_user",
|
|
"owner_user_id"
|
|
]
|
|
},
|
|
"TeamMember": {
|
|
"type": "object",
|
|
"properties": {
|
|
"membership_state": {
|
|
"$ref": "#/definitions/TeamMemberState"
|
|
},
|
|
"permissions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"role": {
|
|
"$ref": "#/definitions/TeamMemberRole"
|
|
},
|
|
"team_id": {
|
|
"type": "string"
|
|
},
|
|
"team": {
|
|
"$ref": "#/definitions/Team"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"membership_state",
|
|
"permissions",
|
|
"role",
|
|
"team",
|
|
"team_id",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"TeamMemberState": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"TeamMemberRole": {
|
|
"type": "string",
|
|
"enum": [
|
|
"admin",
|
|
"developer",
|
|
"read_only"
|
|
]
|
|
},
|
|
"Sticker": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"available": {
|
|
"type": "boolean"
|
|
},
|
|
"tags": {
|
|
"type": "string"
|
|
},
|
|
"pack_id": {
|
|
"type": "string"
|
|
},
|
|
"pack": {
|
|
"$ref": "#/definitions/StickerPack"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/StickerType"
|
|
},
|
|
"format_type": {
|
|
"$ref": "#/definitions/StickerFormatType"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"format_type",
|
|
"id",
|
|
"name",
|
|
"pack",
|
|
"type"
|
|
]
|
|
},
|
|
"StickerPack": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"banner_asset_id": {
|
|
"type": "string"
|
|
},
|
|
"stickers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"cover_sticker_id": {
|
|
"type": "string"
|
|
},
|
|
"cover_sticker": {
|
|
"$ref": "#/definitions/Sticker"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"stickers"
|
|
]
|
|
},
|
|
"StickerType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"StickerFormatType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4
|
|
]
|
|
},
|
|
"Attachment": {
|
|
"type": "object",
|
|
"properties": {
|
|
"filename": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "integer"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
},
|
|
"content_type": {
|
|
"type": "string"
|
|
},
|
|
"message_id": {
|
|
"type": "string"
|
|
},
|
|
"message": {
|
|
"$ref": "#/definitions/Message"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"filename",
|
|
"id",
|
|
"message",
|
|
"message_id",
|
|
"proxy_url",
|
|
"size",
|
|
"url"
|
|
]
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"Reaction": {
|
|
"type": "object",
|
|
"properties": {
|
|
"count": {
|
|
"type": "integer"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"user_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"count",
|
|
"emoji",
|
|
"user_ids"
|
|
]
|
|
},
|
|
"PartialEmoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name"
|
|
]
|
|
},
|
|
"MessageType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
16,
|
|
19,
|
|
20,
|
|
41,
|
|
42,
|
|
43,
|
|
50,
|
|
63,
|
|
255
|
|
]
|
|
},
|
|
"InteractionType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5
|
|
]
|
|
},
|
|
"ApplicationCommandType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4
|
|
]
|
|
},
|
|
"ActionRowComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.ActionRow"
|
|
},
|
|
"components": {
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/ButtonComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/SelectMenuComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/StringSelectMenuComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/TextInputComponent"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"components",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.ActionRow": {
|
|
"type": "number",
|
|
"const": 1
|
|
},
|
|
"ButtonComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.Button"
|
|
},
|
|
"style": {
|
|
"$ref": "#/definitions/ButtonStyle"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"sku_id": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"style",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.Button": {
|
|
"type": "number",
|
|
"const": 2
|
|
},
|
|
"ButtonStyle": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6
|
|
]
|
|
},
|
|
"SelectMenuComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": [
|
|
3,
|
|
5,
|
|
6,
|
|
7,
|
|
8
|
|
],
|
|
"type": "number"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_types": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
},
|
|
"default_values": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuDefaultOption"
|
|
}
|
|
},
|
|
"min_values": {
|
|
"type": "integer"
|
|
},
|
|
"max_values": {
|
|
"type": "integer"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"type"
|
|
]
|
|
},
|
|
"SelectMenuDefaultOption": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"channel",
|
|
"role",
|
|
"user"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"type"
|
|
]
|
|
},
|
|
"StringSelectMenuComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.StringSelect"
|
|
},
|
|
"options": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuOption"
|
|
}
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_types": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
},
|
|
"default_values": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuDefaultOption"
|
|
}
|
|
},
|
|
"min_values": {
|
|
"type": "integer"
|
|
},
|
|
"max_values": {
|
|
"type": "integer"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"options",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.StringSelect": {
|
|
"type": "number",
|
|
"const": 3
|
|
},
|
|
"SelectMenuOption": {
|
|
"type": "object",
|
|
"properties": {
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"default": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"label",
|
|
"value"
|
|
]
|
|
},
|
|
"TextInputComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.TextInput"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"style": {
|
|
"$ref": "#/definitions/TextInputStyle"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"min_length": {
|
|
"type": "integer"
|
|
},
|
|
"max_length": {
|
|
"type": "integer"
|
|
},
|
|
"required": {
|
|
"type": "boolean"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"label",
|
|
"style",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.TextInput": {
|
|
"type": "number",
|
|
"const": 4
|
|
},
|
|
"TextInputStyle": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"Poll": {
|
|
"type": "object",
|
|
"properties": {
|
|
"question": {
|
|
"$ref": "#/definitions/PollMedia"
|
|
},
|
|
"answers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/PollAnswer"
|
|
}
|
|
},
|
|
"expiry": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"allow_multiselect": {
|
|
"type": "boolean"
|
|
},
|
|
"results": {
|
|
"$ref": "#/definitions/PollResult"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"allow_multiselect",
|
|
"answers",
|
|
"expiry",
|
|
"question"
|
|
]
|
|
},
|
|
"PollMedia": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"PollAnswer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"answer_id": {
|
|
"type": "string"
|
|
},
|
|
"poll_media": {
|
|
"$ref": "#/definitions/PollMedia"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"poll_media"
|
|
]
|
|
},
|
|
"PollResult": {
|
|
"type": "object",
|
|
"properties": {
|
|
"is_finalized": {
|
|
"type": "boolean"
|
|
},
|
|
"answer_counts": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/PollAnswerCount"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"answer_counts",
|
|
"is_finalized"
|
|
]
|
|
},
|
|
"PollAnswerCount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"count": {
|
|
"type": "integer"
|
|
},
|
|
"me_voted": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"count",
|
|
"id",
|
|
"me_voted"
|
|
]
|
|
},
|
|
"VoiceState": {
|
|
"type": "object",
|
|
"properties": {
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"member": {
|
|
"$ref": "#/definitions/Member"
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
},
|
|
"token": {
|
|
"type": "string"
|
|
},
|
|
"deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"mute": {
|
|
"type": "boolean"
|
|
},
|
|
"self_deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"self_mute": {
|
|
"type": "boolean"
|
|
},
|
|
"self_stream": {
|
|
"type": "boolean"
|
|
},
|
|
"self_video": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress": {
|
|
"type": "boolean"
|
|
},
|
|
"request_to_speak_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"deaf",
|
|
"guild_id",
|
|
"id",
|
|
"member",
|
|
"mute",
|
|
"self_deaf",
|
|
"self_mute",
|
|
"self_video",
|
|
"session_id",
|
|
"suppress",
|
|
"token",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"ReadState": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"public_ack": {
|
|
"type": "string"
|
|
},
|
|
"notifications_cursor": {
|
|
"type": "string"
|
|
},
|
|
"last_pin_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"mention_count": {
|
|
"type": "integer"
|
|
},
|
|
"manual": {
|
|
"type": "boolean"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"id",
|
|
"last_message_id",
|
|
"manual",
|
|
"mention_count",
|
|
"notifications_cursor",
|
|
"public_ack",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Ban": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"executor_id": {
|
|
"type": "string"
|
|
},
|
|
"executor": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"ip": {
|
|
"type": "string"
|
|
},
|
|
"reason": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"executor",
|
|
"executor_id",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"ip",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Template": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"usage_count": {
|
|
"type": "integer"
|
|
},
|
|
"creator_id": {
|
|
"type": "string"
|
|
},
|
|
"creator": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"updated_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"source_guild_id": {
|
|
"type": "string"
|
|
},
|
|
"source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"serialized_source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"code",
|
|
"created_at",
|
|
"creator",
|
|
"creator_id",
|
|
"id",
|
|
"name",
|
|
"serialized_source_guild",
|
|
"source_guild",
|
|
"source_guild_id",
|
|
"updated_at"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"OAuthAuthorizeResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"location": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"location"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"PreloadMessagesResponseSchema": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Message"
|
|
},
|
|
"definitions": {
|
|
"Message": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"author_id": {
|
|
"type": "string"
|
|
},
|
|
"author": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"member_id": {
|
|
"type": "string"
|
|
},
|
|
"member": {
|
|
"$ref": "#/definitions/Member"
|
|
},
|
|
"webhook_id": {
|
|
"type": "string"
|
|
},
|
|
"webhook": {
|
|
"$ref": "#/definitions/Webhook"
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"application": {
|
|
"$ref": "#/definitions/Application"
|
|
},
|
|
"content": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"edited_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"tts": {
|
|
"type": "boolean"
|
|
},
|
|
"mention_everyone": {
|
|
"type": "boolean"
|
|
},
|
|
"mentions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/User"
|
|
}
|
|
},
|
|
"mention_roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"mention_channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Channel"
|
|
}
|
|
},
|
|
"sticker_items": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"attachments": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Attachment"
|
|
}
|
|
},
|
|
"embeds": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Embed"
|
|
}
|
|
},
|
|
"reactions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Reaction"
|
|
}
|
|
},
|
|
"nonce": {
|
|
"type": "string"
|
|
},
|
|
"pinned_at": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"pinned": {
|
|
"type": "boolean"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/MessageType"
|
|
},
|
|
"activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "integer"
|
|
},
|
|
"party_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"party_id",
|
|
"type"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"message_reference": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"message_id"
|
|
]
|
|
},
|
|
"referenced_message": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/Message"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"interaction": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/InteractionType"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"type"
|
|
]
|
|
},
|
|
"interaction_metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/InteractionType"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"authorizing_integration_owners": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"command_type": {
|
|
"$ref": "#/definitions/ApplicationCommandType"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"authorizing_integration_owners",
|
|
"command_type",
|
|
"id",
|
|
"name",
|
|
"type",
|
|
"user_id"
|
|
]
|
|
},
|
|
"components": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ActionRowComponent"
|
|
}
|
|
},
|
|
"poll": {
|
|
"$ref": "#/definitions/Poll"
|
|
},
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"embeds",
|
|
"flags",
|
|
"id",
|
|
"mention_channels",
|
|
"mention_roles",
|
|
"mentions",
|
|
"pinned",
|
|
"reactions",
|
|
"timestamp",
|
|
"type"
|
|
]
|
|
},
|
|
"Channel": {
|
|
"type": "object",
|
|
"properties": {
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ChannelType"
|
|
},
|
|
"recipients": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Recipient"
|
|
}
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"parent_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"parent": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"owner_id": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"last_pin_timestamp": {
|
|
"type": "integer"
|
|
},
|
|
"default_auto_archive_duration": {
|
|
"type": "integer"
|
|
},
|
|
"permission_overwrites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwrite"
|
|
}
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
},
|
|
"bitrate": {
|
|
"type": "integer"
|
|
},
|
|
"user_limit": {
|
|
"type": "integer"
|
|
},
|
|
"nsfw": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"topic": {
|
|
"type": "string"
|
|
},
|
|
"invites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Invite"
|
|
}
|
|
},
|
|
"retention_policy_id": {
|
|
"type": "string"
|
|
},
|
|
"messages": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Message"
|
|
}
|
|
},
|
|
"voice_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/VoiceState"
|
|
}
|
|
},
|
|
"read_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ReadState"
|
|
}
|
|
},
|
|
"webhooks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Webhook"
|
|
}
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"position": {
|
|
"description": "Must be calculated Channel.calculatePosition",
|
|
"type": "integer"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"created_at",
|
|
"flags",
|
|
"id",
|
|
"nsfw",
|
|
"owner",
|
|
"parent_id",
|
|
"position",
|
|
"type"
|
|
]
|
|
},
|
|
"ChannelType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
33,
|
|
34,
|
|
35,
|
|
64,
|
|
255
|
|
]
|
|
},
|
|
"Recipient": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"closed": {
|
|
"type": "boolean"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"closed",
|
|
"id",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"User": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"theme_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"phone": {
|
|
"type": "string"
|
|
},
|
|
"desktop": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"mobile": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"premium": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_type": {
|
|
"type": "integer"
|
|
},
|
|
"bot": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"bio": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"system": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"nsfw_allowed": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"mfa_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"webauthn_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"totp_secret": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"totp_last_ticket": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"deleted": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"email": {
|
|
"type": "string"
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"public_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"purchased_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"premium_usage_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"rights": {
|
|
"type": "string"
|
|
},
|
|
"sessions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Session"
|
|
}
|
|
},
|
|
"relationships": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Relationship"
|
|
}
|
|
},
|
|
"connected_accounts": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ConnectedAccount"
|
|
}
|
|
},
|
|
"data": {
|
|
"type": "object",
|
|
"properties": {
|
|
"valid_tokens_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"hash": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"valid_tokens_since"
|
|
]
|
|
},
|
|
"fingerprints": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"settings": {
|
|
"$ref": "#/definitions/UserSettings"
|
|
},
|
|
"extended_settings": {
|
|
"type": "string",
|
|
"default": "{}"
|
|
},
|
|
"security_keys": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SecurityKey"
|
|
}
|
|
},
|
|
"badge_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"connected_accounts",
|
|
"created_at",
|
|
"data",
|
|
"deleted",
|
|
"desktop",
|
|
"disabled",
|
|
"discriminator",
|
|
"extended_settings",
|
|
"fingerprints",
|
|
"flags",
|
|
"id",
|
|
"mfa_enabled",
|
|
"mobile",
|
|
"nsfw_allowed",
|
|
"premium",
|
|
"premium_since",
|
|
"premium_type",
|
|
"premium_usage_flags",
|
|
"public_flags",
|
|
"purchased_flags",
|
|
"relationships",
|
|
"rights",
|
|
"security_keys",
|
|
"sessions",
|
|
"system",
|
|
"username",
|
|
"verified",
|
|
"webauthn_enabled"
|
|
]
|
|
},
|
|
"Session": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"client_info": {
|
|
"type": "object",
|
|
"properties": {
|
|
"client": {
|
|
"type": "string"
|
|
},
|
|
"os": {
|
|
"type": "string"
|
|
},
|
|
"version": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"client",
|
|
"os",
|
|
"version"
|
|
]
|
|
},
|
|
"client_status": {
|
|
"$ref": "#/definitions/ClientStatus"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"activities",
|
|
"client_info",
|
|
"client_status",
|
|
"id",
|
|
"session_id",
|
|
"status",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
]
|
|
},
|
|
"ClientStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"desktop": {
|
|
"type": "string"
|
|
},
|
|
"mobile": {
|
|
"type": "string"
|
|
},
|
|
"web": {
|
|
"type": "string"
|
|
},
|
|
"embedded": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Relationship": {
|
|
"type": "object",
|
|
"properties": {
|
|
"from_id": {
|
|
"type": "string"
|
|
},
|
|
"from": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"to_id": {
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"nickname": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/RelationshipType"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"from",
|
|
"from_id",
|
|
"id",
|
|
"to",
|
|
"to_id",
|
|
"type"
|
|
]
|
|
},
|
|
"RelationshipType": {
|
|
"type": "number",
|
|
"enum": [
|
|
4,
|
|
3,
|
|
2,
|
|
1
|
|
]
|
|
},
|
|
"ConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"external_id": {
|
|
"type": "string"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"friend_sync": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"revoked": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"show_activity": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"visibility": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"integrations": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"metadata_": {},
|
|
"metadata_visibility": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"two_way_link": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"token_data": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/ConnectedAccountTokenData"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"external_id",
|
|
"id",
|
|
"name",
|
|
"type",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"ConnectedAccountTokenData": {
|
|
"type": "object",
|
|
"properties": {
|
|
"access_token": {
|
|
"type": "string"
|
|
},
|
|
"token_type": {
|
|
"type": "string"
|
|
},
|
|
"scope": {
|
|
"type": "string"
|
|
},
|
|
"refresh_token": {
|
|
"type": "string"
|
|
},
|
|
"expires_in": {
|
|
"type": "integer"
|
|
},
|
|
"expires_at": {
|
|
"type": "integer"
|
|
},
|
|
"fetched_at": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"access_token",
|
|
"fetched_at"
|
|
]
|
|
},
|
|
"UserSettings": {
|
|
"type": "object",
|
|
"properties": {
|
|
"index": {
|
|
"type": "string"
|
|
},
|
|
"afk_timeout": {
|
|
"type": "integer",
|
|
"default": 3600
|
|
},
|
|
"allow_accessibility_detection": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"animate_emoji": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"animate_stickers": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"contact_sync_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"convert_emoticons": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"custom_status": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/CustomStatus"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"default_guilds_restricted": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"detect_platform_accounts": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"developer_mode": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"disable_games_tab": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"enable_tts_command": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"friend_discovery_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"friend_source_flags": {
|
|
"$ref": "#/definitions/FriendSourceFlags"
|
|
},
|
|
"gateway_connected": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"gif_auto_play": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"guild_folders": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/GuildFolder"
|
|
},
|
|
"default": []
|
|
},
|
|
"guild_positions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"inline_attachment_media": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"inline_embed_media": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"locale": {
|
|
"type": "string",
|
|
"default": "en-US"
|
|
},
|
|
"message_display_compact": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"native_phone_integration_enabled": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"render_embeds": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"render_reactions": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"restricted_guilds": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"show_current_game": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string",
|
|
"default": "online"
|
|
},
|
|
"stream_notifications_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"theme": {
|
|
"enum": [
|
|
"dark",
|
|
"light"
|
|
],
|
|
"type": "string",
|
|
"default": "dark"
|
|
},
|
|
"timezone_offset": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"view_nsfw_guilds": {
|
|
"type": "boolean",
|
|
"default": true
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk_timeout",
|
|
"allow_accessibility_detection",
|
|
"animate_emoji",
|
|
"animate_stickers",
|
|
"contact_sync_enabled",
|
|
"convert_emoticons",
|
|
"custom_status",
|
|
"default_guilds_restricted",
|
|
"detect_platform_accounts",
|
|
"developer_mode",
|
|
"disable_games_tab",
|
|
"enable_tts_command",
|
|
"explicit_content_filter",
|
|
"friend_discovery_flags",
|
|
"friend_source_flags",
|
|
"gateway_connected",
|
|
"gif_auto_play",
|
|
"guild_folders",
|
|
"guild_positions",
|
|
"index",
|
|
"inline_attachment_media",
|
|
"inline_embed_media",
|
|
"locale",
|
|
"message_display_compact",
|
|
"native_phone_integration_enabled",
|
|
"render_embeds",
|
|
"render_reactions",
|
|
"restricted_guilds",
|
|
"show_current_game",
|
|
"status",
|
|
"stream_notifications_enabled",
|
|
"theme",
|
|
"timezone_offset",
|
|
"view_nsfw_guilds"
|
|
]
|
|
},
|
|
"CustomStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"emoji_id": {
|
|
"type": "string"
|
|
},
|
|
"emoji_name": {
|
|
"type": "string"
|
|
},
|
|
"expires_at": {
|
|
"type": "integer"
|
|
},
|
|
"text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"FriendSourceFlags": {
|
|
"type": "object",
|
|
"properties": {
|
|
"all": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"all"
|
|
]
|
|
},
|
|
"GuildFolder": {
|
|
"type": "object",
|
|
"properties": {
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"guild_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"color",
|
|
"guild_ids",
|
|
"id",
|
|
"name"
|
|
]
|
|
},
|
|
"SecurityKey": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"key_id": {
|
|
"type": "string"
|
|
},
|
|
"public_key": {
|
|
"type": "string"
|
|
},
|
|
"counter": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"counter",
|
|
"id",
|
|
"key_id",
|
|
"name",
|
|
"public_key",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Guild": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"afk_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"afk_timeout": {
|
|
"type": "integer"
|
|
},
|
|
"bans": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Ban"
|
|
}
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"default_message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"discovery_splash": {
|
|
"type": "string"
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer"
|
|
},
|
|
"features": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"primary_category_id": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"large": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"max_members": {
|
|
"type": "integer"
|
|
},
|
|
"max_presences": {
|
|
"type": "integer"
|
|
},
|
|
"max_video_channel_users": {
|
|
"type": "integer"
|
|
},
|
|
"member_count": {
|
|
"type": "integer"
|
|
},
|
|
"presence_count": {
|
|
"type": "integer"
|
|
},
|
|
"members": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Member"
|
|
}
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Channel"
|
|
}
|
|
},
|
|
"template_id": {
|
|
"type": "string"
|
|
},
|
|
"template": {
|
|
"$ref": "#/definitions/Template"
|
|
},
|
|
"emojis": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Emoji"
|
|
}
|
|
},
|
|
"stickers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"invites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Invite"
|
|
}
|
|
},
|
|
"voice_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/VoiceState"
|
|
}
|
|
},
|
|
"webhooks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Webhook"
|
|
}
|
|
},
|
|
"mfa_level": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"owner_id": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"preferred_locale": {
|
|
"type": "string"
|
|
},
|
|
"premium_subscription_count": {
|
|
"type": "integer"
|
|
},
|
|
"premium_tier": {
|
|
"type": "integer"
|
|
},
|
|
"public_updates_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"public_updates_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"rules_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"rules_channel": {
|
|
"type": "string"
|
|
},
|
|
"region": {
|
|
"type": "string"
|
|
},
|
|
"splash": {
|
|
"type": "string"
|
|
},
|
|
"system_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"system_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"system_channel_flags": {
|
|
"type": "integer"
|
|
},
|
|
"unavailable": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"verification_level": {
|
|
"type": "integer"
|
|
},
|
|
"welcome_screen": {
|
|
"$ref": "#/definitions/GuildWelcomeScreen",
|
|
"description": "DEPRECATED: Look at the new Guild onboarding screens."
|
|
},
|
|
"widget_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"widget_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"widget_enabled": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"nsfw_level": {
|
|
"type": "integer"
|
|
},
|
|
"nsfw": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"parent": {
|
|
"type": "string"
|
|
},
|
|
"permissions": {
|
|
"type": "integer"
|
|
},
|
|
"premium_progress_bar_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"channel_ordering": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bans",
|
|
"channel_ordering",
|
|
"channels",
|
|
"emojis",
|
|
"features",
|
|
"id",
|
|
"invites",
|
|
"members",
|
|
"name",
|
|
"nsfw",
|
|
"premium_progress_bar_enabled",
|
|
"public_updates_channel_id",
|
|
"roles",
|
|
"stickers",
|
|
"template",
|
|
"unavailable",
|
|
"voice_states",
|
|
"webhooks",
|
|
"welcome_screen",
|
|
"widget_enabled"
|
|
]
|
|
},
|
|
"Ban": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"executor_id": {
|
|
"type": "string"
|
|
},
|
|
"executor": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"ip": {
|
|
"type": "string"
|
|
},
|
|
"reason": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"executor",
|
|
"executor_id",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"ip",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Member": {
|
|
"type": "object",
|
|
"properties": {
|
|
"index": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"nick": {
|
|
"type": "string"
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"joined_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"premium_since": {
|
|
"type": "integer"
|
|
},
|
|
"deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"mute": {
|
|
"type": "boolean"
|
|
},
|
|
"pending": {
|
|
"type": "boolean"
|
|
},
|
|
"settings": {
|
|
"$ref": "#/definitions/UserGuildSettings"
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"joined_by": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"theme_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"communication_disabled_until": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"banner",
|
|
"bio",
|
|
"communication_disabled_until",
|
|
"deaf",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"index",
|
|
"joined_at",
|
|
"joined_by",
|
|
"mute",
|
|
"pending",
|
|
"roles",
|
|
"settings",
|
|
"user"
|
|
]
|
|
},
|
|
"Role": {
|
|
"type": "object",
|
|
"properties": {
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"hoist": {
|
|
"type": "boolean"
|
|
},
|
|
"managed": {
|
|
"type": "boolean"
|
|
},
|
|
"mentionable": {
|
|
"type": "boolean"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"permissions": {
|
|
"type": "string"
|
|
},
|
|
"position": {
|
|
"type": "integer"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"unicode_emoji": {
|
|
"type": "string"
|
|
},
|
|
"tags": {
|
|
"type": "object",
|
|
"properties": {
|
|
"bot_id": {
|
|
"type": "string"
|
|
},
|
|
"integration_id": {
|
|
"type": "string"
|
|
},
|
|
"premium_subscriber": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"colors": {
|
|
"$ref": "#/definitions/RoleColors"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"color",
|
|
"colors",
|
|
"flags",
|
|
"guild",
|
|
"guild_id",
|
|
"hoist",
|
|
"id",
|
|
"managed",
|
|
"mentionable",
|
|
"name",
|
|
"permissions",
|
|
"position"
|
|
]
|
|
},
|
|
"RoleColors": {
|
|
"type": "object",
|
|
"properties": {
|
|
"primary_color": {
|
|
"type": "integer"
|
|
},
|
|
"secondary_color": {
|
|
"type": "integer"
|
|
},
|
|
"tertiary_color": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"primary_color"
|
|
]
|
|
},
|
|
"UserGuildSettings": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_overrides": {
|
|
"anyOf": [
|
|
{
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"$ref": "#/definitions/ChannelOverride"
|
|
}
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mobile_push": {
|
|
"type": "boolean"
|
|
},
|
|
"mute_config": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress_everyone": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress_roles": {
|
|
"type": "boolean"
|
|
},
|
|
"version": {
|
|
"type": "integer"
|
|
},
|
|
"guild_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"mute_scheduled_events": {
|
|
"type": "boolean"
|
|
},
|
|
"hide_muted_channels": {
|
|
"type": "boolean"
|
|
},
|
|
"notify_highlights": {
|
|
"type": "integer",
|
|
"const": 0
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_overrides",
|
|
"flags",
|
|
"guild_id",
|
|
"hide_muted_channels",
|
|
"message_notifications",
|
|
"mobile_push",
|
|
"mute_config",
|
|
"mute_scheduled_events",
|
|
"muted",
|
|
"notify_highlights",
|
|
"suppress_everyone",
|
|
"suppress_roles",
|
|
"version"
|
|
]
|
|
},
|
|
"ChannelOverride": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_id",
|
|
"message_notifications",
|
|
"mute_config",
|
|
"muted"
|
|
]
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"Template": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"usage_count": {
|
|
"type": "integer"
|
|
},
|
|
"creator_id": {
|
|
"type": "string"
|
|
},
|
|
"creator": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"updated_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"source_guild_id": {
|
|
"type": "string"
|
|
},
|
|
"source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"serialized_source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"code",
|
|
"created_at",
|
|
"creator",
|
|
"creator_id",
|
|
"id",
|
|
"name",
|
|
"serialized_source_guild",
|
|
"source_guild",
|
|
"source_guild_id",
|
|
"updated_at"
|
|
]
|
|
},
|
|
"Emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"animated": {
|
|
"type": "boolean"
|
|
},
|
|
"available": {
|
|
"type": "boolean"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"managed": {
|
|
"type": "boolean"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"require_colons": {
|
|
"type": "boolean"
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"groups": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"available",
|
|
"groups",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"managed",
|
|
"name",
|
|
"require_colons",
|
|
"roles",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Sticker": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"available": {
|
|
"type": "boolean"
|
|
},
|
|
"tags": {
|
|
"type": "string"
|
|
},
|
|
"pack_id": {
|
|
"type": "string"
|
|
},
|
|
"pack": {
|
|
"$ref": "#/definitions/StickerPack"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/StickerType"
|
|
},
|
|
"format_type": {
|
|
"$ref": "#/definitions/StickerFormatType"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"format_type",
|
|
"id",
|
|
"name",
|
|
"pack",
|
|
"type"
|
|
]
|
|
},
|
|
"StickerPack": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"banner_asset_id": {
|
|
"type": "string"
|
|
},
|
|
"stickers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"cover_sticker_id": {
|
|
"type": "string"
|
|
},
|
|
"cover_sticker": {
|
|
"$ref": "#/definitions/Sticker"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"stickers"
|
|
]
|
|
},
|
|
"StickerType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"StickerFormatType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4
|
|
]
|
|
},
|
|
"Invite": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "string"
|
|
},
|
|
"temporary": {
|
|
"type": "boolean"
|
|
},
|
|
"uses": {
|
|
"type": "integer"
|
|
},
|
|
"max_uses": {
|
|
"type": "integer"
|
|
},
|
|
"max_age": {
|
|
"type": "integer"
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"expires_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"inviter_id": {
|
|
"type": "string"
|
|
},
|
|
"inviter": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"target_user_id": {
|
|
"type": "string"
|
|
},
|
|
"target_user": {
|
|
"type": "string"
|
|
},
|
|
"target_user_type": {
|
|
"type": "integer"
|
|
},
|
|
"vanity_url": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"code",
|
|
"created_at",
|
|
"flags",
|
|
"guild",
|
|
"guild_id",
|
|
"inviter",
|
|
"max_age",
|
|
"max_uses",
|
|
"target_user_id",
|
|
"temporary",
|
|
"uses"
|
|
]
|
|
},
|
|
"VoiceState": {
|
|
"type": "object",
|
|
"properties": {
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"member": {
|
|
"$ref": "#/definitions/Member"
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
},
|
|
"token": {
|
|
"type": "string"
|
|
},
|
|
"deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"mute": {
|
|
"type": "boolean"
|
|
},
|
|
"self_deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"self_mute": {
|
|
"type": "boolean"
|
|
},
|
|
"self_stream": {
|
|
"type": "boolean"
|
|
},
|
|
"self_video": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress": {
|
|
"type": "boolean"
|
|
},
|
|
"request_to_speak_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"deaf",
|
|
"guild_id",
|
|
"id",
|
|
"member",
|
|
"mute",
|
|
"self_deaf",
|
|
"self_mute",
|
|
"self_video",
|
|
"session_id",
|
|
"suppress",
|
|
"token",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Webhook": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/WebhookType"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"token": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"application": {
|
|
"$ref": "#/definitions/Application"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"source_guild_id": {
|
|
"type": "string"
|
|
},
|
|
"source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"source_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"source_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"application",
|
|
"application_id",
|
|
"avatar",
|
|
"channel",
|
|
"channel_id",
|
|
"id",
|
|
"name",
|
|
"source_channel",
|
|
"source_channel_id",
|
|
"type",
|
|
"url",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"WebhookType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3
|
|
]
|
|
},
|
|
"Application": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"summary": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"type": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true
|
|
},
|
|
"hook": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"bot_public": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"bot_require_code_grant": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"verify_key": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"redirect_uris": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"rpc_application_state": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"store_application_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"verification_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"interactions_endpoint_url": {
|
|
"type": "string"
|
|
},
|
|
"integration_public": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"integration_require_code_grant": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"discoverability_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"discovery_eligibility_flags": {
|
|
"type": "integer",
|
|
"default": 2240
|
|
},
|
|
"bot": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"tags": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"cover_image": {
|
|
"type": "string"
|
|
},
|
|
"install_params": {
|
|
"type": "object",
|
|
"properties": {
|
|
"scopes": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"permissions": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"permissions",
|
|
"scopes"
|
|
]
|
|
},
|
|
"terms_of_service_url": {
|
|
"type": "string"
|
|
},
|
|
"privacy_policy_url": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"custom_install_url": {
|
|
"type": "string"
|
|
},
|
|
"team": {
|
|
"$ref": "#/definitions/Team"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"description",
|
|
"discoverability_state",
|
|
"discovery_eligibility_flags",
|
|
"flags",
|
|
"hook",
|
|
"id",
|
|
"integration_public",
|
|
"integration_require_code_grant",
|
|
"name",
|
|
"owner",
|
|
"redirect_uris",
|
|
"rpc_application_state",
|
|
"store_application_state",
|
|
"summary",
|
|
"verification_state",
|
|
"verify_key"
|
|
]
|
|
},
|
|
"Team": {
|
|
"type": "object",
|
|
"properties": {
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"members": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/TeamMember"
|
|
}
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"owner_user_id": {
|
|
"type": "string"
|
|
},
|
|
"owner_user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"members",
|
|
"name",
|
|
"owner_user",
|
|
"owner_user_id"
|
|
]
|
|
},
|
|
"TeamMember": {
|
|
"type": "object",
|
|
"properties": {
|
|
"membership_state": {
|
|
"$ref": "#/definitions/TeamMemberState"
|
|
},
|
|
"permissions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"role": {
|
|
"$ref": "#/definitions/TeamMemberRole"
|
|
},
|
|
"team_id": {
|
|
"type": "string"
|
|
},
|
|
"team": {
|
|
"$ref": "#/definitions/Team"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"membership_state",
|
|
"permissions",
|
|
"role",
|
|
"team",
|
|
"team_id",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"TeamMemberState": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"TeamMemberRole": {
|
|
"type": "string",
|
|
"enum": [
|
|
"admin",
|
|
"developer",
|
|
"read_only"
|
|
]
|
|
},
|
|
"GuildWelcomeScreen": {
|
|
"type": "object",
|
|
"properties": {
|
|
"enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"welcome_channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"emoji_id": {
|
|
"type": "string"
|
|
},
|
|
"emoji_name": {
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_id",
|
|
"description"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"description",
|
|
"enabled",
|
|
"welcome_channels"
|
|
]
|
|
},
|
|
"ChannelPermissionOverwrite": {
|
|
"type": "object",
|
|
"properties": {
|
|
"allow": {
|
|
"type": "string"
|
|
},
|
|
"deny": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"allow",
|
|
"deny",
|
|
"id",
|
|
"type"
|
|
]
|
|
},
|
|
"ChannelPermissionOverwriteType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"ReadState": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"public_ack": {
|
|
"type": "string"
|
|
},
|
|
"notifications_cursor": {
|
|
"type": "string"
|
|
},
|
|
"last_pin_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"mention_count": {
|
|
"type": "integer"
|
|
},
|
|
"manual": {
|
|
"type": "boolean"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"id",
|
|
"last_message_id",
|
|
"manual",
|
|
"mention_count",
|
|
"notifications_cursor",
|
|
"public_ack",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Attachment": {
|
|
"type": "object",
|
|
"properties": {
|
|
"filename": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "integer"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
},
|
|
"content_type": {
|
|
"type": "string"
|
|
},
|
|
"message_id": {
|
|
"type": "string"
|
|
},
|
|
"message": {
|
|
"$ref": "#/definitions/Message"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"filename",
|
|
"id",
|
|
"message",
|
|
"message_id",
|
|
"proxy_url",
|
|
"size",
|
|
"url"
|
|
]
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"Reaction": {
|
|
"type": "object",
|
|
"properties": {
|
|
"count": {
|
|
"type": "integer"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"user_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"count",
|
|
"emoji",
|
|
"user_ids"
|
|
]
|
|
},
|
|
"PartialEmoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name"
|
|
]
|
|
},
|
|
"MessageType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
16,
|
|
19,
|
|
20,
|
|
41,
|
|
42,
|
|
43,
|
|
50,
|
|
63,
|
|
255
|
|
]
|
|
},
|
|
"InteractionType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5
|
|
]
|
|
},
|
|
"ApplicationCommandType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4
|
|
]
|
|
},
|
|
"ActionRowComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.ActionRow"
|
|
},
|
|
"components": {
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/ButtonComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/SelectMenuComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/StringSelectMenuComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/TextInputComponent"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"components",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.ActionRow": {
|
|
"type": "number",
|
|
"const": 1
|
|
},
|
|
"ButtonComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.Button"
|
|
},
|
|
"style": {
|
|
"$ref": "#/definitions/ButtonStyle"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"sku_id": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"style",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.Button": {
|
|
"type": "number",
|
|
"const": 2
|
|
},
|
|
"ButtonStyle": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6
|
|
]
|
|
},
|
|
"SelectMenuComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": [
|
|
3,
|
|
5,
|
|
6,
|
|
7,
|
|
8
|
|
],
|
|
"type": "number"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_types": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
},
|
|
"default_values": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuDefaultOption"
|
|
}
|
|
},
|
|
"min_values": {
|
|
"type": "integer"
|
|
},
|
|
"max_values": {
|
|
"type": "integer"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"type"
|
|
]
|
|
},
|
|
"SelectMenuDefaultOption": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"channel",
|
|
"role",
|
|
"user"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"type"
|
|
]
|
|
},
|
|
"StringSelectMenuComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.StringSelect"
|
|
},
|
|
"options": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuOption"
|
|
}
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_types": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
},
|
|
"default_values": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuDefaultOption"
|
|
}
|
|
},
|
|
"min_values": {
|
|
"type": "integer"
|
|
},
|
|
"max_values": {
|
|
"type": "integer"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"options",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.StringSelect": {
|
|
"type": "number",
|
|
"const": 3
|
|
},
|
|
"SelectMenuOption": {
|
|
"type": "object",
|
|
"properties": {
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"default": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"label",
|
|
"value"
|
|
]
|
|
},
|
|
"TextInputComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.TextInput"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"style": {
|
|
"$ref": "#/definitions/TextInputStyle"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"min_length": {
|
|
"type": "integer"
|
|
},
|
|
"max_length": {
|
|
"type": "integer"
|
|
},
|
|
"required": {
|
|
"type": "boolean"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"label",
|
|
"style",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.TextInput": {
|
|
"type": "number",
|
|
"const": 4
|
|
},
|
|
"TextInputStyle": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"Poll": {
|
|
"type": "object",
|
|
"properties": {
|
|
"question": {
|
|
"$ref": "#/definitions/PollMedia"
|
|
},
|
|
"answers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/PollAnswer"
|
|
}
|
|
},
|
|
"expiry": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"allow_multiselect": {
|
|
"type": "boolean"
|
|
},
|
|
"results": {
|
|
"$ref": "#/definitions/PollResult"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"allow_multiselect",
|
|
"answers",
|
|
"expiry",
|
|
"question"
|
|
]
|
|
},
|
|
"PollMedia": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"PollAnswer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"answer_id": {
|
|
"type": "string"
|
|
},
|
|
"poll_media": {
|
|
"$ref": "#/definitions/PollMedia"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"poll_media"
|
|
]
|
|
},
|
|
"PollResult": {
|
|
"type": "object",
|
|
"properties": {
|
|
"is_finalized": {
|
|
"type": "boolean"
|
|
},
|
|
"answer_counts": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/PollAnswerCount"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"answer_counts",
|
|
"is_finalized"
|
|
]
|
|
},
|
|
"PollAnswerCount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"count": {
|
|
"type": "integer"
|
|
},
|
|
"me_voted": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"count",
|
|
"id",
|
|
"me_voted"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"RefreshUrlsResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"refreshed_urls": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/RefreshedUrl"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"refreshed_urls"
|
|
],
|
|
"definitions": {
|
|
"RefreshedUrl": {
|
|
"type": "object",
|
|
"properties": {
|
|
"original": {
|
|
"type": "string"
|
|
},
|
|
"refreshed": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"original",
|
|
"refreshed"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"SettingsProtoResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"settings": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"settings"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"SettingsProtoUpdateResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"out_of_date": {
|
|
"type": "boolean"
|
|
},
|
|
"settings": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"settings"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"SettingsProtoJsonResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"settings": {
|
|
"$ref": "#/definitions/JsonValue"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"settings"
|
|
],
|
|
"definitions": {
|
|
"JsonValue": {
|
|
"description": "Represents any possible JSON value:\n- number\n- string\n- boolean\n- null\n- object (with any JSON value as property)\n- array (with any JSON value as element)",
|
|
"anyOf": [
|
|
{
|
|
"description": "Represents a JSON object.",
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"$ref": "#/definitions/JsonValue"
|
|
}
|
|
},
|
|
{
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"patternProperties": {
|
|
"^[0-9]+$": {
|
|
"$ref": "#/definitions/JsonValue"
|
|
}
|
|
},
|
|
"properties": {
|
|
"length": {
|
|
"type": "integer"
|
|
},
|
|
"__@unscopables@700": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"patternProperties": {
|
|
"^[0-9]+$": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"properties": {
|
|
"length": {
|
|
"type": "boolean"
|
|
},
|
|
"toString": {
|
|
"type": "boolean"
|
|
},
|
|
"toLocaleString": {
|
|
"type": "boolean"
|
|
},
|
|
"pop": {
|
|
"type": "boolean"
|
|
},
|
|
"push": {
|
|
"type": "boolean"
|
|
},
|
|
"concat": {
|
|
"type": "boolean"
|
|
},
|
|
"join": {
|
|
"type": "boolean"
|
|
},
|
|
"reverse": {
|
|
"type": "boolean"
|
|
},
|
|
"shift": {
|
|
"type": "boolean"
|
|
},
|
|
"slice": {
|
|
"type": "boolean"
|
|
},
|
|
"sort": {
|
|
"type": "boolean"
|
|
},
|
|
"splice": {
|
|
"type": "boolean"
|
|
},
|
|
"unshift": {
|
|
"type": "boolean"
|
|
},
|
|
"indexOf": {
|
|
"type": "boolean"
|
|
},
|
|
"lastIndexOf": {
|
|
"type": "boolean"
|
|
},
|
|
"every": {
|
|
"type": "boolean"
|
|
},
|
|
"some": {
|
|
"type": "boolean"
|
|
},
|
|
"forEach": {
|
|
"type": "boolean"
|
|
},
|
|
"map": {
|
|
"type": "boolean"
|
|
},
|
|
"filter": {
|
|
"type": "boolean"
|
|
},
|
|
"reduce": {
|
|
"type": "boolean"
|
|
},
|
|
"reduceRight": {
|
|
"type": "boolean"
|
|
},
|
|
"find": {
|
|
"type": "boolean"
|
|
},
|
|
"findIndex": {
|
|
"type": "boolean"
|
|
},
|
|
"fill": {
|
|
"type": "boolean"
|
|
},
|
|
"copyWithin": {
|
|
"type": "boolean"
|
|
},
|
|
"entries": {
|
|
"type": "boolean"
|
|
},
|
|
"keys": {
|
|
"type": "boolean"
|
|
},
|
|
"values": {
|
|
"type": "boolean"
|
|
},
|
|
"includes": {
|
|
"type": "boolean"
|
|
},
|
|
"flatMap": {
|
|
"type": "boolean"
|
|
},
|
|
"flat": {
|
|
"type": "boolean"
|
|
},
|
|
"at": {
|
|
"type": "boolean"
|
|
},
|
|
"findLast": {
|
|
"type": "boolean"
|
|
},
|
|
"findLastIndex": {
|
|
"type": "boolean"
|
|
},
|
|
"toReversed": {
|
|
"type": "boolean"
|
|
},
|
|
"toSorted": {
|
|
"type": "boolean"
|
|
},
|
|
"toSpliced": {
|
|
"type": "boolean"
|
|
},
|
|
"with": {
|
|
"type": "boolean"
|
|
},
|
|
"remove": {
|
|
"type": "boolean"
|
|
},
|
|
"__@iterator@698": {
|
|
"type": "boolean"
|
|
},
|
|
"__@unscopables@700": {
|
|
"type": "boolean"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"__@unscopables@700",
|
|
"length"
|
|
]
|
|
},
|
|
{
|
|
"type": [
|
|
"null",
|
|
"string",
|
|
"integer",
|
|
"boolean"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"SettingsProtoUpdateJsonResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"out_of_date": {
|
|
"type": "boolean"
|
|
},
|
|
"settings": {
|
|
"$ref": "#/definitions/JsonValue"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"settings"
|
|
],
|
|
"definitions": {
|
|
"JsonValue": {
|
|
"description": "Represents any possible JSON value:\n- number\n- string\n- boolean\n- null\n- object (with any JSON value as property)\n- array (with any JSON value as element)",
|
|
"anyOf": [
|
|
{
|
|
"description": "Represents a JSON object.",
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"$ref": "#/definitions/JsonValue"
|
|
}
|
|
},
|
|
{
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"patternProperties": {
|
|
"^[0-9]+$": {
|
|
"$ref": "#/definitions/JsonValue"
|
|
}
|
|
},
|
|
"properties": {
|
|
"length": {
|
|
"type": "integer"
|
|
},
|
|
"__@unscopables@700": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"patternProperties": {
|
|
"^[0-9]+$": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"properties": {
|
|
"length": {
|
|
"type": "boolean"
|
|
},
|
|
"toString": {
|
|
"type": "boolean"
|
|
},
|
|
"toLocaleString": {
|
|
"type": "boolean"
|
|
},
|
|
"pop": {
|
|
"type": "boolean"
|
|
},
|
|
"push": {
|
|
"type": "boolean"
|
|
},
|
|
"concat": {
|
|
"type": "boolean"
|
|
},
|
|
"join": {
|
|
"type": "boolean"
|
|
},
|
|
"reverse": {
|
|
"type": "boolean"
|
|
},
|
|
"shift": {
|
|
"type": "boolean"
|
|
},
|
|
"slice": {
|
|
"type": "boolean"
|
|
},
|
|
"sort": {
|
|
"type": "boolean"
|
|
},
|
|
"splice": {
|
|
"type": "boolean"
|
|
},
|
|
"unshift": {
|
|
"type": "boolean"
|
|
},
|
|
"indexOf": {
|
|
"type": "boolean"
|
|
},
|
|
"lastIndexOf": {
|
|
"type": "boolean"
|
|
},
|
|
"every": {
|
|
"type": "boolean"
|
|
},
|
|
"some": {
|
|
"type": "boolean"
|
|
},
|
|
"forEach": {
|
|
"type": "boolean"
|
|
},
|
|
"map": {
|
|
"type": "boolean"
|
|
},
|
|
"filter": {
|
|
"type": "boolean"
|
|
},
|
|
"reduce": {
|
|
"type": "boolean"
|
|
},
|
|
"reduceRight": {
|
|
"type": "boolean"
|
|
},
|
|
"find": {
|
|
"type": "boolean"
|
|
},
|
|
"findIndex": {
|
|
"type": "boolean"
|
|
},
|
|
"fill": {
|
|
"type": "boolean"
|
|
},
|
|
"copyWithin": {
|
|
"type": "boolean"
|
|
},
|
|
"entries": {
|
|
"type": "boolean"
|
|
},
|
|
"keys": {
|
|
"type": "boolean"
|
|
},
|
|
"values": {
|
|
"type": "boolean"
|
|
},
|
|
"includes": {
|
|
"type": "boolean"
|
|
},
|
|
"flatMap": {
|
|
"type": "boolean"
|
|
},
|
|
"flat": {
|
|
"type": "boolean"
|
|
},
|
|
"at": {
|
|
"type": "boolean"
|
|
},
|
|
"findLast": {
|
|
"type": "boolean"
|
|
},
|
|
"findLastIndex": {
|
|
"type": "boolean"
|
|
},
|
|
"toReversed": {
|
|
"type": "boolean"
|
|
},
|
|
"toSorted": {
|
|
"type": "boolean"
|
|
},
|
|
"toSpliced": {
|
|
"type": "boolean"
|
|
},
|
|
"with": {
|
|
"type": "boolean"
|
|
},
|
|
"remove": {
|
|
"type": "boolean"
|
|
},
|
|
"__@iterator@698": {
|
|
"type": "boolean"
|
|
},
|
|
"__@unscopables@700": {
|
|
"type": "boolean"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"__@unscopables@700",
|
|
"length"
|
|
]
|
|
},
|
|
{
|
|
"type": [
|
|
"null",
|
|
"string",
|
|
"integer",
|
|
"boolean"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"TeamListResponse": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Team"
|
|
},
|
|
"definitions": {
|
|
"Team": {
|
|
"type": "object",
|
|
"properties": {
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"members": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/TeamMember"
|
|
}
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"owner_user_id": {
|
|
"type": "string"
|
|
},
|
|
"owner_user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"members",
|
|
"name",
|
|
"owner_user",
|
|
"owner_user_id"
|
|
]
|
|
},
|
|
"TeamMember": {
|
|
"type": "object",
|
|
"properties": {
|
|
"membership_state": {
|
|
"$ref": "#/definitions/TeamMemberState"
|
|
},
|
|
"permissions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"role": {
|
|
"$ref": "#/definitions/TeamMemberRole"
|
|
},
|
|
"team_id": {
|
|
"type": "string"
|
|
},
|
|
"team": {
|
|
"$ref": "#/definitions/Team"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"membership_state",
|
|
"permissions",
|
|
"role",
|
|
"team",
|
|
"team_id",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"TeamMemberState": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"TeamMemberRole": {
|
|
"type": "string",
|
|
"enum": [
|
|
"admin",
|
|
"developer",
|
|
"read_only"
|
|
]
|
|
},
|
|
"User": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"theme_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"phone": {
|
|
"type": "string"
|
|
},
|
|
"desktop": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"mobile": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"premium": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_type": {
|
|
"type": "integer"
|
|
},
|
|
"bot": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"bio": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"system": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"nsfw_allowed": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"mfa_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"webauthn_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"totp_secret": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"totp_last_ticket": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"deleted": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"email": {
|
|
"type": "string"
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"public_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"purchased_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"premium_usage_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"rights": {
|
|
"type": "string"
|
|
},
|
|
"sessions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Session"
|
|
}
|
|
},
|
|
"relationships": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Relationship"
|
|
}
|
|
},
|
|
"connected_accounts": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ConnectedAccount"
|
|
}
|
|
},
|
|
"data": {
|
|
"type": "object",
|
|
"properties": {
|
|
"valid_tokens_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"hash": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"valid_tokens_since"
|
|
]
|
|
},
|
|
"fingerprints": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"settings": {
|
|
"$ref": "#/definitions/UserSettings"
|
|
},
|
|
"extended_settings": {
|
|
"type": "string",
|
|
"default": "{}"
|
|
},
|
|
"security_keys": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SecurityKey"
|
|
}
|
|
},
|
|
"badge_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"connected_accounts",
|
|
"created_at",
|
|
"data",
|
|
"deleted",
|
|
"desktop",
|
|
"disabled",
|
|
"discriminator",
|
|
"extended_settings",
|
|
"fingerprints",
|
|
"flags",
|
|
"id",
|
|
"mfa_enabled",
|
|
"mobile",
|
|
"nsfw_allowed",
|
|
"premium",
|
|
"premium_since",
|
|
"premium_type",
|
|
"premium_usage_flags",
|
|
"public_flags",
|
|
"purchased_flags",
|
|
"relationships",
|
|
"rights",
|
|
"security_keys",
|
|
"sessions",
|
|
"system",
|
|
"username",
|
|
"verified",
|
|
"webauthn_enabled"
|
|
]
|
|
},
|
|
"Session": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"client_info": {
|
|
"type": "object",
|
|
"properties": {
|
|
"client": {
|
|
"type": "string"
|
|
},
|
|
"os": {
|
|
"type": "string"
|
|
},
|
|
"version": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"client",
|
|
"os",
|
|
"version"
|
|
]
|
|
},
|
|
"client_status": {
|
|
"$ref": "#/definitions/ClientStatus"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"activities",
|
|
"client_info",
|
|
"client_status",
|
|
"id",
|
|
"session_id",
|
|
"status",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
]
|
|
},
|
|
"ClientStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"desktop": {
|
|
"type": "string"
|
|
},
|
|
"mobile": {
|
|
"type": "string"
|
|
},
|
|
"web": {
|
|
"type": "string"
|
|
},
|
|
"embedded": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Relationship": {
|
|
"type": "object",
|
|
"properties": {
|
|
"from_id": {
|
|
"type": "string"
|
|
},
|
|
"from": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"to_id": {
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"nickname": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/RelationshipType"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"from",
|
|
"from_id",
|
|
"id",
|
|
"to",
|
|
"to_id",
|
|
"type"
|
|
]
|
|
},
|
|
"RelationshipType": {
|
|
"type": "number",
|
|
"enum": [
|
|
4,
|
|
3,
|
|
2,
|
|
1
|
|
]
|
|
},
|
|
"ConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"external_id": {
|
|
"type": "string"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"friend_sync": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"revoked": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"show_activity": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"visibility": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"integrations": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"metadata_": {},
|
|
"metadata_visibility": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"two_way_link": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"token_data": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/ConnectedAccountTokenData"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"external_id",
|
|
"id",
|
|
"name",
|
|
"type",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"ConnectedAccountTokenData": {
|
|
"type": "object",
|
|
"properties": {
|
|
"access_token": {
|
|
"type": "string"
|
|
},
|
|
"token_type": {
|
|
"type": "string"
|
|
},
|
|
"scope": {
|
|
"type": "string"
|
|
},
|
|
"refresh_token": {
|
|
"type": "string"
|
|
},
|
|
"expires_in": {
|
|
"type": "integer"
|
|
},
|
|
"expires_at": {
|
|
"type": "integer"
|
|
},
|
|
"fetched_at": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"access_token",
|
|
"fetched_at"
|
|
]
|
|
},
|
|
"UserSettings": {
|
|
"type": "object",
|
|
"properties": {
|
|
"index": {
|
|
"type": "string"
|
|
},
|
|
"afk_timeout": {
|
|
"type": "integer",
|
|
"default": 3600
|
|
},
|
|
"allow_accessibility_detection": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"animate_emoji": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"animate_stickers": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"contact_sync_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"convert_emoticons": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"custom_status": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/CustomStatus"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"default_guilds_restricted": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"detect_platform_accounts": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"developer_mode": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"disable_games_tab": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"enable_tts_command": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"friend_discovery_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"friend_source_flags": {
|
|
"$ref": "#/definitions/FriendSourceFlags"
|
|
},
|
|
"gateway_connected": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"gif_auto_play": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"guild_folders": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/GuildFolder"
|
|
},
|
|
"default": []
|
|
},
|
|
"guild_positions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"inline_attachment_media": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"inline_embed_media": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"locale": {
|
|
"type": "string",
|
|
"default": "en-US"
|
|
},
|
|
"message_display_compact": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"native_phone_integration_enabled": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"render_embeds": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"render_reactions": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"restricted_guilds": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"show_current_game": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string",
|
|
"default": "online"
|
|
},
|
|
"stream_notifications_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"theme": {
|
|
"enum": [
|
|
"dark",
|
|
"light"
|
|
],
|
|
"type": "string",
|
|
"default": "dark"
|
|
},
|
|
"timezone_offset": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"view_nsfw_guilds": {
|
|
"type": "boolean",
|
|
"default": true
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk_timeout",
|
|
"allow_accessibility_detection",
|
|
"animate_emoji",
|
|
"animate_stickers",
|
|
"contact_sync_enabled",
|
|
"convert_emoticons",
|
|
"custom_status",
|
|
"default_guilds_restricted",
|
|
"detect_platform_accounts",
|
|
"developer_mode",
|
|
"disable_games_tab",
|
|
"enable_tts_command",
|
|
"explicit_content_filter",
|
|
"friend_discovery_flags",
|
|
"friend_source_flags",
|
|
"gateway_connected",
|
|
"gif_auto_play",
|
|
"guild_folders",
|
|
"guild_positions",
|
|
"index",
|
|
"inline_attachment_media",
|
|
"inline_embed_media",
|
|
"locale",
|
|
"message_display_compact",
|
|
"native_phone_integration_enabled",
|
|
"render_embeds",
|
|
"render_reactions",
|
|
"restricted_guilds",
|
|
"show_current_game",
|
|
"status",
|
|
"stream_notifications_enabled",
|
|
"theme",
|
|
"timezone_offset",
|
|
"view_nsfw_guilds"
|
|
]
|
|
},
|
|
"CustomStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"emoji_id": {
|
|
"type": "string"
|
|
},
|
|
"emoji_name": {
|
|
"type": "string"
|
|
},
|
|
"expires_at": {
|
|
"type": "integer"
|
|
},
|
|
"text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"FriendSourceFlags": {
|
|
"type": "object",
|
|
"properties": {
|
|
"all": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"all"
|
|
]
|
|
},
|
|
"GuildFolder": {
|
|
"type": "object",
|
|
"properties": {
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"guild_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"color",
|
|
"guild_ids",
|
|
"id",
|
|
"name"
|
|
]
|
|
},
|
|
"SecurityKey": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"key_id": {
|
|
"type": "string"
|
|
},
|
|
"public_key": {
|
|
"type": "string"
|
|
},
|
|
"counter": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"counter",
|
|
"id",
|
|
"key_id",
|
|
"name",
|
|
"public_key",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"TenorGifResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"src": {
|
|
"type": "string"
|
|
},
|
|
"gif_src": {
|
|
"type": "string"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"preview": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"gif_src",
|
|
"height",
|
|
"id",
|
|
"preview",
|
|
"src",
|
|
"title",
|
|
"url",
|
|
"width"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"TenorTrendingResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"categories": {
|
|
"type": "object",
|
|
"properties": {
|
|
"tags": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"searchterm": {
|
|
"type": "string"
|
|
},
|
|
"path": {
|
|
"type": "string"
|
|
},
|
|
"image": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"image",
|
|
"name",
|
|
"path",
|
|
"searchterm"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"tags"
|
|
]
|
|
},
|
|
"gifs": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/TenorGifResponse"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"categories",
|
|
"gifs"
|
|
],
|
|
"definitions": {
|
|
"TenorGifResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"src": {
|
|
"type": "string"
|
|
},
|
|
"gif_src": {
|
|
"type": "string"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"preview": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"gif_src",
|
|
"height",
|
|
"id",
|
|
"preview",
|
|
"src",
|
|
"title",
|
|
"url",
|
|
"width"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"TenorGifsResponse": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/TenorGifResponse"
|
|
},
|
|
"definitions": {
|
|
"TenorGifResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"src": {
|
|
"type": "string"
|
|
},
|
|
"gif_src": {
|
|
"type": "string"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"preview": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"gif_src",
|
|
"height",
|
|
"id",
|
|
"preview",
|
|
"src",
|
|
"title",
|
|
"url",
|
|
"width"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"TokenResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"token": {
|
|
"type": "string"
|
|
},
|
|
"user_settings": {
|
|
"$ref": "#/definitions/UserSettings"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"token",
|
|
"user_id",
|
|
"user_settings"
|
|
],
|
|
"definitions": {
|
|
"UserSettings": {
|
|
"type": "object",
|
|
"properties": {
|
|
"index": {
|
|
"type": "string"
|
|
},
|
|
"afk_timeout": {
|
|
"type": "integer",
|
|
"default": 3600
|
|
},
|
|
"allow_accessibility_detection": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"animate_emoji": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"animate_stickers": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"contact_sync_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"convert_emoticons": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"custom_status": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/CustomStatus"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"default_guilds_restricted": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"detect_platform_accounts": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"developer_mode": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"disable_games_tab": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"enable_tts_command": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"friend_discovery_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"friend_source_flags": {
|
|
"$ref": "#/definitions/FriendSourceFlags"
|
|
},
|
|
"gateway_connected": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"gif_auto_play": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"guild_folders": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/GuildFolder"
|
|
},
|
|
"default": []
|
|
},
|
|
"guild_positions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"inline_attachment_media": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"inline_embed_media": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"locale": {
|
|
"type": "string",
|
|
"default": "en-US"
|
|
},
|
|
"message_display_compact": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"native_phone_integration_enabled": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"render_embeds": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"render_reactions": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"restricted_guilds": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"show_current_game": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string",
|
|
"default": "online"
|
|
},
|
|
"stream_notifications_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"theme": {
|
|
"enum": [
|
|
"dark",
|
|
"light"
|
|
],
|
|
"type": "string",
|
|
"default": "dark"
|
|
},
|
|
"timezone_offset": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"view_nsfw_guilds": {
|
|
"type": "boolean",
|
|
"default": true
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk_timeout",
|
|
"allow_accessibility_detection",
|
|
"animate_emoji",
|
|
"animate_stickers",
|
|
"contact_sync_enabled",
|
|
"convert_emoticons",
|
|
"custom_status",
|
|
"default_guilds_restricted",
|
|
"detect_platform_accounts",
|
|
"developer_mode",
|
|
"disable_games_tab",
|
|
"enable_tts_command",
|
|
"explicit_content_filter",
|
|
"friend_discovery_flags",
|
|
"friend_source_flags",
|
|
"gateway_connected",
|
|
"gif_auto_play",
|
|
"guild_folders",
|
|
"guild_positions",
|
|
"index",
|
|
"inline_attachment_media",
|
|
"inline_embed_media",
|
|
"locale",
|
|
"message_display_compact",
|
|
"native_phone_integration_enabled",
|
|
"render_embeds",
|
|
"render_reactions",
|
|
"restricted_guilds",
|
|
"show_current_game",
|
|
"status",
|
|
"stream_notifications_enabled",
|
|
"theme",
|
|
"timezone_offset",
|
|
"view_nsfw_guilds"
|
|
]
|
|
},
|
|
"CustomStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"emoji_id": {
|
|
"type": "string"
|
|
},
|
|
"emoji_name": {
|
|
"type": "string"
|
|
},
|
|
"expires_at": {
|
|
"type": "integer"
|
|
},
|
|
"text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"FriendSourceFlags": {
|
|
"type": "object",
|
|
"properties": {
|
|
"all": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"all"
|
|
]
|
|
},
|
|
"GuildFolder": {
|
|
"type": "object",
|
|
"properties": {
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"guild_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"color",
|
|
"guild_ids",
|
|
"id",
|
|
"name"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"TokenOnlyResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"token": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"token"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"TokenWithBackupCodesResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"token": {
|
|
"type": "string"
|
|
},
|
|
"backup_codes": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/BackupCode"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"backup_codes",
|
|
"token"
|
|
],
|
|
"definitions": {
|
|
"BackupCode": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"code": {
|
|
"type": "string"
|
|
},
|
|
"consumed": {
|
|
"type": "boolean"
|
|
},
|
|
"expired": {
|
|
"type": "boolean"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"code",
|
|
"consumed",
|
|
"expired",
|
|
"id",
|
|
"user"
|
|
]
|
|
},
|
|
"User": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"theme_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"phone": {
|
|
"type": "string"
|
|
},
|
|
"desktop": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"mobile": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"premium": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_type": {
|
|
"type": "integer"
|
|
},
|
|
"bot": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"bio": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"system": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"nsfw_allowed": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"mfa_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"webauthn_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"totp_secret": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"totp_last_ticket": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"deleted": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"email": {
|
|
"type": "string"
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"public_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"purchased_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"premium_usage_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"rights": {
|
|
"type": "string"
|
|
},
|
|
"sessions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Session"
|
|
}
|
|
},
|
|
"relationships": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Relationship"
|
|
}
|
|
},
|
|
"connected_accounts": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ConnectedAccount"
|
|
}
|
|
},
|
|
"data": {
|
|
"type": "object",
|
|
"properties": {
|
|
"valid_tokens_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"hash": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"valid_tokens_since"
|
|
]
|
|
},
|
|
"fingerprints": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"settings": {
|
|
"$ref": "#/definitions/UserSettings"
|
|
},
|
|
"extended_settings": {
|
|
"type": "string",
|
|
"default": "{}"
|
|
},
|
|
"security_keys": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SecurityKey"
|
|
}
|
|
},
|
|
"badge_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"connected_accounts",
|
|
"created_at",
|
|
"data",
|
|
"deleted",
|
|
"desktop",
|
|
"disabled",
|
|
"discriminator",
|
|
"extended_settings",
|
|
"fingerprints",
|
|
"flags",
|
|
"id",
|
|
"mfa_enabled",
|
|
"mobile",
|
|
"nsfw_allowed",
|
|
"premium",
|
|
"premium_since",
|
|
"premium_type",
|
|
"premium_usage_flags",
|
|
"public_flags",
|
|
"purchased_flags",
|
|
"relationships",
|
|
"rights",
|
|
"security_keys",
|
|
"sessions",
|
|
"system",
|
|
"username",
|
|
"verified",
|
|
"webauthn_enabled"
|
|
]
|
|
},
|
|
"Session": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"client_info": {
|
|
"type": "object",
|
|
"properties": {
|
|
"client": {
|
|
"type": "string"
|
|
},
|
|
"os": {
|
|
"type": "string"
|
|
},
|
|
"version": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"client",
|
|
"os",
|
|
"version"
|
|
]
|
|
},
|
|
"client_status": {
|
|
"$ref": "#/definitions/ClientStatus"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"activities",
|
|
"client_info",
|
|
"client_status",
|
|
"id",
|
|
"session_id",
|
|
"status",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
]
|
|
},
|
|
"ClientStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"desktop": {
|
|
"type": "string"
|
|
},
|
|
"mobile": {
|
|
"type": "string"
|
|
},
|
|
"web": {
|
|
"type": "string"
|
|
},
|
|
"embedded": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Relationship": {
|
|
"type": "object",
|
|
"properties": {
|
|
"from_id": {
|
|
"type": "string"
|
|
},
|
|
"from": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"to_id": {
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"nickname": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/RelationshipType"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"from",
|
|
"from_id",
|
|
"id",
|
|
"to",
|
|
"to_id",
|
|
"type"
|
|
]
|
|
},
|
|
"RelationshipType": {
|
|
"type": "number",
|
|
"enum": [
|
|
4,
|
|
3,
|
|
2,
|
|
1
|
|
]
|
|
},
|
|
"ConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"external_id": {
|
|
"type": "string"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"friend_sync": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"revoked": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"show_activity": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"visibility": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"integrations": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"metadata_": {},
|
|
"metadata_visibility": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"two_way_link": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"token_data": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/ConnectedAccountTokenData"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"external_id",
|
|
"id",
|
|
"name",
|
|
"type",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"ConnectedAccountTokenData": {
|
|
"type": "object",
|
|
"properties": {
|
|
"access_token": {
|
|
"type": "string"
|
|
},
|
|
"token_type": {
|
|
"type": "string"
|
|
},
|
|
"scope": {
|
|
"type": "string"
|
|
},
|
|
"refresh_token": {
|
|
"type": "string"
|
|
},
|
|
"expires_in": {
|
|
"type": "integer"
|
|
},
|
|
"expires_at": {
|
|
"type": "integer"
|
|
},
|
|
"fetched_at": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"access_token",
|
|
"fetched_at"
|
|
]
|
|
},
|
|
"UserSettings": {
|
|
"type": "object",
|
|
"properties": {
|
|
"index": {
|
|
"type": "string"
|
|
},
|
|
"afk_timeout": {
|
|
"type": "integer",
|
|
"default": 3600
|
|
},
|
|
"allow_accessibility_detection": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"animate_emoji": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"animate_stickers": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"contact_sync_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"convert_emoticons": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"custom_status": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/CustomStatus"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"default_guilds_restricted": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"detect_platform_accounts": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"developer_mode": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"disable_games_tab": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"enable_tts_command": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"friend_discovery_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"friend_source_flags": {
|
|
"$ref": "#/definitions/FriendSourceFlags"
|
|
},
|
|
"gateway_connected": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"gif_auto_play": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"guild_folders": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/GuildFolder"
|
|
},
|
|
"default": []
|
|
},
|
|
"guild_positions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"inline_attachment_media": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"inline_embed_media": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"locale": {
|
|
"type": "string",
|
|
"default": "en-US"
|
|
},
|
|
"message_display_compact": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"native_phone_integration_enabled": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"render_embeds": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"render_reactions": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"restricted_guilds": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"show_current_game": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string",
|
|
"default": "online"
|
|
},
|
|
"stream_notifications_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"theme": {
|
|
"enum": [
|
|
"dark",
|
|
"light"
|
|
],
|
|
"type": "string",
|
|
"default": "dark"
|
|
},
|
|
"timezone_offset": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"view_nsfw_guilds": {
|
|
"type": "boolean",
|
|
"default": true
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk_timeout",
|
|
"allow_accessibility_detection",
|
|
"animate_emoji",
|
|
"animate_stickers",
|
|
"contact_sync_enabled",
|
|
"convert_emoticons",
|
|
"custom_status",
|
|
"default_guilds_restricted",
|
|
"detect_platform_accounts",
|
|
"developer_mode",
|
|
"disable_games_tab",
|
|
"enable_tts_command",
|
|
"explicit_content_filter",
|
|
"friend_discovery_flags",
|
|
"friend_source_flags",
|
|
"gateway_connected",
|
|
"gif_auto_play",
|
|
"guild_folders",
|
|
"guild_positions",
|
|
"index",
|
|
"inline_attachment_media",
|
|
"inline_embed_media",
|
|
"locale",
|
|
"message_display_compact",
|
|
"native_phone_integration_enabled",
|
|
"render_embeds",
|
|
"render_reactions",
|
|
"restricted_guilds",
|
|
"show_current_game",
|
|
"status",
|
|
"stream_notifications_enabled",
|
|
"theme",
|
|
"timezone_offset",
|
|
"view_nsfw_guilds"
|
|
]
|
|
},
|
|
"CustomStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"emoji_id": {
|
|
"type": "string"
|
|
},
|
|
"emoji_name": {
|
|
"type": "string"
|
|
},
|
|
"expires_at": {
|
|
"type": "integer"
|
|
},
|
|
"text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"FriendSourceFlags": {
|
|
"type": "object",
|
|
"properties": {
|
|
"all": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"all"
|
|
]
|
|
},
|
|
"GuildFolder": {
|
|
"type": "object",
|
|
"properties": {
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"guild_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"color",
|
|
"guild_ids",
|
|
"id",
|
|
"name"
|
|
]
|
|
},
|
|
"SecurityKey": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"key_id": {
|
|
"type": "string"
|
|
},
|
|
"public_key": {
|
|
"type": "string"
|
|
},
|
|
"counter": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"counter",
|
|
"id",
|
|
"key_id",
|
|
"name",
|
|
"public_key",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"APIGuild": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"region": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"parent": {
|
|
"type": "string"
|
|
},
|
|
"owner_id": {
|
|
"type": "string"
|
|
},
|
|
"nsfw": {
|
|
"type": "boolean"
|
|
},
|
|
"invites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Invite"
|
|
}
|
|
},
|
|
"voice_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/VoiceState"
|
|
}
|
|
},
|
|
"webhooks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Webhook"
|
|
}
|
|
},
|
|
"_do_validate": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Channel"
|
|
}
|
|
},
|
|
"system_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"rules_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"splash": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"features": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"verification_level": {
|
|
"type": "integer"
|
|
},
|
|
"default_message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"system_channel_flags": {
|
|
"type": "integer"
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer"
|
|
},
|
|
"public_updates_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"afk_timeout": {
|
|
"type": "integer"
|
|
},
|
|
"afk_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"preferred_locale": {
|
|
"type": "string"
|
|
},
|
|
"premium_progress_bar_enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"discovery_splash": {
|
|
"type": "string"
|
|
},
|
|
"bans": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Ban"
|
|
}
|
|
},
|
|
"primary_category_id": {
|
|
"type": "string"
|
|
},
|
|
"large": {
|
|
"type": "boolean"
|
|
},
|
|
"max_members": {
|
|
"type": "integer"
|
|
},
|
|
"max_presences": {
|
|
"type": "integer"
|
|
},
|
|
"max_video_channel_users": {
|
|
"type": "integer"
|
|
},
|
|
"member_count": {
|
|
"type": "integer"
|
|
},
|
|
"presence_count": {
|
|
"type": "integer"
|
|
},
|
|
"members": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Member"
|
|
}
|
|
},
|
|
"template_id": {
|
|
"type": "string"
|
|
},
|
|
"emojis": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Emoji"
|
|
}
|
|
},
|
|
"stickers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"mfa_level": {
|
|
"type": "integer"
|
|
},
|
|
"premium_subscription_count": {
|
|
"type": "integer"
|
|
},
|
|
"premium_tier": {
|
|
"type": "integer"
|
|
},
|
|
"unavailable": {
|
|
"type": "boolean"
|
|
},
|
|
"welcome_screen": {
|
|
"$ref": "#/definitions/GuildWelcomeScreen",
|
|
"description": "DEPRECATED: Look at the new Guild onboarding screens."
|
|
},
|
|
"widget_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"widget_enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"nsfw_level": {
|
|
"type": "integer"
|
|
},
|
|
"permissions": {
|
|
"type": "integer"
|
|
},
|
|
"channel_ordering": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"_do_validate",
|
|
"assign",
|
|
"bans",
|
|
"channel_ordering",
|
|
"channels",
|
|
"emojis",
|
|
"features",
|
|
"hasId",
|
|
"id",
|
|
"invites",
|
|
"members",
|
|
"name",
|
|
"nsfw",
|
|
"premium_progress_bar_enabled",
|
|
"public_updates_channel_id",
|
|
"recover",
|
|
"reload",
|
|
"remove",
|
|
"roles",
|
|
"save",
|
|
"softRemove",
|
|
"stickers",
|
|
"toJSON",
|
|
"unavailable",
|
|
"voice_states",
|
|
"webhooks",
|
|
"welcome_screen",
|
|
"widget_enabled"
|
|
],
|
|
"definitions": {
|
|
"Invite": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "string"
|
|
},
|
|
"temporary": {
|
|
"type": "boolean"
|
|
},
|
|
"uses": {
|
|
"type": "integer"
|
|
},
|
|
"max_uses": {
|
|
"type": "integer"
|
|
},
|
|
"max_age": {
|
|
"type": "integer"
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"expires_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"inviter_id": {
|
|
"type": "string"
|
|
},
|
|
"inviter": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"target_user_id": {
|
|
"type": "string"
|
|
},
|
|
"target_user": {
|
|
"type": "string"
|
|
},
|
|
"target_user_type": {
|
|
"type": "integer"
|
|
},
|
|
"vanity_url": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"code",
|
|
"created_at",
|
|
"flags",
|
|
"guild",
|
|
"guild_id",
|
|
"inviter",
|
|
"max_age",
|
|
"max_uses",
|
|
"target_user_id",
|
|
"temporary",
|
|
"uses"
|
|
]
|
|
},
|
|
"Guild": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"afk_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"afk_timeout": {
|
|
"type": "integer"
|
|
},
|
|
"bans": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Ban"
|
|
}
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"default_message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"discovery_splash": {
|
|
"type": "string"
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer"
|
|
},
|
|
"features": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"primary_category_id": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"large": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"max_members": {
|
|
"type": "integer"
|
|
},
|
|
"max_presences": {
|
|
"type": "integer"
|
|
},
|
|
"max_video_channel_users": {
|
|
"type": "integer"
|
|
},
|
|
"member_count": {
|
|
"type": "integer"
|
|
},
|
|
"presence_count": {
|
|
"type": "integer"
|
|
},
|
|
"members": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Member"
|
|
}
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Channel"
|
|
}
|
|
},
|
|
"template_id": {
|
|
"type": "string"
|
|
},
|
|
"template": {
|
|
"$ref": "#/definitions/Template"
|
|
},
|
|
"emojis": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Emoji"
|
|
}
|
|
},
|
|
"stickers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"invites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Invite"
|
|
}
|
|
},
|
|
"voice_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/VoiceState"
|
|
}
|
|
},
|
|
"webhooks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Webhook"
|
|
}
|
|
},
|
|
"mfa_level": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"owner_id": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"preferred_locale": {
|
|
"type": "string"
|
|
},
|
|
"premium_subscription_count": {
|
|
"type": "integer"
|
|
},
|
|
"premium_tier": {
|
|
"type": "integer"
|
|
},
|
|
"public_updates_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"public_updates_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"rules_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"rules_channel": {
|
|
"type": "string"
|
|
},
|
|
"region": {
|
|
"type": "string"
|
|
},
|
|
"splash": {
|
|
"type": "string"
|
|
},
|
|
"system_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"system_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"system_channel_flags": {
|
|
"type": "integer"
|
|
},
|
|
"unavailable": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"verification_level": {
|
|
"type": "integer"
|
|
},
|
|
"welcome_screen": {
|
|
"$ref": "#/definitions/GuildWelcomeScreen",
|
|
"description": "DEPRECATED: Look at the new Guild onboarding screens."
|
|
},
|
|
"widget_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"widget_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"widget_enabled": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"nsfw_level": {
|
|
"type": "integer"
|
|
},
|
|
"nsfw": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"parent": {
|
|
"type": "string"
|
|
},
|
|
"permissions": {
|
|
"type": "integer"
|
|
},
|
|
"premium_progress_bar_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"channel_ordering": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bans",
|
|
"channel_ordering",
|
|
"channels",
|
|
"emojis",
|
|
"features",
|
|
"id",
|
|
"invites",
|
|
"members",
|
|
"name",
|
|
"nsfw",
|
|
"premium_progress_bar_enabled",
|
|
"public_updates_channel_id",
|
|
"roles",
|
|
"stickers",
|
|
"template",
|
|
"unavailable",
|
|
"voice_states",
|
|
"webhooks",
|
|
"welcome_screen",
|
|
"widget_enabled"
|
|
]
|
|
},
|
|
"Channel": {
|
|
"type": "object",
|
|
"properties": {
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ChannelType"
|
|
},
|
|
"recipients": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Recipient"
|
|
}
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"parent_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"parent": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"owner_id": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"last_pin_timestamp": {
|
|
"type": "integer"
|
|
},
|
|
"default_auto_archive_duration": {
|
|
"type": "integer"
|
|
},
|
|
"permission_overwrites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwrite"
|
|
}
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
},
|
|
"bitrate": {
|
|
"type": "integer"
|
|
},
|
|
"user_limit": {
|
|
"type": "integer"
|
|
},
|
|
"nsfw": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"topic": {
|
|
"type": "string"
|
|
},
|
|
"invites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Invite"
|
|
}
|
|
},
|
|
"retention_policy_id": {
|
|
"type": "string"
|
|
},
|
|
"messages": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Message"
|
|
}
|
|
},
|
|
"voice_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/VoiceState"
|
|
}
|
|
},
|
|
"read_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ReadState"
|
|
}
|
|
},
|
|
"webhooks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Webhook"
|
|
}
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"position": {
|
|
"description": "Must be calculated Channel.calculatePosition",
|
|
"type": "integer"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"created_at",
|
|
"flags",
|
|
"id",
|
|
"nsfw",
|
|
"owner",
|
|
"parent_id",
|
|
"position",
|
|
"type"
|
|
]
|
|
},
|
|
"ChannelType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
33,
|
|
34,
|
|
35,
|
|
64,
|
|
255
|
|
]
|
|
},
|
|
"Recipient": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"closed": {
|
|
"type": "boolean"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"closed",
|
|
"id",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"User": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"theme_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"phone": {
|
|
"type": "string"
|
|
},
|
|
"desktop": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"mobile": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"premium": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_type": {
|
|
"type": "integer"
|
|
},
|
|
"bot": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"bio": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"system": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"nsfw_allowed": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"mfa_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"webauthn_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"totp_secret": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"totp_last_ticket": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"deleted": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"email": {
|
|
"type": "string"
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"public_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"purchased_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"premium_usage_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"rights": {
|
|
"type": "string"
|
|
},
|
|
"sessions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Session"
|
|
}
|
|
},
|
|
"relationships": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Relationship"
|
|
}
|
|
},
|
|
"connected_accounts": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ConnectedAccount"
|
|
}
|
|
},
|
|
"data": {
|
|
"type": "object",
|
|
"properties": {
|
|
"valid_tokens_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"hash": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"valid_tokens_since"
|
|
]
|
|
},
|
|
"fingerprints": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"settings": {
|
|
"$ref": "#/definitions/UserSettings"
|
|
},
|
|
"extended_settings": {
|
|
"type": "string",
|
|
"default": "{}"
|
|
},
|
|
"security_keys": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SecurityKey"
|
|
}
|
|
},
|
|
"badge_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"connected_accounts",
|
|
"created_at",
|
|
"data",
|
|
"deleted",
|
|
"desktop",
|
|
"disabled",
|
|
"discriminator",
|
|
"extended_settings",
|
|
"fingerprints",
|
|
"flags",
|
|
"id",
|
|
"mfa_enabled",
|
|
"mobile",
|
|
"nsfw_allowed",
|
|
"premium",
|
|
"premium_since",
|
|
"premium_type",
|
|
"premium_usage_flags",
|
|
"public_flags",
|
|
"purchased_flags",
|
|
"relationships",
|
|
"rights",
|
|
"security_keys",
|
|
"sessions",
|
|
"system",
|
|
"username",
|
|
"verified",
|
|
"webauthn_enabled"
|
|
]
|
|
},
|
|
"Session": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"client_info": {
|
|
"type": "object",
|
|
"properties": {
|
|
"client": {
|
|
"type": "string"
|
|
},
|
|
"os": {
|
|
"type": "string"
|
|
},
|
|
"version": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"client",
|
|
"os",
|
|
"version"
|
|
]
|
|
},
|
|
"client_status": {
|
|
"$ref": "#/definitions/ClientStatus"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"activities",
|
|
"client_info",
|
|
"client_status",
|
|
"id",
|
|
"session_id",
|
|
"status",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
]
|
|
},
|
|
"ClientStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"desktop": {
|
|
"type": "string"
|
|
},
|
|
"mobile": {
|
|
"type": "string"
|
|
},
|
|
"web": {
|
|
"type": "string"
|
|
},
|
|
"embedded": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Relationship": {
|
|
"type": "object",
|
|
"properties": {
|
|
"from_id": {
|
|
"type": "string"
|
|
},
|
|
"from": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"to_id": {
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"nickname": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/RelationshipType"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"from",
|
|
"from_id",
|
|
"id",
|
|
"to",
|
|
"to_id",
|
|
"type"
|
|
]
|
|
},
|
|
"RelationshipType": {
|
|
"type": "number",
|
|
"enum": [
|
|
4,
|
|
3,
|
|
2,
|
|
1
|
|
]
|
|
},
|
|
"ConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"external_id": {
|
|
"type": "string"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"friend_sync": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"revoked": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"show_activity": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"visibility": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"integrations": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"metadata_": {},
|
|
"metadata_visibility": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"two_way_link": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"token_data": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/ConnectedAccountTokenData"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"external_id",
|
|
"id",
|
|
"name",
|
|
"type",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"ConnectedAccountTokenData": {
|
|
"type": "object",
|
|
"properties": {
|
|
"access_token": {
|
|
"type": "string"
|
|
},
|
|
"token_type": {
|
|
"type": "string"
|
|
},
|
|
"scope": {
|
|
"type": "string"
|
|
},
|
|
"refresh_token": {
|
|
"type": "string"
|
|
},
|
|
"expires_in": {
|
|
"type": "integer"
|
|
},
|
|
"expires_at": {
|
|
"type": "integer"
|
|
},
|
|
"fetched_at": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"access_token",
|
|
"fetched_at"
|
|
]
|
|
},
|
|
"UserSettings": {
|
|
"type": "object",
|
|
"properties": {
|
|
"index": {
|
|
"type": "string"
|
|
},
|
|
"afk_timeout": {
|
|
"type": "integer",
|
|
"default": 3600
|
|
},
|
|
"allow_accessibility_detection": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"animate_emoji": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"animate_stickers": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"contact_sync_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"convert_emoticons": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"custom_status": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/CustomStatus"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"default_guilds_restricted": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"detect_platform_accounts": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"developer_mode": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"disable_games_tab": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"enable_tts_command": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"friend_discovery_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"friend_source_flags": {
|
|
"$ref": "#/definitions/FriendSourceFlags"
|
|
},
|
|
"gateway_connected": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"gif_auto_play": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"guild_folders": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/GuildFolder"
|
|
},
|
|
"default": []
|
|
},
|
|
"guild_positions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"inline_attachment_media": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"inline_embed_media": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"locale": {
|
|
"type": "string",
|
|
"default": "en-US"
|
|
},
|
|
"message_display_compact": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"native_phone_integration_enabled": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"render_embeds": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"render_reactions": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"restricted_guilds": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"show_current_game": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string",
|
|
"default": "online"
|
|
},
|
|
"stream_notifications_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"theme": {
|
|
"enum": [
|
|
"dark",
|
|
"light"
|
|
],
|
|
"type": "string",
|
|
"default": "dark"
|
|
},
|
|
"timezone_offset": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"view_nsfw_guilds": {
|
|
"type": "boolean",
|
|
"default": true
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk_timeout",
|
|
"allow_accessibility_detection",
|
|
"animate_emoji",
|
|
"animate_stickers",
|
|
"contact_sync_enabled",
|
|
"convert_emoticons",
|
|
"custom_status",
|
|
"default_guilds_restricted",
|
|
"detect_platform_accounts",
|
|
"developer_mode",
|
|
"disable_games_tab",
|
|
"enable_tts_command",
|
|
"explicit_content_filter",
|
|
"friend_discovery_flags",
|
|
"friend_source_flags",
|
|
"gateway_connected",
|
|
"gif_auto_play",
|
|
"guild_folders",
|
|
"guild_positions",
|
|
"index",
|
|
"inline_attachment_media",
|
|
"inline_embed_media",
|
|
"locale",
|
|
"message_display_compact",
|
|
"native_phone_integration_enabled",
|
|
"render_embeds",
|
|
"render_reactions",
|
|
"restricted_guilds",
|
|
"show_current_game",
|
|
"status",
|
|
"stream_notifications_enabled",
|
|
"theme",
|
|
"timezone_offset",
|
|
"view_nsfw_guilds"
|
|
]
|
|
},
|
|
"CustomStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"emoji_id": {
|
|
"type": "string"
|
|
},
|
|
"emoji_name": {
|
|
"type": "string"
|
|
},
|
|
"expires_at": {
|
|
"type": "integer"
|
|
},
|
|
"text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"FriendSourceFlags": {
|
|
"type": "object",
|
|
"properties": {
|
|
"all": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"all"
|
|
]
|
|
},
|
|
"GuildFolder": {
|
|
"type": "object",
|
|
"properties": {
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"guild_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"color",
|
|
"guild_ids",
|
|
"id",
|
|
"name"
|
|
]
|
|
},
|
|
"SecurityKey": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"key_id": {
|
|
"type": "string"
|
|
},
|
|
"public_key": {
|
|
"type": "string"
|
|
},
|
|
"counter": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"counter",
|
|
"id",
|
|
"key_id",
|
|
"name",
|
|
"public_key",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"ChannelPermissionOverwrite": {
|
|
"type": "object",
|
|
"properties": {
|
|
"allow": {
|
|
"type": "string"
|
|
},
|
|
"deny": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"allow",
|
|
"deny",
|
|
"id",
|
|
"type"
|
|
]
|
|
},
|
|
"ChannelPermissionOverwriteType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"Message": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"author_id": {
|
|
"type": "string"
|
|
},
|
|
"author": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"member_id": {
|
|
"type": "string"
|
|
},
|
|
"member": {
|
|
"$ref": "#/definitions/Member"
|
|
},
|
|
"webhook_id": {
|
|
"type": "string"
|
|
},
|
|
"webhook": {
|
|
"$ref": "#/definitions/Webhook"
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"application": {
|
|
"$ref": "#/definitions/Application"
|
|
},
|
|
"content": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"edited_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"tts": {
|
|
"type": "boolean"
|
|
},
|
|
"mention_everyone": {
|
|
"type": "boolean"
|
|
},
|
|
"mentions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/User"
|
|
}
|
|
},
|
|
"mention_roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"mention_channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Channel"
|
|
}
|
|
},
|
|
"sticker_items": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"attachments": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Attachment"
|
|
}
|
|
},
|
|
"embeds": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Embed"
|
|
}
|
|
},
|
|
"reactions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Reaction"
|
|
}
|
|
},
|
|
"nonce": {
|
|
"type": "string"
|
|
},
|
|
"pinned_at": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"pinned": {
|
|
"type": "boolean"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/MessageType"
|
|
},
|
|
"activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "integer"
|
|
},
|
|
"party_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"party_id",
|
|
"type"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"message_reference": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"message_id"
|
|
]
|
|
},
|
|
"referenced_message": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/Message"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"interaction": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/InteractionType"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"type"
|
|
]
|
|
},
|
|
"interaction_metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/InteractionType"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"authorizing_integration_owners": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"command_type": {
|
|
"$ref": "#/definitions/ApplicationCommandType"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"authorizing_integration_owners",
|
|
"command_type",
|
|
"id",
|
|
"name",
|
|
"type",
|
|
"user_id"
|
|
]
|
|
},
|
|
"components": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ActionRowComponent"
|
|
}
|
|
},
|
|
"poll": {
|
|
"$ref": "#/definitions/Poll"
|
|
},
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"embeds",
|
|
"flags",
|
|
"id",
|
|
"mention_channels",
|
|
"mention_roles",
|
|
"mentions",
|
|
"pinned",
|
|
"reactions",
|
|
"timestamp",
|
|
"type"
|
|
]
|
|
},
|
|
"Member": {
|
|
"type": "object",
|
|
"properties": {
|
|
"index": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"nick": {
|
|
"type": "string"
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"joined_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"premium_since": {
|
|
"type": "integer"
|
|
},
|
|
"deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"mute": {
|
|
"type": "boolean"
|
|
},
|
|
"pending": {
|
|
"type": "boolean"
|
|
},
|
|
"settings": {
|
|
"$ref": "#/definitions/UserGuildSettings"
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"joined_by": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"theme_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"communication_disabled_until": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"banner",
|
|
"bio",
|
|
"communication_disabled_until",
|
|
"deaf",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"index",
|
|
"joined_at",
|
|
"joined_by",
|
|
"mute",
|
|
"pending",
|
|
"roles",
|
|
"settings",
|
|
"user"
|
|
]
|
|
},
|
|
"Role": {
|
|
"type": "object",
|
|
"properties": {
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"hoist": {
|
|
"type": "boolean"
|
|
},
|
|
"managed": {
|
|
"type": "boolean"
|
|
},
|
|
"mentionable": {
|
|
"type": "boolean"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"permissions": {
|
|
"type": "string"
|
|
},
|
|
"position": {
|
|
"type": "integer"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"unicode_emoji": {
|
|
"type": "string"
|
|
},
|
|
"tags": {
|
|
"type": "object",
|
|
"properties": {
|
|
"bot_id": {
|
|
"type": "string"
|
|
},
|
|
"integration_id": {
|
|
"type": "string"
|
|
},
|
|
"premium_subscriber": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"colors": {
|
|
"$ref": "#/definitions/RoleColors"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"color",
|
|
"colors",
|
|
"flags",
|
|
"guild",
|
|
"guild_id",
|
|
"hoist",
|
|
"id",
|
|
"managed",
|
|
"mentionable",
|
|
"name",
|
|
"permissions",
|
|
"position"
|
|
]
|
|
},
|
|
"RoleColors": {
|
|
"type": "object",
|
|
"properties": {
|
|
"primary_color": {
|
|
"type": "integer"
|
|
},
|
|
"secondary_color": {
|
|
"type": "integer"
|
|
},
|
|
"tertiary_color": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"primary_color"
|
|
]
|
|
},
|
|
"UserGuildSettings": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_overrides": {
|
|
"anyOf": [
|
|
{
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"$ref": "#/definitions/ChannelOverride"
|
|
}
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mobile_push": {
|
|
"type": "boolean"
|
|
},
|
|
"mute_config": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress_everyone": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress_roles": {
|
|
"type": "boolean"
|
|
},
|
|
"version": {
|
|
"type": "integer"
|
|
},
|
|
"guild_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"mute_scheduled_events": {
|
|
"type": "boolean"
|
|
},
|
|
"hide_muted_channels": {
|
|
"type": "boolean"
|
|
},
|
|
"notify_highlights": {
|
|
"type": "integer",
|
|
"const": 0
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_overrides",
|
|
"flags",
|
|
"guild_id",
|
|
"hide_muted_channels",
|
|
"message_notifications",
|
|
"mobile_push",
|
|
"mute_config",
|
|
"mute_scheduled_events",
|
|
"muted",
|
|
"notify_highlights",
|
|
"suppress_everyone",
|
|
"suppress_roles",
|
|
"version"
|
|
]
|
|
},
|
|
"ChannelOverride": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_id",
|
|
"message_notifications",
|
|
"mute_config",
|
|
"muted"
|
|
]
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"Webhook": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/WebhookType"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"token": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"application": {
|
|
"$ref": "#/definitions/Application"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"source_guild_id": {
|
|
"type": "string"
|
|
},
|
|
"source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"source_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"source_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"application",
|
|
"application_id",
|
|
"avatar",
|
|
"channel",
|
|
"channel_id",
|
|
"id",
|
|
"name",
|
|
"source_channel",
|
|
"source_channel_id",
|
|
"type",
|
|
"url",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"WebhookType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3
|
|
]
|
|
},
|
|
"Application": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"summary": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"type": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true
|
|
},
|
|
"hook": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"bot_public": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"bot_require_code_grant": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"verify_key": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"redirect_uris": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"rpc_application_state": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"store_application_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"verification_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"interactions_endpoint_url": {
|
|
"type": "string"
|
|
},
|
|
"integration_public": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"integration_require_code_grant": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"discoverability_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"discovery_eligibility_flags": {
|
|
"type": "integer",
|
|
"default": 2240
|
|
},
|
|
"bot": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"tags": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"cover_image": {
|
|
"type": "string"
|
|
},
|
|
"install_params": {
|
|
"type": "object",
|
|
"properties": {
|
|
"scopes": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"permissions": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"permissions",
|
|
"scopes"
|
|
]
|
|
},
|
|
"terms_of_service_url": {
|
|
"type": "string"
|
|
},
|
|
"privacy_policy_url": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"custom_install_url": {
|
|
"type": "string"
|
|
},
|
|
"team": {
|
|
"$ref": "#/definitions/Team"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"description",
|
|
"discoverability_state",
|
|
"discovery_eligibility_flags",
|
|
"flags",
|
|
"hook",
|
|
"id",
|
|
"integration_public",
|
|
"integration_require_code_grant",
|
|
"name",
|
|
"owner",
|
|
"redirect_uris",
|
|
"rpc_application_state",
|
|
"store_application_state",
|
|
"summary",
|
|
"verification_state",
|
|
"verify_key"
|
|
]
|
|
},
|
|
"Team": {
|
|
"type": "object",
|
|
"properties": {
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"members": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/TeamMember"
|
|
}
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"owner_user_id": {
|
|
"type": "string"
|
|
},
|
|
"owner_user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"members",
|
|
"name",
|
|
"owner_user",
|
|
"owner_user_id"
|
|
]
|
|
},
|
|
"TeamMember": {
|
|
"type": "object",
|
|
"properties": {
|
|
"membership_state": {
|
|
"$ref": "#/definitions/TeamMemberState"
|
|
},
|
|
"permissions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"role": {
|
|
"$ref": "#/definitions/TeamMemberRole"
|
|
},
|
|
"team_id": {
|
|
"type": "string"
|
|
},
|
|
"team": {
|
|
"$ref": "#/definitions/Team"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"membership_state",
|
|
"permissions",
|
|
"role",
|
|
"team",
|
|
"team_id",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"TeamMemberState": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"TeamMemberRole": {
|
|
"type": "string",
|
|
"enum": [
|
|
"admin",
|
|
"developer",
|
|
"read_only"
|
|
]
|
|
},
|
|
"Sticker": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"available": {
|
|
"type": "boolean"
|
|
},
|
|
"tags": {
|
|
"type": "string"
|
|
},
|
|
"pack_id": {
|
|
"type": "string"
|
|
},
|
|
"pack": {
|
|
"$ref": "#/definitions/StickerPack"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/StickerType"
|
|
},
|
|
"format_type": {
|
|
"$ref": "#/definitions/StickerFormatType"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"format_type",
|
|
"id",
|
|
"name",
|
|
"pack",
|
|
"type"
|
|
]
|
|
},
|
|
"StickerPack": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"banner_asset_id": {
|
|
"type": "string"
|
|
},
|
|
"stickers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"cover_sticker_id": {
|
|
"type": "string"
|
|
},
|
|
"cover_sticker": {
|
|
"$ref": "#/definitions/Sticker"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"stickers"
|
|
]
|
|
},
|
|
"StickerType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"StickerFormatType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4
|
|
]
|
|
},
|
|
"Attachment": {
|
|
"type": "object",
|
|
"properties": {
|
|
"filename": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "integer"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
},
|
|
"content_type": {
|
|
"type": "string"
|
|
},
|
|
"message_id": {
|
|
"type": "string"
|
|
},
|
|
"message": {
|
|
"$ref": "#/definitions/Message"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"filename",
|
|
"id",
|
|
"message",
|
|
"message_id",
|
|
"proxy_url",
|
|
"size",
|
|
"url"
|
|
]
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"Reaction": {
|
|
"type": "object",
|
|
"properties": {
|
|
"count": {
|
|
"type": "integer"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"user_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"count",
|
|
"emoji",
|
|
"user_ids"
|
|
]
|
|
},
|
|
"PartialEmoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name"
|
|
]
|
|
},
|
|
"MessageType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
16,
|
|
19,
|
|
20,
|
|
41,
|
|
42,
|
|
43,
|
|
50,
|
|
63,
|
|
255
|
|
]
|
|
},
|
|
"InteractionType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5
|
|
]
|
|
},
|
|
"ApplicationCommandType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4
|
|
]
|
|
},
|
|
"ActionRowComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.ActionRow"
|
|
},
|
|
"components": {
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/ButtonComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/SelectMenuComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/StringSelectMenuComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/TextInputComponent"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"components",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.ActionRow": {
|
|
"type": "number",
|
|
"const": 1
|
|
},
|
|
"ButtonComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.Button"
|
|
},
|
|
"style": {
|
|
"$ref": "#/definitions/ButtonStyle"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"sku_id": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"style",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.Button": {
|
|
"type": "number",
|
|
"const": 2
|
|
},
|
|
"ButtonStyle": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6
|
|
]
|
|
},
|
|
"SelectMenuComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": [
|
|
3,
|
|
5,
|
|
6,
|
|
7,
|
|
8
|
|
],
|
|
"type": "number"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_types": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
},
|
|
"default_values": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuDefaultOption"
|
|
}
|
|
},
|
|
"min_values": {
|
|
"type": "integer"
|
|
},
|
|
"max_values": {
|
|
"type": "integer"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"type"
|
|
]
|
|
},
|
|
"SelectMenuDefaultOption": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"channel",
|
|
"role",
|
|
"user"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"type"
|
|
]
|
|
},
|
|
"StringSelectMenuComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.StringSelect"
|
|
},
|
|
"options": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuOption"
|
|
}
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_types": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
},
|
|
"default_values": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuDefaultOption"
|
|
}
|
|
},
|
|
"min_values": {
|
|
"type": "integer"
|
|
},
|
|
"max_values": {
|
|
"type": "integer"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"options",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.StringSelect": {
|
|
"type": "number",
|
|
"const": 3
|
|
},
|
|
"SelectMenuOption": {
|
|
"type": "object",
|
|
"properties": {
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"default": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"label",
|
|
"value"
|
|
]
|
|
},
|
|
"TextInputComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.TextInput"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"style": {
|
|
"$ref": "#/definitions/TextInputStyle"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"min_length": {
|
|
"type": "integer"
|
|
},
|
|
"max_length": {
|
|
"type": "integer"
|
|
},
|
|
"required": {
|
|
"type": "boolean"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"label",
|
|
"style",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.TextInput": {
|
|
"type": "number",
|
|
"const": 4
|
|
},
|
|
"TextInputStyle": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"Poll": {
|
|
"type": "object",
|
|
"properties": {
|
|
"question": {
|
|
"$ref": "#/definitions/PollMedia"
|
|
},
|
|
"answers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/PollAnswer"
|
|
}
|
|
},
|
|
"expiry": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"allow_multiselect": {
|
|
"type": "boolean"
|
|
},
|
|
"results": {
|
|
"$ref": "#/definitions/PollResult"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"allow_multiselect",
|
|
"answers",
|
|
"expiry",
|
|
"question"
|
|
]
|
|
},
|
|
"PollMedia": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"PollAnswer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"answer_id": {
|
|
"type": "string"
|
|
},
|
|
"poll_media": {
|
|
"$ref": "#/definitions/PollMedia"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"poll_media"
|
|
]
|
|
},
|
|
"PollResult": {
|
|
"type": "object",
|
|
"properties": {
|
|
"is_finalized": {
|
|
"type": "boolean"
|
|
},
|
|
"answer_counts": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/PollAnswerCount"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"answer_counts",
|
|
"is_finalized"
|
|
]
|
|
},
|
|
"PollAnswerCount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"count": {
|
|
"type": "integer"
|
|
},
|
|
"me_voted": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"count",
|
|
"id",
|
|
"me_voted"
|
|
]
|
|
},
|
|
"VoiceState": {
|
|
"type": "object",
|
|
"properties": {
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"member": {
|
|
"$ref": "#/definitions/Member"
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
},
|
|
"token": {
|
|
"type": "string"
|
|
},
|
|
"deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"mute": {
|
|
"type": "boolean"
|
|
},
|
|
"self_deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"self_mute": {
|
|
"type": "boolean"
|
|
},
|
|
"self_stream": {
|
|
"type": "boolean"
|
|
},
|
|
"self_video": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress": {
|
|
"type": "boolean"
|
|
},
|
|
"request_to_speak_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"deaf",
|
|
"guild_id",
|
|
"id",
|
|
"member",
|
|
"mute",
|
|
"self_deaf",
|
|
"self_mute",
|
|
"self_video",
|
|
"session_id",
|
|
"suppress",
|
|
"token",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"ReadState": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"public_ack": {
|
|
"type": "string"
|
|
},
|
|
"notifications_cursor": {
|
|
"type": "string"
|
|
},
|
|
"last_pin_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"mention_count": {
|
|
"type": "integer"
|
|
},
|
|
"manual": {
|
|
"type": "boolean"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"id",
|
|
"last_message_id",
|
|
"manual",
|
|
"mention_count",
|
|
"notifications_cursor",
|
|
"public_ack",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Ban": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"executor_id": {
|
|
"type": "string"
|
|
},
|
|
"executor": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"ip": {
|
|
"type": "string"
|
|
},
|
|
"reason": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"executor",
|
|
"executor_id",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"ip",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Template": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"usage_count": {
|
|
"type": "integer"
|
|
},
|
|
"creator_id": {
|
|
"type": "string"
|
|
},
|
|
"creator": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"updated_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"source_guild_id": {
|
|
"type": "string"
|
|
},
|
|
"source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"serialized_source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"code",
|
|
"created_at",
|
|
"creator",
|
|
"creator_id",
|
|
"id",
|
|
"name",
|
|
"serialized_source_guild",
|
|
"source_guild",
|
|
"source_guild_id",
|
|
"updated_at"
|
|
]
|
|
},
|
|
"Emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"animated": {
|
|
"type": "boolean"
|
|
},
|
|
"available": {
|
|
"type": "boolean"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"managed": {
|
|
"type": "boolean"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"require_colons": {
|
|
"type": "boolean"
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"groups": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"available",
|
|
"groups",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"managed",
|
|
"name",
|
|
"require_colons",
|
|
"roles",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"GuildWelcomeScreen": {
|
|
"type": "object",
|
|
"properties": {
|
|
"enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"welcome_channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"emoji_id": {
|
|
"type": "string"
|
|
},
|
|
"emoji_name": {
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_id",
|
|
"description"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"description",
|
|
"enabled",
|
|
"welcome_channels"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"APIPublicUser": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```",
|
|
"type": "string"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_type": {
|
|
"type": "integer"
|
|
},
|
|
"theme_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"badge_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"discriminator",
|
|
"id",
|
|
"premium_since",
|
|
"premium_type",
|
|
"public_flags",
|
|
"username"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"APIPrivateUser": {
|
|
"type": "object",
|
|
"properties": {
|
|
"email": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```",
|
|
"type": "string"
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_type": {
|
|
"type": "integer"
|
|
},
|
|
"theme_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"badge_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"mfa_enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"phone": {
|
|
"type": "string"
|
|
},
|
|
"nsfw_allowed": {
|
|
"type": "boolean"
|
|
},
|
|
"premium": {
|
|
"type": "boolean"
|
|
},
|
|
"purchased_flags": {
|
|
"type": "integer"
|
|
},
|
|
"premium_usage_flags": {
|
|
"type": "integer"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
},
|
|
"settings": {
|
|
"$ref": "#/definitions/UserSettingsSchema"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"disabled",
|
|
"discriminator",
|
|
"flags",
|
|
"id",
|
|
"mfa_enabled",
|
|
"nsfw_allowed",
|
|
"premium",
|
|
"premium_since",
|
|
"premium_type",
|
|
"premium_usage_flags",
|
|
"public_flags",
|
|
"purchased_flags",
|
|
"username",
|
|
"verified"
|
|
],
|
|
"definitions": {
|
|
"UserSettingsSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk_timeout": {
|
|
"type": "integer"
|
|
},
|
|
"allow_accessibility_detection": {
|
|
"type": "boolean"
|
|
},
|
|
"animate_emoji": {
|
|
"type": "boolean"
|
|
},
|
|
"animate_stickers": {
|
|
"type": "integer"
|
|
},
|
|
"contact_sync_enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"convert_emoticons": {
|
|
"type": "boolean"
|
|
},
|
|
"custom_status": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/CustomStatus"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"default_guilds_restricted": {
|
|
"type": "boolean"
|
|
},
|
|
"detect_platform_accounts": {
|
|
"type": "boolean"
|
|
},
|
|
"developer_mode": {
|
|
"type": "boolean"
|
|
},
|
|
"disable_games_tab": {
|
|
"type": "boolean"
|
|
},
|
|
"enable_tts_command": {
|
|
"type": "boolean"
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer"
|
|
},
|
|
"friend_discovery_flags": {
|
|
"type": "integer"
|
|
},
|
|
"friend_source_flags": {
|
|
"$ref": "#/definitions/FriendSourceFlags"
|
|
},
|
|
"gateway_connected": {
|
|
"type": "boolean"
|
|
},
|
|
"gif_auto_play": {
|
|
"type": "boolean"
|
|
},
|
|
"guild_folders": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/GuildFolder"
|
|
}
|
|
},
|
|
"guild_positions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"inline_attachment_media": {
|
|
"type": "boolean"
|
|
},
|
|
"inline_embed_media": {
|
|
"type": "boolean"
|
|
},
|
|
"locale": {
|
|
"type": "string"
|
|
},
|
|
"message_display_compact": {
|
|
"type": "boolean"
|
|
},
|
|
"native_phone_integration_enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"render_embeds": {
|
|
"type": "boolean"
|
|
},
|
|
"render_reactions": {
|
|
"type": "boolean"
|
|
},
|
|
"restricted_guilds": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"show_current_game": {
|
|
"type": "boolean"
|
|
},
|
|
"status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"stream_notifications_enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"theme": {
|
|
"enum": [
|
|
"dark",
|
|
"light"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"timezone_offset": {
|
|
"type": "integer"
|
|
},
|
|
"view_nsfw_guilds": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk_timeout",
|
|
"allow_accessibility_detection",
|
|
"animate_emoji",
|
|
"animate_stickers",
|
|
"contact_sync_enabled",
|
|
"convert_emoticons",
|
|
"custom_status",
|
|
"default_guilds_restricted",
|
|
"detect_platform_accounts",
|
|
"developer_mode",
|
|
"disable_games_tab",
|
|
"enable_tts_command",
|
|
"explicit_content_filter",
|
|
"friend_discovery_flags",
|
|
"friend_source_flags",
|
|
"gateway_connected",
|
|
"gif_auto_play",
|
|
"guild_folders",
|
|
"guild_positions",
|
|
"inline_attachment_media",
|
|
"inline_embed_media",
|
|
"locale",
|
|
"message_display_compact",
|
|
"native_phone_integration_enabled",
|
|
"render_embeds",
|
|
"render_reactions",
|
|
"restricted_guilds",
|
|
"show_current_game",
|
|
"status",
|
|
"stream_notifications_enabled",
|
|
"theme",
|
|
"timezone_offset",
|
|
"view_nsfw_guilds"
|
|
]
|
|
},
|
|
"CustomStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"emoji_id": {
|
|
"type": "string"
|
|
},
|
|
"emoji_name": {
|
|
"type": "string"
|
|
},
|
|
"expires_at": {
|
|
"type": "integer"
|
|
},
|
|
"text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"FriendSourceFlags": {
|
|
"type": "object",
|
|
"properties": {
|
|
"all": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"all"
|
|
]
|
|
},
|
|
"GuildFolder": {
|
|
"type": "object",
|
|
"properties": {
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"guild_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"color",
|
|
"guild_ids",
|
|
"id",
|
|
"name"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"APIGuildArray": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/APIGuild"
|
|
},
|
|
"definitions": {
|
|
"APIGuild": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"region": {
|
|
"type": "string"
|
|
},
|
|
"reload": {
|
|
"description": "Reloads entity data from the database.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"remove": {
|
|
"description": "Removes current entity from the database.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"parent": {
|
|
"type": "string"
|
|
},
|
|
"owner_id": {
|
|
"type": "string"
|
|
},
|
|
"nsfw": {
|
|
"type": "boolean"
|
|
},
|
|
"invites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Invite"
|
|
}
|
|
},
|
|
"voice_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/VoiceState"
|
|
}
|
|
},
|
|
"webhooks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Webhook"
|
|
}
|
|
},
|
|
"toJSON": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"_do_validate": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"assign": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"hasId": {
|
|
"description": "Checks if entity has an id.\nIf entity composite compose ids, it will check them all.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"save": {
|
|
"description": "Saves current entity in the database.\nIf entity does not exist in the database then inserts, otherwise updates.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"softRemove": {
|
|
"description": "Records the delete date of current entity.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"recover": {
|
|
"description": "Recovers a given entity in the database.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Channel"
|
|
}
|
|
},
|
|
"system_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"rules_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"splash": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"features": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"verification_level": {
|
|
"type": "integer"
|
|
},
|
|
"default_message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"system_channel_flags": {
|
|
"type": "integer"
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer"
|
|
},
|
|
"public_updates_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"afk_timeout": {
|
|
"type": "integer"
|
|
},
|
|
"afk_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"preferred_locale": {
|
|
"type": "string"
|
|
},
|
|
"premium_progress_bar_enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"discovery_splash": {
|
|
"type": "string"
|
|
},
|
|
"bans": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Ban"
|
|
}
|
|
},
|
|
"primary_category_id": {
|
|
"type": "string"
|
|
},
|
|
"large": {
|
|
"type": "boolean"
|
|
},
|
|
"max_members": {
|
|
"type": "integer"
|
|
},
|
|
"max_presences": {
|
|
"type": "integer"
|
|
},
|
|
"max_video_channel_users": {
|
|
"type": "integer"
|
|
},
|
|
"member_count": {
|
|
"type": "integer"
|
|
},
|
|
"presence_count": {
|
|
"type": "integer"
|
|
},
|
|
"members": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Member"
|
|
}
|
|
},
|
|
"template_id": {
|
|
"type": "string"
|
|
},
|
|
"emojis": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Emoji"
|
|
}
|
|
},
|
|
"stickers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"mfa_level": {
|
|
"type": "integer"
|
|
},
|
|
"premium_subscription_count": {
|
|
"type": "integer"
|
|
},
|
|
"premium_tier": {
|
|
"type": "integer"
|
|
},
|
|
"unavailable": {
|
|
"type": "boolean"
|
|
},
|
|
"welcome_screen": {
|
|
"$ref": "#/definitions/GuildWelcomeScreen",
|
|
"description": "DEPRECATED: Look at the new Guild onboarding screens."
|
|
},
|
|
"widget_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"widget_enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"nsfw_level": {
|
|
"type": "integer"
|
|
},
|
|
"permissions": {
|
|
"type": "integer"
|
|
},
|
|
"channel_ordering": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"_do_validate",
|
|
"assign",
|
|
"bans",
|
|
"channel_ordering",
|
|
"channels",
|
|
"emojis",
|
|
"features",
|
|
"hasId",
|
|
"id",
|
|
"invites",
|
|
"members",
|
|
"name",
|
|
"nsfw",
|
|
"premium_progress_bar_enabled",
|
|
"public_updates_channel_id",
|
|
"recover",
|
|
"reload",
|
|
"remove",
|
|
"roles",
|
|
"save",
|
|
"softRemove",
|
|
"stickers",
|
|
"toJSON",
|
|
"unavailable",
|
|
"voice_states",
|
|
"webhooks",
|
|
"welcome_screen",
|
|
"widget_enabled"
|
|
]
|
|
},
|
|
"Invite": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "string"
|
|
},
|
|
"temporary": {
|
|
"type": "boolean"
|
|
},
|
|
"uses": {
|
|
"type": "integer"
|
|
},
|
|
"max_uses": {
|
|
"type": "integer"
|
|
},
|
|
"max_age": {
|
|
"type": "integer"
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"expires_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"inviter_id": {
|
|
"type": "string"
|
|
},
|
|
"inviter": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"target_user_id": {
|
|
"type": "string"
|
|
},
|
|
"target_user": {
|
|
"type": "string"
|
|
},
|
|
"target_user_type": {
|
|
"type": "integer"
|
|
},
|
|
"vanity_url": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"code",
|
|
"created_at",
|
|
"flags",
|
|
"guild",
|
|
"guild_id",
|
|
"inviter",
|
|
"max_age",
|
|
"max_uses",
|
|
"target_user_id",
|
|
"temporary",
|
|
"uses"
|
|
]
|
|
},
|
|
"Guild": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"afk_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"afk_timeout": {
|
|
"type": "integer"
|
|
},
|
|
"bans": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Ban"
|
|
}
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"default_message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"discovery_splash": {
|
|
"type": "string"
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer"
|
|
},
|
|
"features": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"primary_category_id": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"large": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"max_members": {
|
|
"type": "integer"
|
|
},
|
|
"max_presences": {
|
|
"type": "integer"
|
|
},
|
|
"max_video_channel_users": {
|
|
"type": "integer"
|
|
},
|
|
"member_count": {
|
|
"type": "integer"
|
|
},
|
|
"presence_count": {
|
|
"type": "integer"
|
|
},
|
|
"members": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Member"
|
|
}
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Channel"
|
|
}
|
|
},
|
|
"template_id": {
|
|
"type": "string"
|
|
},
|
|
"template": {
|
|
"$ref": "#/definitions/Template"
|
|
},
|
|
"emojis": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Emoji"
|
|
}
|
|
},
|
|
"stickers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"invites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Invite"
|
|
}
|
|
},
|
|
"voice_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/VoiceState"
|
|
}
|
|
},
|
|
"webhooks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Webhook"
|
|
}
|
|
},
|
|
"mfa_level": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"owner_id": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"preferred_locale": {
|
|
"type": "string"
|
|
},
|
|
"premium_subscription_count": {
|
|
"type": "integer"
|
|
},
|
|
"premium_tier": {
|
|
"type": "integer"
|
|
},
|
|
"public_updates_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"public_updates_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"rules_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"rules_channel": {
|
|
"type": "string"
|
|
},
|
|
"region": {
|
|
"type": "string"
|
|
},
|
|
"splash": {
|
|
"type": "string"
|
|
},
|
|
"system_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"system_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"system_channel_flags": {
|
|
"type": "integer"
|
|
},
|
|
"unavailable": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"verification_level": {
|
|
"type": "integer"
|
|
},
|
|
"welcome_screen": {
|
|
"$ref": "#/definitions/GuildWelcomeScreen",
|
|
"description": "DEPRECATED: Look at the new Guild onboarding screens."
|
|
},
|
|
"widget_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"widget_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"widget_enabled": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"nsfw_level": {
|
|
"type": "integer"
|
|
},
|
|
"nsfw": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"parent": {
|
|
"type": "string"
|
|
},
|
|
"permissions": {
|
|
"type": "integer"
|
|
},
|
|
"premium_progress_bar_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"channel_ordering": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bans",
|
|
"channel_ordering",
|
|
"channels",
|
|
"emojis",
|
|
"features",
|
|
"id",
|
|
"invites",
|
|
"members",
|
|
"name",
|
|
"nsfw",
|
|
"premium_progress_bar_enabled",
|
|
"public_updates_channel_id",
|
|
"roles",
|
|
"stickers",
|
|
"template",
|
|
"unavailable",
|
|
"voice_states",
|
|
"webhooks",
|
|
"welcome_screen",
|
|
"widget_enabled"
|
|
]
|
|
},
|
|
"Channel": {
|
|
"type": "object",
|
|
"properties": {
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ChannelType"
|
|
},
|
|
"recipients": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Recipient"
|
|
}
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"parent_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"parent": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"owner_id": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"last_pin_timestamp": {
|
|
"type": "integer"
|
|
},
|
|
"default_auto_archive_duration": {
|
|
"type": "integer"
|
|
},
|
|
"permission_overwrites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwrite"
|
|
}
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
},
|
|
"bitrate": {
|
|
"type": "integer"
|
|
},
|
|
"user_limit": {
|
|
"type": "integer"
|
|
},
|
|
"nsfw": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"topic": {
|
|
"type": "string"
|
|
},
|
|
"invites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Invite"
|
|
}
|
|
},
|
|
"retention_policy_id": {
|
|
"type": "string"
|
|
},
|
|
"messages": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Message"
|
|
}
|
|
},
|
|
"voice_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/VoiceState"
|
|
}
|
|
},
|
|
"read_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ReadState"
|
|
}
|
|
},
|
|
"webhooks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Webhook"
|
|
}
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"position": {
|
|
"description": "Must be calculated Channel.calculatePosition",
|
|
"type": "integer"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"created_at",
|
|
"flags",
|
|
"id",
|
|
"nsfw",
|
|
"owner",
|
|
"parent_id",
|
|
"position",
|
|
"type"
|
|
]
|
|
},
|
|
"ChannelType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
33,
|
|
34,
|
|
35,
|
|
64,
|
|
255
|
|
]
|
|
},
|
|
"Recipient": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"closed": {
|
|
"type": "boolean"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"closed",
|
|
"id",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"User": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"theme_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"phone": {
|
|
"type": "string"
|
|
},
|
|
"desktop": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"mobile": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"premium": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_type": {
|
|
"type": "integer"
|
|
},
|
|
"bot": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"bio": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"system": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"nsfw_allowed": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"mfa_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"webauthn_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"totp_secret": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"totp_last_ticket": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"deleted": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"email": {
|
|
"type": "string"
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"public_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"purchased_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"premium_usage_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"rights": {
|
|
"type": "string"
|
|
},
|
|
"sessions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Session"
|
|
}
|
|
},
|
|
"relationships": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Relationship"
|
|
}
|
|
},
|
|
"connected_accounts": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ConnectedAccount"
|
|
}
|
|
},
|
|
"data": {
|
|
"type": "object",
|
|
"properties": {
|
|
"valid_tokens_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"hash": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"valid_tokens_since"
|
|
]
|
|
},
|
|
"fingerprints": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"settings": {
|
|
"$ref": "#/definitions/UserSettings"
|
|
},
|
|
"extended_settings": {
|
|
"type": "string",
|
|
"default": "{}"
|
|
},
|
|
"security_keys": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SecurityKey"
|
|
}
|
|
},
|
|
"badge_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"connected_accounts",
|
|
"created_at",
|
|
"data",
|
|
"deleted",
|
|
"desktop",
|
|
"disabled",
|
|
"discriminator",
|
|
"extended_settings",
|
|
"fingerprints",
|
|
"flags",
|
|
"id",
|
|
"mfa_enabled",
|
|
"mobile",
|
|
"nsfw_allowed",
|
|
"premium",
|
|
"premium_since",
|
|
"premium_type",
|
|
"premium_usage_flags",
|
|
"public_flags",
|
|
"purchased_flags",
|
|
"relationships",
|
|
"rights",
|
|
"security_keys",
|
|
"sessions",
|
|
"system",
|
|
"username",
|
|
"verified",
|
|
"webauthn_enabled"
|
|
]
|
|
},
|
|
"Session": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"client_info": {
|
|
"type": "object",
|
|
"properties": {
|
|
"client": {
|
|
"type": "string"
|
|
},
|
|
"os": {
|
|
"type": "string"
|
|
},
|
|
"version": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"client",
|
|
"os",
|
|
"version"
|
|
]
|
|
},
|
|
"client_status": {
|
|
"$ref": "#/definitions/ClientStatus"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"activities",
|
|
"client_info",
|
|
"client_status",
|
|
"id",
|
|
"session_id",
|
|
"status",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
]
|
|
},
|
|
"ClientStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"desktop": {
|
|
"type": "string"
|
|
},
|
|
"mobile": {
|
|
"type": "string"
|
|
},
|
|
"web": {
|
|
"type": "string"
|
|
},
|
|
"embedded": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Relationship": {
|
|
"type": "object",
|
|
"properties": {
|
|
"from_id": {
|
|
"type": "string"
|
|
},
|
|
"from": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"to_id": {
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"nickname": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/RelationshipType"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"from",
|
|
"from_id",
|
|
"id",
|
|
"to",
|
|
"to_id",
|
|
"type"
|
|
]
|
|
},
|
|
"RelationshipType": {
|
|
"type": "number",
|
|
"enum": [
|
|
4,
|
|
3,
|
|
2,
|
|
1
|
|
]
|
|
},
|
|
"ConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"external_id": {
|
|
"type": "string"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"friend_sync": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"revoked": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"show_activity": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"visibility": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"integrations": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"metadata_": {},
|
|
"metadata_visibility": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"two_way_link": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"token_data": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/ConnectedAccountTokenData"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"external_id",
|
|
"id",
|
|
"name",
|
|
"type",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"ConnectedAccountTokenData": {
|
|
"type": "object",
|
|
"properties": {
|
|
"access_token": {
|
|
"type": "string"
|
|
},
|
|
"token_type": {
|
|
"type": "string"
|
|
},
|
|
"scope": {
|
|
"type": "string"
|
|
},
|
|
"refresh_token": {
|
|
"type": "string"
|
|
},
|
|
"expires_in": {
|
|
"type": "integer"
|
|
},
|
|
"expires_at": {
|
|
"type": "integer"
|
|
},
|
|
"fetched_at": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"access_token",
|
|
"fetched_at"
|
|
]
|
|
},
|
|
"UserSettings": {
|
|
"type": "object",
|
|
"properties": {
|
|
"index": {
|
|
"type": "string"
|
|
},
|
|
"afk_timeout": {
|
|
"type": "integer",
|
|
"default": 3600
|
|
},
|
|
"allow_accessibility_detection": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"animate_emoji": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"animate_stickers": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"contact_sync_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"convert_emoticons": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"custom_status": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/CustomStatus"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"default_guilds_restricted": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"detect_platform_accounts": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"developer_mode": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"disable_games_tab": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"enable_tts_command": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"friend_discovery_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"friend_source_flags": {
|
|
"$ref": "#/definitions/FriendSourceFlags"
|
|
},
|
|
"gateway_connected": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"gif_auto_play": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"guild_folders": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/GuildFolder"
|
|
},
|
|
"default": []
|
|
},
|
|
"guild_positions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"inline_attachment_media": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"inline_embed_media": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"locale": {
|
|
"type": "string",
|
|
"default": "en-US"
|
|
},
|
|
"message_display_compact": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"native_phone_integration_enabled": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"render_embeds": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"render_reactions": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"restricted_guilds": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"show_current_game": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string",
|
|
"default": "online"
|
|
},
|
|
"stream_notifications_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"theme": {
|
|
"enum": [
|
|
"dark",
|
|
"light"
|
|
],
|
|
"type": "string",
|
|
"default": "dark"
|
|
},
|
|
"timezone_offset": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"view_nsfw_guilds": {
|
|
"type": "boolean",
|
|
"default": true
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk_timeout",
|
|
"allow_accessibility_detection",
|
|
"animate_emoji",
|
|
"animate_stickers",
|
|
"contact_sync_enabled",
|
|
"convert_emoticons",
|
|
"custom_status",
|
|
"default_guilds_restricted",
|
|
"detect_platform_accounts",
|
|
"developer_mode",
|
|
"disable_games_tab",
|
|
"enable_tts_command",
|
|
"explicit_content_filter",
|
|
"friend_discovery_flags",
|
|
"friend_source_flags",
|
|
"gateway_connected",
|
|
"gif_auto_play",
|
|
"guild_folders",
|
|
"guild_positions",
|
|
"index",
|
|
"inline_attachment_media",
|
|
"inline_embed_media",
|
|
"locale",
|
|
"message_display_compact",
|
|
"native_phone_integration_enabled",
|
|
"render_embeds",
|
|
"render_reactions",
|
|
"restricted_guilds",
|
|
"show_current_game",
|
|
"status",
|
|
"stream_notifications_enabled",
|
|
"theme",
|
|
"timezone_offset",
|
|
"view_nsfw_guilds"
|
|
]
|
|
},
|
|
"CustomStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"emoji_id": {
|
|
"type": "string"
|
|
},
|
|
"emoji_name": {
|
|
"type": "string"
|
|
},
|
|
"expires_at": {
|
|
"type": "integer"
|
|
},
|
|
"text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"FriendSourceFlags": {
|
|
"type": "object",
|
|
"properties": {
|
|
"all": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"all"
|
|
]
|
|
},
|
|
"GuildFolder": {
|
|
"type": "object",
|
|
"properties": {
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"guild_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"color",
|
|
"guild_ids",
|
|
"id",
|
|
"name"
|
|
]
|
|
},
|
|
"SecurityKey": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"key_id": {
|
|
"type": "string"
|
|
},
|
|
"public_key": {
|
|
"type": "string"
|
|
},
|
|
"counter": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"counter",
|
|
"id",
|
|
"key_id",
|
|
"name",
|
|
"public_key",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"ChannelPermissionOverwrite": {
|
|
"type": "object",
|
|
"properties": {
|
|
"allow": {
|
|
"type": "string"
|
|
},
|
|
"deny": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"allow",
|
|
"deny",
|
|
"id",
|
|
"type"
|
|
]
|
|
},
|
|
"ChannelPermissionOverwriteType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"Message": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"author_id": {
|
|
"type": "string"
|
|
},
|
|
"author": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"member_id": {
|
|
"type": "string"
|
|
},
|
|
"member": {
|
|
"$ref": "#/definitions/Member"
|
|
},
|
|
"webhook_id": {
|
|
"type": "string"
|
|
},
|
|
"webhook": {
|
|
"$ref": "#/definitions/Webhook"
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"application": {
|
|
"$ref": "#/definitions/Application"
|
|
},
|
|
"content": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"edited_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"tts": {
|
|
"type": "boolean"
|
|
},
|
|
"mention_everyone": {
|
|
"type": "boolean"
|
|
},
|
|
"mentions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/User"
|
|
}
|
|
},
|
|
"mention_roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"mention_channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Channel"
|
|
}
|
|
},
|
|
"sticker_items": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"attachments": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Attachment"
|
|
}
|
|
},
|
|
"embeds": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Embed"
|
|
}
|
|
},
|
|
"reactions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Reaction"
|
|
}
|
|
},
|
|
"nonce": {
|
|
"type": "string"
|
|
},
|
|
"pinned_at": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"pinned": {
|
|
"type": "boolean"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/MessageType"
|
|
},
|
|
"activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "integer"
|
|
},
|
|
"party_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"party_id",
|
|
"type"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"message_reference": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"message_id"
|
|
]
|
|
},
|
|
"referenced_message": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/Message"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"interaction": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/InteractionType"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"type"
|
|
]
|
|
},
|
|
"interaction_metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/InteractionType"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"authorizing_integration_owners": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"command_type": {
|
|
"$ref": "#/definitions/ApplicationCommandType"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"authorizing_integration_owners",
|
|
"command_type",
|
|
"id",
|
|
"name",
|
|
"type",
|
|
"user_id"
|
|
]
|
|
},
|
|
"components": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ActionRowComponent"
|
|
}
|
|
},
|
|
"poll": {
|
|
"$ref": "#/definitions/Poll"
|
|
},
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"embeds",
|
|
"flags",
|
|
"id",
|
|
"mention_channels",
|
|
"mention_roles",
|
|
"mentions",
|
|
"pinned",
|
|
"reactions",
|
|
"timestamp",
|
|
"type"
|
|
]
|
|
},
|
|
"Member": {
|
|
"type": "object",
|
|
"properties": {
|
|
"index": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"nick": {
|
|
"type": "string"
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"joined_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"premium_since": {
|
|
"type": "integer"
|
|
},
|
|
"deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"mute": {
|
|
"type": "boolean"
|
|
},
|
|
"pending": {
|
|
"type": "boolean"
|
|
},
|
|
"settings": {
|
|
"$ref": "#/definitions/UserGuildSettings"
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"joined_by": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"theme_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"communication_disabled_until": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"banner",
|
|
"bio",
|
|
"communication_disabled_until",
|
|
"deaf",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"index",
|
|
"joined_at",
|
|
"joined_by",
|
|
"mute",
|
|
"pending",
|
|
"roles",
|
|
"settings",
|
|
"user"
|
|
]
|
|
},
|
|
"Role": {
|
|
"type": "object",
|
|
"properties": {
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"hoist": {
|
|
"type": "boolean"
|
|
},
|
|
"managed": {
|
|
"type": "boolean"
|
|
},
|
|
"mentionable": {
|
|
"type": "boolean"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"permissions": {
|
|
"type": "string"
|
|
},
|
|
"position": {
|
|
"type": "integer"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"unicode_emoji": {
|
|
"type": "string"
|
|
},
|
|
"tags": {
|
|
"type": "object",
|
|
"properties": {
|
|
"bot_id": {
|
|
"type": "string"
|
|
},
|
|
"integration_id": {
|
|
"type": "string"
|
|
},
|
|
"premium_subscriber": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"colors": {
|
|
"$ref": "#/definitions/RoleColors"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"color",
|
|
"colors",
|
|
"flags",
|
|
"guild",
|
|
"guild_id",
|
|
"hoist",
|
|
"id",
|
|
"managed",
|
|
"mentionable",
|
|
"name",
|
|
"permissions",
|
|
"position"
|
|
]
|
|
},
|
|
"RoleColors": {
|
|
"type": "object",
|
|
"properties": {
|
|
"primary_color": {
|
|
"type": "integer"
|
|
},
|
|
"secondary_color": {
|
|
"type": "integer"
|
|
},
|
|
"tertiary_color": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"primary_color"
|
|
]
|
|
},
|
|
"UserGuildSettings": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_overrides": {
|
|
"anyOf": [
|
|
{
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"$ref": "#/definitions/ChannelOverride"
|
|
}
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mobile_push": {
|
|
"type": "boolean"
|
|
},
|
|
"mute_config": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress_everyone": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress_roles": {
|
|
"type": "boolean"
|
|
},
|
|
"version": {
|
|
"type": "integer"
|
|
},
|
|
"guild_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"mute_scheduled_events": {
|
|
"type": "boolean"
|
|
},
|
|
"hide_muted_channels": {
|
|
"type": "boolean"
|
|
},
|
|
"notify_highlights": {
|
|
"type": "integer",
|
|
"const": 0
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_overrides",
|
|
"flags",
|
|
"guild_id",
|
|
"hide_muted_channels",
|
|
"message_notifications",
|
|
"mobile_push",
|
|
"mute_config",
|
|
"mute_scheduled_events",
|
|
"muted",
|
|
"notify_highlights",
|
|
"suppress_everyone",
|
|
"suppress_roles",
|
|
"version"
|
|
]
|
|
},
|
|
"ChannelOverride": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_id",
|
|
"message_notifications",
|
|
"mute_config",
|
|
"muted"
|
|
]
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"Webhook": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/WebhookType"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"token": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"application": {
|
|
"$ref": "#/definitions/Application"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"source_guild_id": {
|
|
"type": "string"
|
|
},
|
|
"source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"source_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"source_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"application",
|
|
"application_id",
|
|
"avatar",
|
|
"channel",
|
|
"channel_id",
|
|
"id",
|
|
"name",
|
|
"source_channel",
|
|
"source_channel_id",
|
|
"type",
|
|
"url",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"WebhookType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3
|
|
]
|
|
},
|
|
"Application": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"summary": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"type": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true
|
|
},
|
|
"hook": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"bot_public": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"bot_require_code_grant": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"verify_key": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"redirect_uris": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"rpc_application_state": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"store_application_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"verification_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"interactions_endpoint_url": {
|
|
"type": "string"
|
|
},
|
|
"integration_public": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"integration_require_code_grant": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"discoverability_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"discovery_eligibility_flags": {
|
|
"type": "integer",
|
|
"default": 2240
|
|
},
|
|
"bot": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"tags": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"cover_image": {
|
|
"type": "string"
|
|
},
|
|
"install_params": {
|
|
"type": "object",
|
|
"properties": {
|
|
"scopes": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"permissions": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"permissions",
|
|
"scopes"
|
|
]
|
|
},
|
|
"terms_of_service_url": {
|
|
"type": "string"
|
|
},
|
|
"privacy_policy_url": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"custom_install_url": {
|
|
"type": "string"
|
|
},
|
|
"team": {
|
|
"$ref": "#/definitions/Team"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"description",
|
|
"discoverability_state",
|
|
"discovery_eligibility_flags",
|
|
"flags",
|
|
"hook",
|
|
"id",
|
|
"integration_public",
|
|
"integration_require_code_grant",
|
|
"name",
|
|
"owner",
|
|
"redirect_uris",
|
|
"rpc_application_state",
|
|
"store_application_state",
|
|
"summary",
|
|
"verification_state",
|
|
"verify_key"
|
|
]
|
|
},
|
|
"Team": {
|
|
"type": "object",
|
|
"properties": {
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"members": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/TeamMember"
|
|
}
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"owner_user_id": {
|
|
"type": "string"
|
|
},
|
|
"owner_user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"members",
|
|
"name",
|
|
"owner_user",
|
|
"owner_user_id"
|
|
]
|
|
},
|
|
"TeamMember": {
|
|
"type": "object",
|
|
"properties": {
|
|
"membership_state": {
|
|
"$ref": "#/definitions/TeamMemberState"
|
|
},
|
|
"permissions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"role": {
|
|
"$ref": "#/definitions/TeamMemberRole"
|
|
},
|
|
"team_id": {
|
|
"type": "string"
|
|
},
|
|
"team": {
|
|
"$ref": "#/definitions/Team"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"membership_state",
|
|
"permissions",
|
|
"role",
|
|
"team",
|
|
"team_id",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"TeamMemberState": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"TeamMemberRole": {
|
|
"type": "string",
|
|
"enum": [
|
|
"admin",
|
|
"developer",
|
|
"read_only"
|
|
]
|
|
},
|
|
"Sticker": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"available": {
|
|
"type": "boolean"
|
|
},
|
|
"tags": {
|
|
"type": "string"
|
|
},
|
|
"pack_id": {
|
|
"type": "string"
|
|
},
|
|
"pack": {
|
|
"$ref": "#/definitions/StickerPack"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/StickerType"
|
|
},
|
|
"format_type": {
|
|
"$ref": "#/definitions/StickerFormatType"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"format_type",
|
|
"id",
|
|
"name",
|
|
"pack",
|
|
"type"
|
|
]
|
|
},
|
|
"StickerPack": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"banner_asset_id": {
|
|
"type": "string"
|
|
},
|
|
"stickers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"cover_sticker_id": {
|
|
"type": "string"
|
|
},
|
|
"cover_sticker": {
|
|
"$ref": "#/definitions/Sticker"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"stickers"
|
|
]
|
|
},
|
|
"StickerType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"StickerFormatType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4
|
|
]
|
|
},
|
|
"Attachment": {
|
|
"type": "object",
|
|
"properties": {
|
|
"filename": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "integer"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
},
|
|
"content_type": {
|
|
"type": "string"
|
|
},
|
|
"message_id": {
|
|
"type": "string"
|
|
},
|
|
"message": {
|
|
"$ref": "#/definitions/Message"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"filename",
|
|
"id",
|
|
"message",
|
|
"message_id",
|
|
"proxy_url",
|
|
"size",
|
|
"url"
|
|
]
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"Reaction": {
|
|
"type": "object",
|
|
"properties": {
|
|
"count": {
|
|
"type": "integer"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"user_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"count",
|
|
"emoji",
|
|
"user_ids"
|
|
]
|
|
},
|
|
"PartialEmoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name"
|
|
]
|
|
},
|
|
"MessageType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
16,
|
|
19,
|
|
20,
|
|
41,
|
|
42,
|
|
43,
|
|
50,
|
|
63,
|
|
255
|
|
]
|
|
},
|
|
"InteractionType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5
|
|
]
|
|
},
|
|
"ApplicationCommandType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4
|
|
]
|
|
},
|
|
"ActionRowComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.ActionRow"
|
|
},
|
|
"components": {
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/ButtonComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/SelectMenuComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/StringSelectMenuComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/TextInputComponent"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"components",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.ActionRow": {
|
|
"type": "number",
|
|
"const": 1
|
|
},
|
|
"ButtonComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.Button"
|
|
},
|
|
"style": {
|
|
"$ref": "#/definitions/ButtonStyle"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"sku_id": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"style",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.Button": {
|
|
"type": "number",
|
|
"const": 2
|
|
},
|
|
"ButtonStyle": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6
|
|
]
|
|
},
|
|
"SelectMenuComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": [
|
|
3,
|
|
5,
|
|
6,
|
|
7,
|
|
8
|
|
],
|
|
"type": "number"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_types": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
},
|
|
"default_values": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuDefaultOption"
|
|
}
|
|
},
|
|
"min_values": {
|
|
"type": "integer"
|
|
},
|
|
"max_values": {
|
|
"type": "integer"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"type"
|
|
]
|
|
},
|
|
"SelectMenuDefaultOption": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"channel",
|
|
"role",
|
|
"user"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"type"
|
|
]
|
|
},
|
|
"StringSelectMenuComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.StringSelect"
|
|
},
|
|
"options": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuOption"
|
|
}
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_types": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
},
|
|
"default_values": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuDefaultOption"
|
|
}
|
|
},
|
|
"min_values": {
|
|
"type": "integer"
|
|
},
|
|
"max_values": {
|
|
"type": "integer"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"options",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.StringSelect": {
|
|
"type": "number",
|
|
"const": 3
|
|
},
|
|
"SelectMenuOption": {
|
|
"type": "object",
|
|
"properties": {
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"default": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"label",
|
|
"value"
|
|
]
|
|
},
|
|
"TextInputComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.TextInput"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"style": {
|
|
"$ref": "#/definitions/TextInputStyle"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"min_length": {
|
|
"type": "integer"
|
|
},
|
|
"max_length": {
|
|
"type": "integer"
|
|
},
|
|
"required": {
|
|
"type": "boolean"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"label",
|
|
"style",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.TextInput": {
|
|
"type": "number",
|
|
"const": 4
|
|
},
|
|
"TextInputStyle": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"Poll": {
|
|
"type": "object",
|
|
"properties": {
|
|
"question": {
|
|
"$ref": "#/definitions/PollMedia"
|
|
},
|
|
"answers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/PollAnswer"
|
|
}
|
|
},
|
|
"expiry": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"allow_multiselect": {
|
|
"type": "boolean"
|
|
},
|
|
"results": {
|
|
"$ref": "#/definitions/PollResult"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"allow_multiselect",
|
|
"answers",
|
|
"expiry",
|
|
"question"
|
|
]
|
|
},
|
|
"PollMedia": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"PollAnswer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"answer_id": {
|
|
"type": "string"
|
|
},
|
|
"poll_media": {
|
|
"$ref": "#/definitions/PollMedia"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"poll_media"
|
|
]
|
|
},
|
|
"PollResult": {
|
|
"type": "object",
|
|
"properties": {
|
|
"is_finalized": {
|
|
"type": "boolean"
|
|
},
|
|
"answer_counts": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/PollAnswerCount"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"answer_counts",
|
|
"is_finalized"
|
|
]
|
|
},
|
|
"PollAnswerCount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"count": {
|
|
"type": "integer"
|
|
},
|
|
"me_voted": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"count",
|
|
"id",
|
|
"me_voted"
|
|
]
|
|
},
|
|
"VoiceState": {
|
|
"type": "object",
|
|
"properties": {
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"member": {
|
|
"$ref": "#/definitions/Member"
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
},
|
|
"token": {
|
|
"type": "string"
|
|
},
|
|
"deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"mute": {
|
|
"type": "boolean"
|
|
},
|
|
"self_deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"self_mute": {
|
|
"type": "boolean"
|
|
},
|
|
"self_stream": {
|
|
"type": "boolean"
|
|
},
|
|
"self_video": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress": {
|
|
"type": "boolean"
|
|
},
|
|
"request_to_speak_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"deaf",
|
|
"guild_id",
|
|
"id",
|
|
"member",
|
|
"mute",
|
|
"self_deaf",
|
|
"self_mute",
|
|
"self_video",
|
|
"session_id",
|
|
"suppress",
|
|
"token",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"ReadState": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"public_ack": {
|
|
"type": "string"
|
|
},
|
|
"notifications_cursor": {
|
|
"type": "string"
|
|
},
|
|
"last_pin_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"mention_count": {
|
|
"type": "integer"
|
|
},
|
|
"manual": {
|
|
"type": "boolean"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"id",
|
|
"last_message_id",
|
|
"manual",
|
|
"mention_count",
|
|
"notifications_cursor",
|
|
"public_ack",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Ban": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"executor_id": {
|
|
"type": "string"
|
|
},
|
|
"executor": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"ip": {
|
|
"type": "string"
|
|
},
|
|
"reason": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"executor",
|
|
"executor_id",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"ip",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Template": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"usage_count": {
|
|
"type": "integer"
|
|
},
|
|
"creator_id": {
|
|
"type": "string"
|
|
},
|
|
"creator": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"updated_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"source_guild_id": {
|
|
"type": "string"
|
|
},
|
|
"source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"serialized_source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"code",
|
|
"created_at",
|
|
"creator",
|
|
"creator_id",
|
|
"id",
|
|
"name",
|
|
"serialized_source_guild",
|
|
"source_guild",
|
|
"source_guild_id",
|
|
"updated_at"
|
|
]
|
|
},
|
|
"Emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"animated": {
|
|
"type": "boolean"
|
|
},
|
|
"available": {
|
|
"type": "boolean"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"managed": {
|
|
"type": "boolean"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"require_colons": {
|
|
"type": "boolean"
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"groups": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"available",
|
|
"groups",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"managed",
|
|
"name",
|
|
"require_colons",
|
|
"roles",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"GuildWelcomeScreen": {
|
|
"type": "object",
|
|
"properties": {
|
|
"enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"welcome_channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"emoji_id": {
|
|
"type": "string"
|
|
},
|
|
"emoji_name": {
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_id",
|
|
"description"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"description",
|
|
"enabled",
|
|
"welcome_channels"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"APIDMChannelArray": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/DmChannelDTO"
|
|
},
|
|
"definitions": {
|
|
"DmChannelDTO": {
|
|
"type": "object",
|
|
"properties": {
|
|
"icon": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"last_message_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"name": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"origin_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"owner_id": {
|
|
"type": "string"
|
|
},
|
|
"recipients": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/MinimalPublicUserDTO"
|
|
}
|
|
},
|
|
"type": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"icon",
|
|
"id",
|
|
"last_message_id",
|
|
"name",
|
|
"origin_channel_id",
|
|
"recipients",
|
|
"type"
|
|
]
|
|
},
|
|
"MinimalPublicUserDTO": {
|
|
"type": "object",
|
|
"properties": {
|
|
"avatar": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"badge_ids": {
|
|
"anyOf": [
|
|
{
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"discriminator",
|
|
"id",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"APIBackupCodeArray": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/BackupCode"
|
|
},
|
|
"definitions": {
|
|
"BackupCode": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"code": {
|
|
"type": "string"
|
|
},
|
|
"consumed": {
|
|
"type": "boolean"
|
|
},
|
|
"expired": {
|
|
"type": "boolean"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"code",
|
|
"consumed",
|
|
"expired",
|
|
"id",
|
|
"user"
|
|
]
|
|
},
|
|
"User": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"theme_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"phone": {
|
|
"type": "string"
|
|
},
|
|
"desktop": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"mobile": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"premium": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_type": {
|
|
"type": "integer"
|
|
},
|
|
"bot": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"bio": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"system": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"nsfw_allowed": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"mfa_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"webauthn_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"totp_secret": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"totp_last_ticket": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"deleted": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"email": {
|
|
"type": "string"
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"public_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"purchased_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"premium_usage_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"rights": {
|
|
"type": "string"
|
|
},
|
|
"sessions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Session"
|
|
}
|
|
},
|
|
"relationships": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Relationship"
|
|
}
|
|
},
|
|
"connected_accounts": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ConnectedAccount"
|
|
}
|
|
},
|
|
"data": {
|
|
"type": "object",
|
|
"properties": {
|
|
"valid_tokens_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"hash": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"valid_tokens_since"
|
|
]
|
|
},
|
|
"fingerprints": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"settings": {
|
|
"$ref": "#/definitions/UserSettings"
|
|
},
|
|
"extended_settings": {
|
|
"type": "string",
|
|
"default": "{}"
|
|
},
|
|
"security_keys": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SecurityKey"
|
|
}
|
|
},
|
|
"badge_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"connected_accounts",
|
|
"created_at",
|
|
"data",
|
|
"deleted",
|
|
"desktop",
|
|
"disabled",
|
|
"discriminator",
|
|
"extended_settings",
|
|
"fingerprints",
|
|
"flags",
|
|
"id",
|
|
"mfa_enabled",
|
|
"mobile",
|
|
"nsfw_allowed",
|
|
"premium",
|
|
"premium_since",
|
|
"premium_type",
|
|
"premium_usage_flags",
|
|
"public_flags",
|
|
"purchased_flags",
|
|
"relationships",
|
|
"rights",
|
|
"security_keys",
|
|
"sessions",
|
|
"system",
|
|
"username",
|
|
"verified",
|
|
"webauthn_enabled"
|
|
]
|
|
},
|
|
"Session": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"client_info": {
|
|
"type": "object",
|
|
"properties": {
|
|
"client": {
|
|
"type": "string"
|
|
},
|
|
"os": {
|
|
"type": "string"
|
|
},
|
|
"version": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"client",
|
|
"os",
|
|
"version"
|
|
]
|
|
},
|
|
"client_status": {
|
|
"$ref": "#/definitions/ClientStatus"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"activities",
|
|
"client_info",
|
|
"client_status",
|
|
"id",
|
|
"session_id",
|
|
"status",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
]
|
|
},
|
|
"ClientStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"desktop": {
|
|
"type": "string"
|
|
},
|
|
"mobile": {
|
|
"type": "string"
|
|
},
|
|
"web": {
|
|
"type": "string"
|
|
},
|
|
"embedded": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Relationship": {
|
|
"type": "object",
|
|
"properties": {
|
|
"from_id": {
|
|
"type": "string"
|
|
},
|
|
"from": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"to_id": {
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"nickname": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/RelationshipType"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"from",
|
|
"from_id",
|
|
"id",
|
|
"to",
|
|
"to_id",
|
|
"type"
|
|
]
|
|
},
|
|
"RelationshipType": {
|
|
"type": "number",
|
|
"enum": [
|
|
4,
|
|
3,
|
|
2,
|
|
1
|
|
]
|
|
},
|
|
"ConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"external_id": {
|
|
"type": "string"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"friend_sync": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"revoked": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"show_activity": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"visibility": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"integrations": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"metadata_": {},
|
|
"metadata_visibility": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"two_way_link": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"token_data": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/ConnectedAccountTokenData"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"external_id",
|
|
"id",
|
|
"name",
|
|
"type",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"ConnectedAccountTokenData": {
|
|
"type": "object",
|
|
"properties": {
|
|
"access_token": {
|
|
"type": "string"
|
|
},
|
|
"token_type": {
|
|
"type": "string"
|
|
},
|
|
"scope": {
|
|
"type": "string"
|
|
},
|
|
"refresh_token": {
|
|
"type": "string"
|
|
},
|
|
"expires_in": {
|
|
"type": "integer"
|
|
},
|
|
"expires_at": {
|
|
"type": "integer"
|
|
},
|
|
"fetched_at": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"access_token",
|
|
"fetched_at"
|
|
]
|
|
},
|
|
"UserSettings": {
|
|
"type": "object",
|
|
"properties": {
|
|
"index": {
|
|
"type": "string"
|
|
},
|
|
"afk_timeout": {
|
|
"type": "integer",
|
|
"default": 3600
|
|
},
|
|
"allow_accessibility_detection": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"animate_emoji": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"animate_stickers": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"contact_sync_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"convert_emoticons": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"custom_status": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/CustomStatus"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"default_guilds_restricted": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"detect_platform_accounts": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"developer_mode": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"disable_games_tab": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"enable_tts_command": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"friend_discovery_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"friend_source_flags": {
|
|
"$ref": "#/definitions/FriendSourceFlags"
|
|
},
|
|
"gateway_connected": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"gif_auto_play": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"guild_folders": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/GuildFolder"
|
|
},
|
|
"default": []
|
|
},
|
|
"guild_positions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"inline_attachment_media": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"inline_embed_media": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"locale": {
|
|
"type": "string",
|
|
"default": "en-US"
|
|
},
|
|
"message_display_compact": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"native_phone_integration_enabled": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"render_embeds": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"render_reactions": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"restricted_guilds": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"show_current_game": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string",
|
|
"default": "online"
|
|
},
|
|
"stream_notifications_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"theme": {
|
|
"enum": [
|
|
"dark",
|
|
"light"
|
|
],
|
|
"type": "string",
|
|
"default": "dark"
|
|
},
|
|
"timezone_offset": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"view_nsfw_guilds": {
|
|
"type": "boolean",
|
|
"default": true
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk_timeout",
|
|
"allow_accessibility_detection",
|
|
"animate_emoji",
|
|
"animate_stickers",
|
|
"contact_sync_enabled",
|
|
"convert_emoticons",
|
|
"custom_status",
|
|
"default_guilds_restricted",
|
|
"detect_platform_accounts",
|
|
"developer_mode",
|
|
"disable_games_tab",
|
|
"enable_tts_command",
|
|
"explicit_content_filter",
|
|
"friend_discovery_flags",
|
|
"friend_source_flags",
|
|
"gateway_connected",
|
|
"gif_auto_play",
|
|
"guild_folders",
|
|
"guild_positions",
|
|
"index",
|
|
"inline_attachment_media",
|
|
"inline_embed_media",
|
|
"locale",
|
|
"message_display_compact",
|
|
"native_phone_integration_enabled",
|
|
"render_embeds",
|
|
"render_reactions",
|
|
"restricted_guilds",
|
|
"show_current_game",
|
|
"status",
|
|
"stream_notifications_enabled",
|
|
"theme",
|
|
"timezone_offset",
|
|
"view_nsfw_guilds"
|
|
]
|
|
},
|
|
"CustomStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"emoji_id": {
|
|
"type": "string"
|
|
},
|
|
"emoji_name": {
|
|
"type": "string"
|
|
},
|
|
"expires_at": {
|
|
"type": "integer"
|
|
},
|
|
"text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"FriendSourceFlags": {
|
|
"type": "object",
|
|
"properties": {
|
|
"all": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"all"
|
|
]
|
|
},
|
|
"GuildFolder": {
|
|
"type": "object",
|
|
"properties": {
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"guild_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"color",
|
|
"guild_ids",
|
|
"id",
|
|
"name"
|
|
]
|
|
},
|
|
"SecurityKey": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"key_id": {
|
|
"type": "string"
|
|
},
|
|
"public_key": {
|
|
"type": "string"
|
|
},
|
|
"counter": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"counter",
|
|
"id",
|
|
"key_id",
|
|
"name",
|
|
"public_key",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"UserUpdateResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"newToken": {
|
|
"type": "string"
|
|
},
|
|
"email": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```",
|
|
"type": "string"
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_type": {
|
|
"type": "integer"
|
|
},
|
|
"theme_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"badge_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"mfa_enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"phone": {
|
|
"type": "string"
|
|
},
|
|
"nsfw_allowed": {
|
|
"type": "boolean"
|
|
},
|
|
"premium": {
|
|
"type": "boolean"
|
|
},
|
|
"purchased_flags": {
|
|
"type": "integer"
|
|
},
|
|
"premium_usage_flags": {
|
|
"type": "integer"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
},
|
|
"settings": {
|
|
"$ref": "#/definitions/UserSettingsSchema"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"disabled",
|
|
"discriminator",
|
|
"flags",
|
|
"id",
|
|
"mfa_enabled",
|
|
"nsfw_allowed",
|
|
"premium",
|
|
"premium_since",
|
|
"premium_type",
|
|
"premium_usage_flags",
|
|
"public_flags",
|
|
"purchased_flags",
|
|
"username",
|
|
"verified"
|
|
],
|
|
"definitions": {
|
|
"UserSettingsSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk_timeout": {
|
|
"type": "integer"
|
|
},
|
|
"allow_accessibility_detection": {
|
|
"type": "boolean"
|
|
},
|
|
"animate_emoji": {
|
|
"type": "boolean"
|
|
},
|
|
"animate_stickers": {
|
|
"type": "integer"
|
|
},
|
|
"contact_sync_enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"convert_emoticons": {
|
|
"type": "boolean"
|
|
},
|
|
"custom_status": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/CustomStatus"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"default_guilds_restricted": {
|
|
"type": "boolean"
|
|
},
|
|
"detect_platform_accounts": {
|
|
"type": "boolean"
|
|
},
|
|
"developer_mode": {
|
|
"type": "boolean"
|
|
},
|
|
"disable_games_tab": {
|
|
"type": "boolean"
|
|
},
|
|
"enable_tts_command": {
|
|
"type": "boolean"
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer"
|
|
},
|
|
"friend_discovery_flags": {
|
|
"type": "integer"
|
|
},
|
|
"friend_source_flags": {
|
|
"$ref": "#/definitions/FriendSourceFlags"
|
|
},
|
|
"gateway_connected": {
|
|
"type": "boolean"
|
|
},
|
|
"gif_auto_play": {
|
|
"type": "boolean"
|
|
},
|
|
"guild_folders": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/GuildFolder"
|
|
}
|
|
},
|
|
"guild_positions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"inline_attachment_media": {
|
|
"type": "boolean"
|
|
},
|
|
"inline_embed_media": {
|
|
"type": "boolean"
|
|
},
|
|
"locale": {
|
|
"type": "string"
|
|
},
|
|
"message_display_compact": {
|
|
"type": "boolean"
|
|
},
|
|
"native_phone_integration_enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"render_embeds": {
|
|
"type": "boolean"
|
|
},
|
|
"render_reactions": {
|
|
"type": "boolean"
|
|
},
|
|
"restricted_guilds": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"show_current_game": {
|
|
"type": "boolean"
|
|
},
|
|
"status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"stream_notifications_enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"theme": {
|
|
"enum": [
|
|
"dark",
|
|
"light"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"timezone_offset": {
|
|
"type": "integer"
|
|
},
|
|
"view_nsfw_guilds": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk_timeout",
|
|
"allow_accessibility_detection",
|
|
"animate_emoji",
|
|
"animate_stickers",
|
|
"contact_sync_enabled",
|
|
"convert_emoticons",
|
|
"custom_status",
|
|
"default_guilds_restricted",
|
|
"detect_platform_accounts",
|
|
"developer_mode",
|
|
"disable_games_tab",
|
|
"enable_tts_command",
|
|
"explicit_content_filter",
|
|
"friend_discovery_flags",
|
|
"friend_source_flags",
|
|
"gateway_connected",
|
|
"gif_auto_play",
|
|
"guild_folders",
|
|
"guild_positions",
|
|
"inline_attachment_media",
|
|
"inline_embed_media",
|
|
"locale",
|
|
"message_display_compact",
|
|
"native_phone_integration_enabled",
|
|
"render_embeds",
|
|
"render_reactions",
|
|
"restricted_guilds",
|
|
"show_current_game",
|
|
"status",
|
|
"stream_notifications_enabled",
|
|
"theme",
|
|
"timezone_offset",
|
|
"view_nsfw_guilds"
|
|
]
|
|
},
|
|
"CustomStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"emoji_id": {
|
|
"type": "string"
|
|
},
|
|
"emoji_name": {
|
|
"type": "string"
|
|
},
|
|
"expires_at": {
|
|
"type": "integer"
|
|
},
|
|
"text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"FriendSourceFlags": {
|
|
"type": "object",
|
|
"properties": {
|
|
"all": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"all"
|
|
]
|
|
},
|
|
"GuildFolder": {
|
|
"type": "object",
|
|
"properties": {
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"guild_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"color",
|
|
"guild_ids",
|
|
"id",
|
|
"name"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"ApplicationDetectableResponse": {
|
|
"type": "array",
|
|
"items": {},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"ApplicationEntitlementsResponse": {
|
|
"type": "array",
|
|
"items": {},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"ApplicationSkusResponse": {
|
|
"type": "array",
|
|
"items": {},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"APIApplicationArray": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Application"
|
|
},
|
|
"definitions": {
|
|
"Application": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"summary": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"type": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true
|
|
},
|
|
"hook": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"bot_public": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"bot_require_code_grant": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"verify_key": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"redirect_uris": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"rpc_application_state": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"store_application_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"verification_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"interactions_endpoint_url": {
|
|
"type": "string"
|
|
},
|
|
"integration_public": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"integration_require_code_grant": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"discoverability_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"discovery_eligibility_flags": {
|
|
"type": "integer",
|
|
"default": 2240
|
|
},
|
|
"bot": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"tags": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"cover_image": {
|
|
"type": "string"
|
|
},
|
|
"install_params": {
|
|
"type": "object",
|
|
"properties": {
|
|
"scopes": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"permissions": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"permissions",
|
|
"scopes"
|
|
]
|
|
},
|
|
"terms_of_service_url": {
|
|
"type": "string"
|
|
},
|
|
"privacy_policy_url": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"custom_install_url": {
|
|
"type": "string"
|
|
},
|
|
"team": {
|
|
"$ref": "#/definitions/Team"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"description",
|
|
"discoverability_state",
|
|
"discovery_eligibility_flags",
|
|
"flags",
|
|
"hook",
|
|
"id",
|
|
"integration_public",
|
|
"integration_require_code_grant",
|
|
"name",
|
|
"owner",
|
|
"redirect_uris",
|
|
"rpc_application_state",
|
|
"store_application_state",
|
|
"summary",
|
|
"verification_state",
|
|
"verify_key"
|
|
]
|
|
},
|
|
"User": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"theme_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"phone": {
|
|
"type": "string"
|
|
},
|
|
"desktop": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"mobile": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"premium": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_type": {
|
|
"type": "integer"
|
|
},
|
|
"bot": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"bio": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"system": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"nsfw_allowed": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"mfa_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"webauthn_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"totp_secret": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"totp_last_ticket": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"deleted": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"email": {
|
|
"type": "string"
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"public_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"purchased_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"premium_usage_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"rights": {
|
|
"type": "string"
|
|
},
|
|
"sessions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Session"
|
|
}
|
|
},
|
|
"relationships": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Relationship"
|
|
}
|
|
},
|
|
"connected_accounts": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ConnectedAccount"
|
|
}
|
|
},
|
|
"data": {
|
|
"type": "object",
|
|
"properties": {
|
|
"valid_tokens_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"hash": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"valid_tokens_since"
|
|
]
|
|
},
|
|
"fingerprints": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"settings": {
|
|
"$ref": "#/definitions/UserSettings"
|
|
},
|
|
"extended_settings": {
|
|
"type": "string",
|
|
"default": "{}"
|
|
},
|
|
"security_keys": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SecurityKey"
|
|
}
|
|
},
|
|
"badge_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"connected_accounts",
|
|
"created_at",
|
|
"data",
|
|
"deleted",
|
|
"desktop",
|
|
"disabled",
|
|
"discriminator",
|
|
"extended_settings",
|
|
"fingerprints",
|
|
"flags",
|
|
"id",
|
|
"mfa_enabled",
|
|
"mobile",
|
|
"nsfw_allowed",
|
|
"premium",
|
|
"premium_since",
|
|
"premium_type",
|
|
"premium_usage_flags",
|
|
"public_flags",
|
|
"purchased_flags",
|
|
"relationships",
|
|
"rights",
|
|
"security_keys",
|
|
"sessions",
|
|
"system",
|
|
"username",
|
|
"verified",
|
|
"webauthn_enabled"
|
|
]
|
|
},
|
|
"Session": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"client_info": {
|
|
"type": "object",
|
|
"properties": {
|
|
"client": {
|
|
"type": "string"
|
|
},
|
|
"os": {
|
|
"type": "string"
|
|
},
|
|
"version": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"client",
|
|
"os",
|
|
"version"
|
|
]
|
|
},
|
|
"client_status": {
|
|
"$ref": "#/definitions/ClientStatus"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"activities",
|
|
"client_info",
|
|
"client_status",
|
|
"id",
|
|
"session_id",
|
|
"status",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
]
|
|
},
|
|
"ClientStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"desktop": {
|
|
"type": "string"
|
|
},
|
|
"mobile": {
|
|
"type": "string"
|
|
},
|
|
"web": {
|
|
"type": "string"
|
|
},
|
|
"embedded": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Relationship": {
|
|
"type": "object",
|
|
"properties": {
|
|
"from_id": {
|
|
"type": "string"
|
|
},
|
|
"from": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"to_id": {
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"nickname": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/RelationshipType"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"from",
|
|
"from_id",
|
|
"id",
|
|
"to",
|
|
"to_id",
|
|
"type"
|
|
]
|
|
},
|
|
"RelationshipType": {
|
|
"type": "number",
|
|
"enum": [
|
|
4,
|
|
3,
|
|
2,
|
|
1
|
|
]
|
|
},
|
|
"ConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"external_id": {
|
|
"type": "string"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"friend_sync": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"revoked": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"show_activity": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"visibility": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"integrations": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"metadata_": {},
|
|
"metadata_visibility": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"two_way_link": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"token_data": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/ConnectedAccountTokenData"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"external_id",
|
|
"id",
|
|
"name",
|
|
"type",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"ConnectedAccountTokenData": {
|
|
"type": "object",
|
|
"properties": {
|
|
"access_token": {
|
|
"type": "string"
|
|
},
|
|
"token_type": {
|
|
"type": "string"
|
|
},
|
|
"scope": {
|
|
"type": "string"
|
|
},
|
|
"refresh_token": {
|
|
"type": "string"
|
|
},
|
|
"expires_in": {
|
|
"type": "integer"
|
|
},
|
|
"expires_at": {
|
|
"type": "integer"
|
|
},
|
|
"fetched_at": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"access_token",
|
|
"fetched_at"
|
|
]
|
|
},
|
|
"UserSettings": {
|
|
"type": "object",
|
|
"properties": {
|
|
"index": {
|
|
"type": "string"
|
|
},
|
|
"afk_timeout": {
|
|
"type": "integer",
|
|
"default": 3600
|
|
},
|
|
"allow_accessibility_detection": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"animate_emoji": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"animate_stickers": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"contact_sync_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"convert_emoticons": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"custom_status": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/CustomStatus"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"default_guilds_restricted": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"detect_platform_accounts": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"developer_mode": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"disable_games_tab": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"enable_tts_command": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"friend_discovery_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"friend_source_flags": {
|
|
"$ref": "#/definitions/FriendSourceFlags"
|
|
},
|
|
"gateway_connected": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"gif_auto_play": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"guild_folders": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/GuildFolder"
|
|
},
|
|
"default": []
|
|
},
|
|
"guild_positions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"inline_attachment_media": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"inline_embed_media": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"locale": {
|
|
"type": "string",
|
|
"default": "en-US"
|
|
},
|
|
"message_display_compact": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"native_phone_integration_enabled": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"render_embeds": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"render_reactions": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"restricted_guilds": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"show_current_game": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string",
|
|
"default": "online"
|
|
},
|
|
"stream_notifications_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"theme": {
|
|
"enum": [
|
|
"dark",
|
|
"light"
|
|
],
|
|
"type": "string",
|
|
"default": "dark"
|
|
},
|
|
"timezone_offset": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"view_nsfw_guilds": {
|
|
"type": "boolean",
|
|
"default": true
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk_timeout",
|
|
"allow_accessibility_detection",
|
|
"animate_emoji",
|
|
"animate_stickers",
|
|
"contact_sync_enabled",
|
|
"convert_emoticons",
|
|
"custom_status",
|
|
"default_guilds_restricted",
|
|
"detect_platform_accounts",
|
|
"developer_mode",
|
|
"disable_games_tab",
|
|
"enable_tts_command",
|
|
"explicit_content_filter",
|
|
"friend_discovery_flags",
|
|
"friend_source_flags",
|
|
"gateway_connected",
|
|
"gif_auto_play",
|
|
"guild_folders",
|
|
"guild_positions",
|
|
"index",
|
|
"inline_attachment_media",
|
|
"inline_embed_media",
|
|
"locale",
|
|
"message_display_compact",
|
|
"native_phone_integration_enabled",
|
|
"render_embeds",
|
|
"render_reactions",
|
|
"restricted_guilds",
|
|
"show_current_game",
|
|
"status",
|
|
"stream_notifications_enabled",
|
|
"theme",
|
|
"timezone_offset",
|
|
"view_nsfw_guilds"
|
|
]
|
|
},
|
|
"CustomStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"emoji_id": {
|
|
"type": "string"
|
|
},
|
|
"emoji_name": {
|
|
"type": "string"
|
|
},
|
|
"expires_at": {
|
|
"type": "integer"
|
|
},
|
|
"text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"FriendSourceFlags": {
|
|
"type": "object",
|
|
"properties": {
|
|
"all": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"all"
|
|
]
|
|
},
|
|
"GuildFolder": {
|
|
"type": "object",
|
|
"properties": {
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"guild_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"color",
|
|
"guild_ids",
|
|
"id",
|
|
"name"
|
|
]
|
|
},
|
|
"SecurityKey": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"key_id": {
|
|
"type": "string"
|
|
},
|
|
"public_key": {
|
|
"type": "string"
|
|
},
|
|
"counter": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"counter",
|
|
"id",
|
|
"key_id",
|
|
"name",
|
|
"public_key",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Guild": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"afk_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"afk_timeout": {
|
|
"type": "integer"
|
|
},
|
|
"bans": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Ban"
|
|
}
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"default_message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"discovery_splash": {
|
|
"type": "string"
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer"
|
|
},
|
|
"features": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"primary_category_id": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"large": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"max_members": {
|
|
"type": "integer"
|
|
},
|
|
"max_presences": {
|
|
"type": "integer"
|
|
},
|
|
"max_video_channel_users": {
|
|
"type": "integer"
|
|
},
|
|
"member_count": {
|
|
"type": "integer"
|
|
},
|
|
"presence_count": {
|
|
"type": "integer"
|
|
},
|
|
"members": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Member"
|
|
}
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Channel"
|
|
}
|
|
},
|
|
"template_id": {
|
|
"type": "string"
|
|
},
|
|
"template": {
|
|
"$ref": "#/definitions/Template"
|
|
},
|
|
"emojis": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Emoji"
|
|
}
|
|
},
|
|
"stickers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"invites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Invite"
|
|
}
|
|
},
|
|
"voice_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/VoiceState"
|
|
}
|
|
},
|
|
"webhooks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Webhook"
|
|
}
|
|
},
|
|
"mfa_level": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"owner_id": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"preferred_locale": {
|
|
"type": "string"
|
|
},
|
|
"premium_subscription_count": {
|
|
"type": "integer"
|
|
},
|
|
"premium_tier": {
|
|
"type": "integer"
|
|
},
|
|
"public_updates_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"public_updates_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"rules_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"rules_channel": {
|
|
"type": "string"
|
|
},
|
|
"region": {
|
|
"type": "string"
|
|
},
|
|
"splash": {
|
|
"type": "string"
|
|
},
|
|
"system_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"system_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"system_channel_flags": {
|
|
"type": "integer"
|
|
},
|
|
"unavailable": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"verification_level": {
|
|
"type": "integer"
|
|
},
|
|
"welcome_screen": {
|
|
"$ref": "#/definitions/GuildWelcomeScreen",
|
|
"description": "DEPRECATED: Look at the new Guild onboarding screens."
|
|
},
|
|
"widget_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"widget_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"widget_enabled": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"nsfw_level": {
|
|
"type": "integer"
|
|
},
|
|
"nsfw": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"parent": {
|
|
"type": "string"
|
|
},
|
|
"permissions": {
|
|
"type": "integer"
|
|
},
|
|
"premium_progress_bar_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"channel_ordering": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bans",
|
|
"channel_ordering",
|
|
"channels",
|
|
"emojis",
|
|
"features",
|
|
"id",
|
|
"invites",
|
|
"members",
|
|
"name",
|
|
"nsfw",
|
|
"premium_progress_bar_enabled",
|
|
"public_updates_channel_id",
|
|
"roles",
|
|
"stickers",
|
|
"template",
|
|
"unavailable",
|
|
"voice_states",
|
|
"webhooks",
|
|
"welcome_screen",
|
|
"widget_enabled"
|
|
]
|
|
},
|
|
"Channel": {
|
|
"type": "object",
|
|
"properties": {
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ChannelType"
|
|
},
|
|
"recipients": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Recipient"
|
|
}
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"parent_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"parent": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"owner_id": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"last_pin_timestamp": {
|
|
"type": "integer"
|
|
},
|
|
"default_auto_archive_duration": {
|
|
"type": "integer"
|
|
},
|
|
"permission_overwrites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwrite"
|
|
}
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
},
|
|
"bitrate": {
|
|
"type": "integer"
|
|
},
|
|
"user_limit": {
|
|
"type": "integer"
|
|
},
|
|
"nsfw": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"topic": {
|
|
"type": "string"
|
|
},
|
|
"invites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Invite"
|
|
}
|
|
},
|
|
"retention_policy_id": {
|
|
"type": "string"
|
|
},
|
|
"messages": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Message"
|
|
}
|
|
},
|
|
"voice_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/VoiceState"
|
|
}
|
|
},
|
|
"read_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ReadState"
|
|
}
|
|
},
|
|
"webhooks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Webhook"
|
|
}
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"position": {
|
|
"description": "Must be calculated Channel.calculatePosition",
|
|
"type": "integer"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"created_at",
|
|
"flags",
|
|
"id",
|
|
"nsfw",
|
|
"owner",
|
|
"parent_id",
|
|
"position",
|
|
"type"
|
|
]
|
|
},
|
|
"ChannelType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
33,
|
|
34,
|
|
35,
|
|
64,
|
|
255
|
|
]
|
|
},
|
|
"Recipient": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"closed": {
|
|
"type": "boolean"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"closed",
|
|
"id",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"ChannelPermissionOverwrite": {
|
|
"type": "object",
|
|
"properties": {
|
|
"allow": {
|
|
"type": "string"
|
|
},
|
|
"deny": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"allow",
|
|
"deny",
|
|
"id",
|
|
"type"
|
|
]
|
|
},
|
|
"ChannelPermissionOverwriteType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"Invite": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "string"
|
|
},
|
|
"temporary": {
|
|
"type": "boolean"
|
|
},
|
|
"uses": {
|
|
"type": "integer"
|
|
},
|
|
"max_uses": {
|
|
"type": "integer"
|
|
},
|
|
"max_age": {
|
|
"type": "integer"
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"expires_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"inviter_id": {
|
|
"type": "string"
|
|
},
|
|
"inviter": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"target_user_id": {
|
|
"type": "string"
|
|
},
|
|
"target_user": {
|
|
"type": "string"
|
|
},
|
|
"target_user_type": {
|
|
"type": "integer"
|
|
},
|
|
"vanity_url": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"code",
|
|
"created_at",
|
|
"flags",
|
|
"guild",
|
|
"guild_id",
|
|
"inviter",
|
|
"max_age",
|
|
"max_uses",
|
|
"target_user_id",
|
|
"temporary",
|
|
"uses"
|
|
]
|
|
},
|
|
"Message": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"author_id": {
|
|
"type": "string"
|
|
},
|
|
"author": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"member_id": {
|
|
"type": "string"
|
|
},
|
|
"member": {
|
|
"$ref": "#/definitions/Member"
|
|
},
|
|
"webhook_id": {
|
|
"type": "string"
|
|
},
|
|
"webhook": {
|
|
"$ref": "#/definitions/Webhook"
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"application": {
|
|
"$ref": "#/definitions/Application"
|
|
},
|
|
"content": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"edited_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"tts": {
|
|
"type": "boolean"
|
|
},
|
|
"mention_everyone": {
|
|
"type": "boolean"
|
|
},
|
|
"mentions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/User"
|
|
}
|
|
},
|
|
"mention_roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"mention_channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Channel"
|
|
}
|
|
},
|
|
"sticker_items": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"attachments": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Attachment"
|
|
}
|
|
},
|
|
"embeds": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Embed"
|
|
}
|
|
},
|
|
"reactions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Reaction"
|
|
}
|
|
},
|
|
"nonce": {
|
|
"type": "string"
|
|
},
|
|
"pinned_at": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"pinned": {
|
|
"type": "boolean"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/MessageType"
|
|
},
|
|
"activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "integer"
|
|
},
|
|
"party_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"party_id",
|
|
"type"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"message_reference": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"message_id"
|
|
]
|
|
},
|
|
"referenced_message": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/Message"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"interaction": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/InteractionType"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"type"
|
|
]
|
|
},
|
|
"interaction_metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/InteractionType"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"authorizing_integration_owners": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"command_type": {
|
|
"$ref": "#/definitions/ApplicationCommandType"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"authorizing_integration_owners",
|
|
"command_type",
|
|
"id",
|
|
"name",
|
|
"type",
|
|
"user_id"
|
|
]
|
|
},
|
|
"components": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ActionRowComponent"
|
|
}
|
|
},
|
|
"poll": {
|
|
"$ref": "#/definitions/Poll"
|
|
},
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"embeds",
|
|
"flags",
|
|
"id",
|
|
"mention_channels",
|
|
"mention_roles",
|
|
"mentions",
|
|
"pinned",
|
|
"reactions",
|
|
"timestamp",
|
|
"type"
|
|
]
|
|
},
|
|
"Member": {
|
|
"type": "object",
|
|
"properties": {
|
|
"index": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"nick": {
|
|
"type": "string"
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"joined_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"premium_since": {
|
|
"type": "integer"
|
|
},
|
|
"deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"mute": {
|
|
"type": "boolean"
|
|
},
|
|
"pending": {
|
|
"type": "boolean"
|
|
},
|
|
"settings": {
|
|
"$ref": "#/definitions/UserGuildSettings"
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"joined_by": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"theme_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"communication_disabled_until": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"banner",
|
|
"bio",
|
|
"communication_disabled_until",
|
|
"deaf",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"index",
|
|
"joined_at",
|
|
"joined_by",
|
|
"mute",
|
|
"pending",
|
|
"roles",
|
|
"settings",
|
|
"user"
|
|
]
|
|
},
|
|
"Role": {
|
|
"type": "object",
|
|
"properties": {
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"hoist": {
|
|
"type": "boolean"
|
|
},
|
|
"managed": {
|
|
"type": "boolean"
|
|
},
|
|
"mentionable": {
|
|
"type": "boolean"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"permissions": {
|
|
"type": "string"
|
|
},
|
|
"position": {
|
|
"type": "integer"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"unicode_emoji": {
|
|
"type": "string"
|
|
},
|
|
"tags": {
|
|
"type": "object",
|
|
"properties": {
|
|
"bot_id": {
|
|
"type": "string"
|
|
},
|
|
"integration_id": {
|
|
"type": "string"
|
|
},
|
|
"premium_subscriber": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"colors": {
|
|
"$ref": "#/definitions/RoleColors"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"color",
|
|
"colors",
|
|
"flags",
|
|
"guild",
|
|
"guild_id",
|
|
"hoist",
|
|
"id",
|
|
"managed",
|
|
"mentionable",
|
|
"name",
|
|
"permissions",
|
|
"position"
|
|
]
|
|
},
|
|
"RoleColors": {
|
|
"type": "object",
|
|
"properties": {
|
|
"primary_color": {
|
|
"type": "integer"
|
|
},
|
|
"secondary_color": {
|
|
"type": "integer"
|
|
},
|
|
"tertiary_color": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"primary_color"
|
|
]
|
|
},
|
|
"UserGuildSettings": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_overrides": {
|
|
"anyOf": [
|
|
{
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"$ref": "#/definitions/ChannelOverride"
|
|
}
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mobile_push": {
|
|
"type": "boolean"
|
|
},
|
|
"mute_config": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress_everyone": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress_roles": {
|
|
"type": "boolean"
|
|
},
|
|
"version": {
|
|
"type": "integer"
|
|
},
|
|
"guild_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"mute_scheduled_events": {
|
|
"type": "boolean"
|
|
},
|
|
"hide_muted_channels": {
|
|
"type": "boolean"
|
|
},
|
|
"notify_highlights": {
|
|
"type": "integer",
|
|
"const": 0
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_overrides",
|
|
"flags",
|
|
"guild_id",
|
|
"hide_muted_channels",
|
|
"message_notifications",
|
|
"mobile_push",
|
|
"mute_config",
|
|
"mute_scheduled_events",
|
|
"muted",
|
|
"notify_highlights",
|
|
"suppress_everyone",
|
|
"suppress_roles",
|
|
"version"
|
|
]
|
|
},
|
|
"ChannelOverride": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_id",
|
|
"message_notifications",
|
|
"mute_config",
|
|
"muted"
|
|
]
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"Webhook": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/WebhookType"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"token": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"application": {
|
|
"$ref": "#/definitions/Application"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"source_guild_id": {
|
|
"type": "string"
|
|
},
|
|
"source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"source_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"source_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"application",
|
|
"application_id",
|
|
"avatar",
|
|
"channel",
|
|
"channel_id",
|
|
"id",
|
|
"name",
|
|
"source_channel",
|
|
"source_channel_id",
|
|
"type",
|
|
"url",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"WebhookType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3
|
|
]
|
|
},
|
|
"Sticker": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"available": {
|
|
"type": "boolean"
|
|
},
|
|
"tags": {
|
|
"type": "string"
|
|
},
|
|
"pack_id": {
|
|
"type": "string"
|
|
},
|
|
"pack": {
|
|
"$ref": "#/definitions/StickerPack"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/StickerType"
|
|
},
|
|
"format_type": {
|
|
"$ref": "#/definitions/StickerFormatType"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"format_type",
|
|
"id",
|
|
"name",
|
|
"pack",
|
|
"type"
|
|
]
|
|
},
|
|
"StickerPack": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"banner_asset_id": {
|
|
"type": "string"
|
|
},
|
|
"stickers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"cover_sticker_id": {
|
|
"type": "string"
|
|
},
|
|
"cover_sticker": {
|
|
"$ref": "#/definitions/Sticker"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"stickers"
|
|
]
|
|
},
|
|
"StickerType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"StickerFormatType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4
|
|
]
|
|
},
|
|
"Attachment": {
|
|
"type": "object",
|
|
"properties": {
|
|
"filename": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "integer"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
},
|
|
"content_type": {
|
|
"type": "string"
|
|
},
|
|
"message_id": {
|
|
"type": "string"
|
|
},
|
|
"message": {
|
|
"$ref": "#/definitions/Message"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"filename",
|
|
"id",
|
|
"message",
|
|
"message_id",
|
|
"proxy_url",
|
|
"size",
|
|
"url"
|
|
]
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"Reaction": {
|
|
"type": "object",
|
|
"properties": {
|
|
"count": {
|
|
"type": "integer"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"user_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"count",
|
|
"emoji",
|
|
"user_ids"
|
|
]
|
|
},
|
|
"PartialEmoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name"
|
|
]
|
|
},
|
|
"MessageType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
16,
|
|
19,
|
|
20,
|
|
41,
|
|
42,
|
|
43,
|
|
50,
|
|
63,
|
|
255
|
|
]
|
|
},
|
|
"InteractionType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5
|
|
]
|
|
},
|
|
"ApplicationCommandType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4
|
|
]
|
|
},
|
|
"ActionRowComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.ActionRow"
|
|
},
|
|
"components": {
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/ButtonComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/SelectMenuComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/StringSelectMenuComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/TextInputComponent"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"components",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.ActionRow": {
|
|
"type": "number",
|
|
"const": 1
|
|
},
|
|
"ButtonComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.Button"
|
|
},
|
|
"style": {
|
|
"$ref": "#/definitions/ButtonStyle"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"sku_id": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"style",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.Button": {
|
|
"type": "number",
|
|
"const": 2
|
|
},
|
|
"ButtonStyle": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6
|
|
]
|
|
},
|
|
"SelectMenuComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": [
|
|
3,
|
|
5,
|
|
6,
|
|
7,
|
|
8
|
|
],
|
|
"type": "number"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_types": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
},
|
|
"default_values": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuDefaultOption"
|
|
}
|
|
},
|
|
"min_values": {
|
|
"type": "integer"
|
|
},
|
|
"max_values": {
|
|
"type": "integer"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"type"
|
|
]
|
|
},
|
|
"SelectMenuDefaultOption": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"channel",
|
|
"role",
|
|
"user"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"type"
|
|
]
|
|
},
|
|
"StringSelectMenuComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.StringSelect"
|
|
},
|
|
"options": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuOption"
|
|
}
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_types": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
},
|
|
"default_values": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuDefaultOption"
|
|
}
|
|
},
|
|
"min_values": {
|
|
"type": "integer"
|
|
},
|
|
"max_values": {
|
|
"type": "integer"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"options",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.StringSelect": {
|
|
"type": "number",
|
|
"const": 3
|
|
},
|
|
"SelectMenuOption": {
|
|
"type": "object",
|
|
"properties": {
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"default": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"label",
|
|
"value"
|
|
]
|
|
},
|
|
"TextInputComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.TextInput"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"style": {
|
|
"$ref": "#/definitions/TextInputStyle"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"min_length": {
|
|
"type": "integer"
|
|
},
|
|
"max_length": {
|
|
"type": "integer"
|
|
},
|
|
"required": {
|
|
"type": "boolean"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"label",
|
|
"style",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.TextInput": {
|
|
"type": "number",
|
|
"const": 4
|
|
},
|
|
"TextInputStyle": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"Poll": {
|
|
"type": "object",
|
|
"properties": {
|
|
"question": {
|
|
"$ref": "#/definitions/PollMedia"
|
|
},
|
|
"answers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/PollAnswer"
|
|
}
|
|
},
|
|
"expiry": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"allow_multiselect": {
|
|
"type": "boolean"
|
|
},
|
|
"results": {
|
|
"$ref": "#/definitions/PollResult"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"allow_multiselect",
|
|
"answers",
|
|
"expiry",
|
|
"question"
|
|
]
|
|
},
|
|
"PollMedia": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"PollAnswer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"answer_id": {
|
|
"type": "string"
|
|
},
|
|
"poll_media": {
|
|
"$ref": "#/definitions/PollMedia"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"poll_media"
|
|
]
|
|
},
|
|
"PollResult": {
|
|
"type": "object",
|
|
"properties": {
|
|
"is_finalized": {
|
|
"type": "boolean"
|
|
},
|
|
"answer_counts": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/PollAnswerCount"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"answer_counts",
|
|
"is_finalized"
|
|
]
|
|
},
|
|
"PollAnswerCount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"count": {
|
|
"type": "integer"
|
|
},
|
|
"me_voted": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"count",
|
|
"id",
|
|
"me_voted"
|
|
]
|
|
},
|
|
"VoiceState": {
|
|
"type": "object",
|
|
"properties": {
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"member": {
|
|
"$ref": "#/definitions/Member"
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
},
|
|
"token": {
|
|
"type": "string"
|
|
},
|
|
"deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"mute": {
|
|
"type": "boolean"
|
|
},
|
|
"self_deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"self_mute": {
|
|
"type": "boolean"
|
|
},
|
|
"self_stream": {
|
|
"type": "boolean"
|
|
},
|
|
"self_video": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress": {
|
|
"type": "boolean"
|
|
},
|
|
"request_to_speak_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"deaf",
|
|
"guild_id",
|
|
"id",
|
|
"member",
|
|
"mute",
|
|
"self_deaf",
|
|
"self_mute",
|
|
"self_video",
|
|
"session_id",
|
|
"suppress",
|
|
"token",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"ReadState": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"public_ack": {
|
|
"type": "string"
|
|
},
|
|
"notifications_cursor": {
|
|
"type": "string"
|
|
},
|
|
"last_pin_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"mention_count": {
|
|
"type": "integer"
|
|
},
|
|
"manual": {
|
|
"type": "boolean"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"id",
|
|
"last_message_id",
|
|
"manual",
|
|
"mention_count",
|
|
"notifications_cursor",
|
|
"public_ack",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Ban": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"executor_id": {
|
|
"type": "string"
|
|
},
|
|
"executor": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"ip": {
|
|
"type": "string"
|
|
},
|
|
"reason": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"executor",
|
|
"executor_id",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"ip",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Template": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"usage_count": {
|
|
"type": "integer"
|
|
},
|
|
"creator_id": {
|
|
"type": "string"
|
|
},
|
|
"creator": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"updated_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"source_guild_id": {
|
|
"type": "string"
|
|
},
|
|
"source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"serialized_source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"code",
|
|
"created_at",
|
|
"creator",
|
|
"creator_id",
|
|
"id",
|
|
"name",
|
|
"serialized_source_guild",
|
|
"source_guild",
|
|
"source_guild_id",
|
|
"updated_at"
|
|
]
|
|
},
|
|
"Emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"animated": {
|
|
"type": "boolean"
|
|
},
|
|
"available": {
|
|
"type": "boolean"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"managed": {
|
|
"type": "boolean"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"require_colons": {
|
|
"type": "boolean"
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"groups": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"available",
|
|
"groups",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"managed",
|
|
"name",
|
|
"require_colons",
|
|
"roles",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"GuildWelcomeScreen": {
|
|
"type": "object",
|
|
"properties": {
|
|
"enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"welcome_channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"emoji_id": {
|
|
"type": "string"
|
|
},
|
|
"emoji_name": {
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_id",
|
|
"description"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"description",
|
|
"enabled",
|
|
"welcome_channels"
|
|
]
|
|
},
|
|
"Team": {
|
|
"type": "object",
|
|
"properties": {
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"members": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/TeamMember"
|
|
}
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"owner_user_id": {
|
|
"type": "string"
|
|
},
|
|
"owner_user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"members",
|
|
"name",
|
|
"owner_user",
|
|
"owner_user_id"
|
|
]
|
|
},
|
|
"TeamMember": {
|
|
"type": "object",
|
|
"properties": {
|
|
"membership_state": {
|
|
"$ref": "#/definitions/TeamMemberState"
|
|
},
|
|
"permissions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"role": {
|
|
"$ref": "#/definitions/TeamMemberRole"
|
|
},
|
|
"team_id": {
|
|
"type": "string"
|
|
},
|
|
"team": {
|
|
"$ref": "#/definitions/Team"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"membership_state",
|
|
"permissions",
|
|
"role",
|
|
"team",
|
|
"team_id",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"TeamMemberState": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"TeamMemberRole": {
|
|
"type": "string",
|
|
"enum": [
|
|
"admin",
|
|
"developer",
|
|
"read_only"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"APIBansArray": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/GuildBansResponse"
|
|
},
|
|
"definitions": {
|
|
"GuildBansResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"reason": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"user": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"avatar",
|
|
"discriminator",
|
|
"id",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"reason",
|
|
"user"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"APIInviteArray": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Invite"
|
|
},
|
|
"definitions": {
|
|
"Invite": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "string"
|
|
},
|
|
"temporary": {
|
|
"type": "boolean"
|
|
},
|
|
"uses": {
|
|
"type": "integer"
|
|
},
|
|
"max_uses": {
|
|
"type": "integer"
|
|
},
|
|
"max_age": {
|
|
"type": "integer"
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"expires_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"inviter_id": {
|
|
"type": "string"
|
|
},
|
|
"inviter": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"target_user_id": {
|
|
"type": "string"
|
|
},
|
|
"target_user": {
|
|
"type": "string"
|
|
},
|
|
"target_user_type": {
|
|
"type": "integer"
|
|
},
|
|
"vanity_url": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"code",
|
|
"created_at",
|
|
"flags",
|
|
"guild",
|
|
"guild_id",
|
|
"inviter",
|
|
"max_age",
|
|
"max_uses",
|
|
"target_user_id",
|
|
"temporary",
|
|
"uses"
|
|
]
|
|
},
|
|
"Guild": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"afk_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"afk_timeout": {
|
|
"type": "integer"
|
|
},
|
|
"bans": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Ban"
|
|
}
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"default_message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"discovery_splash": {
|
|
"type": "string"
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer"
|
|
},
|
|
"features": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"primary_category_id": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"large": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"max_members": {
|
|
"type": "integer"
|
|
},
|
|
"max_presences": {
|
|
"type": "integer"
|
|
},
|
|
"max_video_channel_users": {
|
|
"type": "integer"
|
|
},
|
|
"member_count": {
|
|
"type": "integer"
|
|
},
|
|
"presence_count": {
|
|
"type": "integer"
|
|
},
|
|
"members": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Member"
|
|
}
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Channel"
|
|
}
|
|
},
|
|
"template_id": {
|
|
"type": "string"
|
|
},
|
|
"template": {
|
|
"$ref": "#/definitions/Template"
|
|
},
|
|
"emojis": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Emoji"
|
|
}
|
|
},
|
|
"stickers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"invites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Invite"
|
|
}
|
|
},
|
|
"voice_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/VoiceState"
|
|
}
|
|
},
|
|
"webhooks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Webhook"
|
|
}
|
|
},
|
|
"mfa_level": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"owner_id": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"preferred_locale": {
|
|
"type": "string"
|
|
},
|
|
"premium_subscription_count": {
|
|
"type": "integer"
|
|
},
|
|
"premium_tier": {
|
|
"type": "integer"
|
|
},
|
|
"public_updates_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"public_updates_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"rules_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"rules_channel": {
|
|
"type": "string"
|
|
},
|
|
"region": {
|
|
"type": "string"
|
|
},
|
|
"splash": {
|
|
"type": "string"
|
|
},
|
|
"system_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"system_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"system_channel_flags": {
|
|
"type": "integer"
|
|
},
|
|
"unavailable": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"verification_level": {
|
|
"type": "integer"
|
|
},
|
|
"welcome_screen": {
|
|
"$ref": "#/definitions/GuildWelcomeScreen",
|
|
"description": "DEPRECATED: Look at the new Guild onboarding screens."
|
|
},
|
|
"widget_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"widget_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"widget_enabled": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"nsfw_level": {
|
|
"type": "integer"
|
|
},
|
|
"nsfw": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"parent": {
|
|
"type": "string"
|
|
},
|
|
"permissions": {
|
|
"type": "integer"
|
|
},
|
|
"premium_progress_bar_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"channel_ordering": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bans",
|
|
"channel_ordering",
|
|
"channels",
|
|
"emojis",
|
|
"features",
|
|
"id",
|
|
"invites",
|
|
"members",
|
|
"name",
|
|
"nsfw",
|
|
"premium_progress_bar_enabled",
|
|
"public_updates_channel_id",
|
|
"roles",
|
|
"stickers",
|
|
"template",
|
|
"unavailable",
|
|
"voice_states",
|
|
"webhooks",
|
|
"welcome_screen",
|
|
"widget_enabled"
|
|
]
|
|
},
|
|
"Channel": {
|
|
"type": "object",
|
|
"properties": {
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ChannelType"
|
|
},
|
|
"recipients": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Recipient"
|
|
}
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"parent_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"parent": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"owner_id": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"last_pin_timestamp": {
|
|
"type": "integer"
|
|
},
|
|
"default_auto_archive_duration": {
|
|
"type": "integer"
|
|
},
|
|
"permission_overwrites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwrite"
|
|
}
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
},
|
|
"bitrate": {
|
|
"type": "integer"
|
|
},
|
|
"user_limit": {
|
|
"type": "integer"
|
|
},
|
|
"nsfw": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"topic": {
|
|
"type": "string"
|
|
},
|
|
"invites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Invite"
|
|
}
|
|
},
|
|
"retention_policy_id": {
|
|
"type": "string"
|
|
},
|
|
"messages": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Message"
|
|
}
|
|
},
|
|
"voice_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/VoiceState"
|
|
}
|
|
},
|
|
"read_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ReadState"
|
|
}
|
|
},
|
|
"webhooks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Webhook"
|
|
}
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"position": {
|
|
"description": "Must be calculated Channel.calculatePosition",
|
|
"type": "integer"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"created_at",
|
|
"flags",
|
|
"id",
|
|
"nsfw",
|
|
"owner",
|
|
"parent_id",
|
|
"position",
|
|
"type"
|
|
]
|
|
},
|
|
"ChannelType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
33,
|
|
34,
|
|
35,
|
|
64,
|
|
255
|
|
]
|
|
},
|
|
"Recipient": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"closed": {
|
|
"type": "boolean"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"closed",
|
|
"id",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"User": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"theme_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"phone": {
|
|
"type": "string"
|
|
},
|
|
"desktop": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"mobile": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"premium": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_type": {
|
|
"type": "integer"
|
|
},
|
|
"bot": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"bio": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"system": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"nsfw_allowed": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"mfa_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"webauthn_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"totp_secret": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"totp_last_ticket": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"deleted": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"email": {
|
|
"type": "string"
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"public_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"purchased_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"premium_usage_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"rights": {
|
|
"type": "string"
|
|
},
|
|
"sessions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Session"
|
|
}
|
|
},
|
|
"relationships": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Relationship"
|
|
}
|
|
},
|
|
"connected_accounts": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ConnectedAccount"
|
|
}
|
|
},
|
|
"data": {
|
|
"type": "object",
|
|
"properties": {
|
|
"valid_tokens_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"hash": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"valid_tokens_since"
|
|
]
|
|
},
|
|
"fingerprints": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"settings": {
|
|
"$ref": "#/definitions/UserSettings"
|
|
},
|
|
"extended_settings": {
|
|
"type": "string",
|
|
"default": "{}"
|
|
},
|
|
"security_keys": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SecurityKey"
|
|
}
|
|
},
|
|
"badge_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"connected_accounts",
|
|
"created_at",
|
|
"data",
|
|
"deleted",
|
|
"desktop",
|
|
"disabled",
|
|
"discriminator",
|
|
"extended_settings",
|
|
"fingerprints",
|
|
"flags",
|
|
"id",
|
|
"mfa_enabled",
|
|
"mobile",
|
|
"nsfw_allowed",
|
|
"premium",
|
|
"premium_since",
|
|
"premium_type",
|
|
"premium_usage_flags",
|
|
"public_flags",
|
|
"purchased_flags",
|
|
"relationships",
|
|
"rights",
|
|
"security_keys",
|
|
"sessions",
|
|
"system",
|
|
"username",
|
|
"verified",
|
|
"webauthn_enabled"
|
|
]
|
|
},
|
|
"Session": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"client_info": {
|
|
"type": "object",
|
|
"properties": {
|
|
"client": {
|
|
"type": "string"
|
|
},
|
|
"os": {
|
|
"type": "string"
|
|
},
|
|
"version": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"client",
|
|
"os",
|
|
"version"
|
|
]
|
|
},
|
|
"client_status": {
|
|
"$ref": "#/definitions/ClientStatus"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"activities",
|
|
"client_info",
|
|
"client_status",
|
|
"id",
|
|
"session_id",
|
|
"status",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
]
|
|
},
|
|
"ClientStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"desktop": {
|
|
"type": "string"
|
|
},
|
|
"mobile": {
|
|
"type": "string"
|
|
},
|
|
"web": {
|
|
"type": "string"
|
|
},
|
|
"embedded": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Relationship": {
|
|
"type": "object",
|
|
"properties": {
|
|
"from_id": {
|
|
"type": "string"
|
|
},
|
|
"from": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"to_id": {
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"nickname": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/RelationshipType"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"from",
|
|
"from_id",
|
|
"id",
|
|
"to",
|
|
"to_id",
|
|
"type"
|
|
]
|
|
},
|
|
"RelationshipType": {
|
|
"type": "number",
|
|
"enum": [
|
|
4,
|
|
3,
|
|
2,
|
|
1
|
|
]
|
|
},
|
|
"ConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"external_id": {
|
|
"type": "string"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"friend_sync": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"revoked": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"show_activity": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"visibility": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"integrations": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"metadata_": {},
|
|
"metadata_visibility": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"two_way_link": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"token_data": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/ConnectedAccountTokenData"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"external_id",
|
|
"id",
|
|
"name",
|
|
"type",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"ConnectedAccountTokenData": {
|
|
"type": "object",
|
|
"properties": {
|
|
"access_token": {
|
|
"type": "string"
|
|
},
|
|
"token_type": {
|
|
"type": "string"
|
|
},
|
|
"scope": {
|
|
"type": "string"
|
|
},
|
|
"refresh_token": {
|
|
"type": "string"
|
|
},
|
|
"expires_in": {
|
|
"type": "integer"
|
|
},
|
|
"expires_at": {
|
|
"type": "integer"
|
|
},
|
|
"fetched_at": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"access_token",
|
|
"fetched_at"
|
|
]
|
|
},
|
|
"UserSettings": {
|
|
"type": "object",
|
|
"properties": {
|
|
"index": {
|
|
"type": "string"
|
|
},
|
|
"afk_timeout": {
|
|
"type": "integer",
|
|
"default": 3600
|
|
},
|
|
"allow_accessibility_detection": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"animate_emoji": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"animate_stickers": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"contact_sync_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"convert_emoticons": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"custom_status": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/CustomStatus"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"default_guilds_restricted": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"detect_platform_accounts": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"developer_mode": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"disable_games_tab": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"enable_tts_command": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"friend_discovery_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"friend_source_flags": {
|
|
"$ref": "#/definitions/FriendSourceFlags"
|
|
},
|
|
"gateway_connected": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"gif_auto_play": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"guild_folders": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/GuildFolder"
|
|
},
|
|
"default": []
|
|
},
|
|
"guild_positions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"inline_attachment_media": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"inline_embed_media": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"locale": {
|
|
"type": "string",
|
|
"default": "en-US"
|
|
},
|
|
"message_display_compact": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"native_phone_integration_enabled": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"render_embeds": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"render_reactions": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"restricted_guilds": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"show_current_game": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string",
|
|
"default": "online"
|
|
},
|
|
"stream_notifications_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"theme": {
|
|
"enum": [
|
|
"dark",
|
|
"light"
|
|
],
|
|
"type": "string",
|
|
"default": "dark"
|
|
},
|
|
"timezone_offset": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"view_nsfw_guilds": {
|
|
"type": "boolean",
|
|
"default": true
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk_timeout",
|
|
"allow_accessibility_detection",
|
|
"animate_emoji",
|
|
"animate_stickers",
|
|
"contact_sync_enabled",
|
|
"convert_emoticons",
|
|
"custom_status",
|
|
"default_guilds_restricted",
|
|
"detect_platform_accounts",
|
|
"developer_mode",
|
|
"disable_games_tab",
|
|
"enable_tts_command",
|
|
"explicit_content_filter",
|
|
"friend_discovery_flags",
|
|
"friend_source_flags",
|
|
"gateway_connected",
|
|
"gif_auto_play",
|
|
"guild_folders",
|
|
"guild_positions",
|
|
"index",
|
|
"inline_attachment_media",
|
|
"inline_embed_media",
|
|
"locale",
|
|
"message_display_compact",
|
|
"native_phone_integration_enabled",
|
|
"render_embeds",
|
|
"render_reactions",
|
|
"restricted_guilds",
|
|
"show_current_game",
|
|
"status",
|
|
"stream_notifications_enabled",
|
|
"theme",
|
|
"timezone_offset",
|
|
"view_nsfw_guilds"
|
|
]
|
|
},
|
|
"CustomStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"emoji_id": {
|
|
"type": "string"
|
|
},
|
|
"emoji_name": {
|
|
"type": "string"
|
|
},
|
|
"expires_at": {
|
|
"type": "integer"
|
|
},
|
|
"text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"FriendSourceFlags": {
|
|
"type": "object",
|
|
"properties": {
|
|
"all": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"all"
|
|
]
|
|
},
|
|
"GuildFolder": {
|
|
"type": "object",
|
|
"properties": {
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"guild_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"color",
|
|
"guild_ids",
|
|
"id",
|
|
"name"
|
|
]
|
|
},
|
|
"SecurityKey": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"key_id": {
|
|
"type": "string"
|
|
},
|
|
"public_key": {
|
|
"type": "string"
|
|
},
|
|
"counter": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"counter",
|
|
"id",
|
|
"key_id",
|
|
"name",
|
|
"public_key",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"ChannelPermissionOverwrite": {
|
|
"type": "object",
|
|
"properties": {
|
|
"allow": {
|
|
"type": "string"
|
|
},
|
|
"deny": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"allow",
|
|
"deny",
|
|
"id",
|
|
"type"
|
|
]
|
|
},
|
|
"ChannelPermissionOverwriteType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"Message": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"author_id": {
|
|
"type": "string"
|
|
},
|
|
"author": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"member_id": {
|
|
"type": "string"
|
|
},
|
|
"member": {
|
|
"$ref": "#/definitions/Member"
|
|
},
|
|
"webhook_id": {
|
|
"type": "string"
|
|
},
|
|
"webhook": {
|
|
"$ref": "#/definitions/Webhook"
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"application": {
|
|
"$ref": "#/definitions/Application"
|
|
},
|
|
"content": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"edited_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"tts": {
|
|
"type": "boolean"
|
|
},
|
|
"mention_everyone": {
|
|
"type": "boolean"
|
|
},
|
|
"mentions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/User"
|
|
}
|
|
},
|
|
"mention_roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"mention_channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Channel"
|
|
}
|
|
},
|
|
"sticker_items": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"attachments": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Attachment"
|
|
}
|
|
},
|
|
"embeds": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Embed"
|
|
}
|
|
},
|
|
"reactions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Reaction"
|
|
}
|
|
},
|
|
"nonce": {
|
|
"type": "string"
|
|
},
|
|
"pinned_at": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"pinned": {
|
|
"type": "boolean"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/MessageType"
|
|
},
|
|
"activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "integer"
|
|
},
|
|
"party_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"party_id",
|
|
"type"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"message_reference": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"message_id"
|
|
]
|
|
},
|
|
"referenced_message": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/Message"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"interaction": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/InteractionType"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"type"
|
|
]
|
|
},
|
|
"interaction_metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/InteractionType"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"authorizing_integration_owners": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"command_type": {
|
|
"$ref": "#/definitions/ApplicationCommandType"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"authorizing_integration_owners",
|
|
"command_type",
|
|
"id",
|
|
"name",
|
|
"type",
|
|
"user_id"
|
|
]
|
|
},
|
|
"components": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ActionRowComponent"
|
|
}
|
|
},
|
|
"poll": {
|
|
"$ref": "#/definitions/Poll"
|
|
},
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"embeds",
|
|
"flags",
|
|
"id",
|
|
"mention_channels",
|
|
"mention_roles",
|
|
"mentions",
|
|
"pinned",
|
|
"reactions",
|
|
"timestamp",
|
|
"type"
|
|
]
|
|
},
|
|
"Member": {
|
|
"type": "object",
|
|
"properties": {
|
|
"index": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"nick": {
|
|
"type": "string"
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"joined_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"premium_since": {
|
|
"type": "integer"
|
|
},
|
|
"deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"mute": {
|
|
"type": "boolean"
|
|
},
|
|
"pending": {
|
|
"type": "boolean"
|
|
},
|
|
"settings": {
|
|
"$ref": "#/definitions/UserGuildSettings"
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"joined_by": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"theme_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"communication_disabled_until": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"banner",
|
|
"bio",
|
|
"communication_disabled_until",
|
|
"deaf",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"index",
|
|
"joined_at",
|
|
"joined_by",
|
|
"mute",
|
|
"pending",
|
|
"roles",
|
|
"settings",
|
|
"user"
|
|
]
|
|
},
|
|
"Role": {
|
|
"type": "object",
|
|
"properties": {
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"hoist": {
|
|
"type": "boolean"
|
|
},
|
|
"managed": {
|
|
"type": "boolean"
|
|
},
|
|
"mentionable": {
|
|
"type": "boolean"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"permissions": {
|
|
"type": "string"
|
|
},
|
|
"position": {
|
|
"type": "integer"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"unicode_emoji": {
|
|
"type": "string"
|
|
},
|
|
"tags": {
|
|
"type": "object",
|
|
"properties": {
|
|
"bot_id": {
|
|
"type": "string"
|
|
},
|
|
"integration_id": {
|
|
"type": "string"
|
|
},
|
|
"premium_subscriber": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"colors": {
|
|
"$ref": "#/definitions/RoleColors"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"color",
|
|
"colors",
|
|
"flags",
|
|
"guild",
|
|
"guild_id",
|
|
"hoist",
|
|
"id",
|
|
"managed",
|
|
"mentionable",
|
|
"name",
|
|
"permissions",
|
|
"position"
|
|
]
|
|
},
|
|
"RoleColors": {
|
|
"type": "object",
|
|
"properties": {
|
|
"primary_color": {
|
|
"type": "integer"
|
|
},
|
|
"secondary_color": {
|
|
"type": "integer"
|
|
},
|
|
"tertiary_color": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"primary_color"
|
|
]
|
|
},
|
|
"UserGuildSettings": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_overrides": {
|
|
"anyOf": [
|
|
{
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"$ref": "#/definitions/ChannelOverride"
|
|
}
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mobile_push": {
|
|
"type": "boolean"
|
|
},
|
|
"mute_config": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress_everyone": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress_roles": {
|
|
"type": "boolean"
|
|
},
|
|
"version": {
|
|
"type": "integer"
|
|
},
|
|
"guild_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"mute_scheduled_events": {
|
|
"type": "boolean"
|
|
},
|
|
"hide_muted_channels": {
|
|
"type": "boolean"
|
|
},
|
|
"notify_highlights": {
|
|
"type": "integer",
|
|
"const": 0
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_overrides",
|
|
"flags",
|
|
"guild_id",
|
|
"hide_muted_channels",
|
|
"message_notifications",
|
|
"mobile_push",
|
|
"mute_config",
|
|
"mute_scheduled_events",
|
|
"muted",
|
|
"notify_highlights",
|
|
"suppress_everyone",
|
|
"suppress_roles",
|
|
"version"
|
|
]
|
|
},
|
|
"ChannelOverride": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_id",
|
|
"message_notifications",
|
|
"mute_config",
|
|
"muted"
|
|
]
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"Webhook": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/WebhookType"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"token": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"application": {
|
|
"$ref": "#/definitions/Application"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"source_guild_id": {
|
|
"type": "string"
|
|
},
|
|
"source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"source_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"source_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"application",
|
|
"application_id",
|
|
"avatar",
|
|
"channel",
|
|
"channel_id",
|
|
"id",
|
|
"name",
|
|
"source_channel",
|
|
"source_channel_id",
|
|
"type",
|
|
"url",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"WebhookType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3
|
|
]
|
|
},
|
|
"Application": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"summary": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"type": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true
|
|
},
|
|
"hook": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"bot_public": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"bot_require_code_grant": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"verify_key": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"redirect_uris": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"rpc_application_state": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"store_application_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"verification_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"interactions_endpoint_url": {
|
|
"type": "string"
|
|
},
|
|
"integration_public": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"integration_require_code_grant": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"discoverability_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"discovery_eligibility_flags": {
|
|
"type": "integer",
|
|
"default": 2240
|
|
},
|
|
"bot": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"tags": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"cover_image": {
|
|
"type": "string"
|
|
},
|
|
"install_params": {
|
|
"type": "object",
|
|
"properties": {
|
|
"scopes": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"permissions": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"permissions",
|
|
"scopes"
|
|
]
|
|
},
|
|
"terms_of_service_url": {
|
|
"type": "string"
|
|
},
|
|
"privacy_policy_url": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"custom_install_url": {
|
|
"type": "string"
|
|
},
|
|
"team": {
|
|
"$ref": "#/definitions/Team"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"description",
|
|
"discoverability_state",
|
|
"discovery_eligibility_flags",
|
|
"flags",
|
|
"hook",
|
|
"id",
|
|
"integration_public",
|
|
"integration_require_code_grant",
|
|
"name",
|
|
"owner",
|
|
"redirect_uris",
|
|
"rpc_application_state",
|
|
"store_application_state",
|
|
"summary",
|
|
"verification_state",
|
|
"verify_key"
|
|
]
|
|
},
|
|
"Team": {
|
|
"type": "object",
|
|
"properties": {
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"members": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/TeamMember"
|
|
}
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"owner_user_id": {
|
|
"type": "string"
|
|
},
|
|
"owner_user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"members",
|
|
"name",
|
|
"owner_user",
|
|
"owner_user_id"
|
|
]
|
|
},
|
|
"TeamMember": {
|
|
"type": "object",
|
|
"properties": {
|
|
"membership_state": {
|
|
"$ref": "#/definitions/TeamMemberState"
|
|
},
|
|
"permissions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"role": {
|
|
"$ref": "#/definitions/TeamMemberRole"
|
|
},
|
|
"team_id": {
|
|
"type": "string"
|
|
},
|
|
"team": {
|
|
"$ref": "#/definitions/Team"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"membership_state",
|
|
"permissions",
|
|
"role",
|
|
"team",
|
|
"team_id",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"TeamMemberState": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"TeamMemberRole": {
|
|
"type": "string",
|
|
"enum": [
|
|
"admin",
|
|
"developer",
|
|
"read_only"
|
|
]
|
|
},
|
|
"Sticker": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"available": {
|
|
"type": "boolean"
|
|
},
|
|
"tags": {
|
|
"type": "string"
|
|
},
|
|
"pack_id": {
|
|
"type": "string"
|
|
},
|
|
"pack": {
|
|
"$ref": "#/definitions/StickerPack"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/StickerType"
|
|
},
|
|
"format_type": {
|
|
"$ref": "#/definitions/StickerFormatType"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"format_type",
|
|
"id",
|
|
"name",
|
|
"pack",
|
|
"type"
|
|
]
|
|
},
|
|
"StickerPack": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"banner_asset_id": {
|
|
"type": "string"
|
|
},
|
|
"stickers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"cover_sticker_id": {
|
|
"type": "string"
|
|
},
|
|
"cover_sticker": {
|
|
"$ref": "#/definitions/Sticker"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"stickers"
|
|
]
|
|
},
|
|
"StickerType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"StickerFormatType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4
|
|
]
|
|
},
|
|
"Attachment": {
|
|
"type": "object",
|
|
"properties": {
|
|
"filename": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "integer"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
},
|
|
"content_type": {
|
|
"type": "string"
|
|
},
|
|
"message_id": {
|
|
"type": "string"
|
|
},
|
|
"message": {
|
|
"$ref": "#/definitions/Message"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"filename",
|
|
"id",
|
|
"message",
|
|
"message_id",
|
|
"proxy_url",
|
|
"size",
|
|
"url"
|
|
]
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"Reaction": {
|
|
"type": "object",
|
|
"properties": {
|
|
"count": {
|
|
"type": "integer"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"user_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"count",
|
|
"emoji",
|
|
"user_ids"
|
|
]
|
|
},
|
|
"PartialEmoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name"
|
|
]
|
|
},
|
|
"MessageType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
16,
|
|
19,
|
|
20,
|
|
41,
|
|
42,
|
|
43,
|
|
50,
|
|
63,
|
|
255
|
|
]
|
|
},
|
|
"InteractionType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5
|
|
]
|
|
},
|
|
"ApplicationCommandType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4
|
|
]
|
|
},
|
|
"ActionRowComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.ActionRow"
|
|
},
|
|
"components": {
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/ButtonComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/SelectMenuComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/StringSelectMenuComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/TextInputComponent"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"components",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.ActionRow": {
|
|
"type": "number",
|
|
"const": 1
|
|
},
|
|
"ButtonComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.Button"
|
|
},
|
|
"style": {
|
|
"$ref": "#/definitions/ButtonStyle"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"sku_id": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"style",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.Button": {
|
|
"type": "number",
|
|
"const": 2
|
|
},
|
|
"ButtonStyle": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6
|
|
]
|
|
},
|
|
"SelectMenuComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": [
|
|
3,
|
|
5,
|
|
6,
|
|
7,
|
|
8
|
|
],
|
|
"type": "number"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_types": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
},
|
|
"default_values": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuDefaultOption"
|
|
}
|
|
},
|
|
"min_values": {
|
|
"type": "integer"
|
|
},
|
|
"max_values": {
|
|
"type": "integer"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"type"
|
|
]
|
|
},
|
|
"SelectMenuDefaultOption": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"channel",
|
|
"role",
|
|
"user"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"type"
|
|
]
|
|
},
|
|
"StringSelectMenuComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.StringSelect"
|
|
},
|
|
"options": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuOption"
|
|
}
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_types": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
},
|
|
"default_values": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuDefaultOption"
|
|
}
|
|
},
|
|
"min_values": {
|
|
"type": "integer"
|
|
},
|
|
"max_values": {
|
|
"type": "integer"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"options",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.StringSelect": {
|
|
"type": "number",
|
|
"const": 3
|
|
},
|
|
"SelectMenuOption": {
|
|
"type": "object",
|
|
"properties": {
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"default": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"label",
|
|
"value"
|
|
]
|
|
},
|
|
"TextInputComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.TextInput"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"style": {
|
|
"$ref": "#/definitions/TextInputStyle"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"min_length": {
|
|
"type": "integer"
|
|
},
|
|
"max_length": {
|
|
"type": "integer"
|
|
},
|
|
"required": {
|
|
"type": "boolean"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"label",
|
|
"style",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.TextInput": {
|
|
"type": "number",
|
|
"const": 4
|
|
},
|
|
"TextInputStyle": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"Poll": {
|
|
"type": "object",
|
|
"properties": {
|
|
"question": {
|
|
"$ref": "#/definitions/PollMedia"
|
|
},
|
|
"answers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/PollAnswer"
|
|
}
|
|
},
|
|
"expiry": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"allow_multiselect": {
|
|
"type": "boolean"
|
|
},
|
|
"results": {
|
|
"$ref": "#/definitions/PollResult"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"allow_multiselect",
|
|
"answers",
|
|
"expiry",
|
|
"question"
|
|
]
|
|
},
|
|
"PollMedia": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"PollAnswer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"answer_id": {
|
|
"type": "string"
|
|
},
|
|
"poll_media": {
|
|
"$ref": "#/definitions/PollMedia"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"poll_media"
|
|
]
|
|
},
|
|
"PollResult": {
|
|
"type": "object",
|
|
"properties": {
|
|
"is_finalized": {
|
|
"type": "boolean"
|
|
},
|
|
"answer_counts": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/PollAnswerCount"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"answer_counts",
|
|
"is_finalized"
|
|
]
|
|
},
|
|
"PollAnswerCount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"count": {
|
|
"type": "integer"
|
|
},
|
|
"me_voted": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"count",
|
|
"id",
|
|
"me_voted"
|
|
]
|
|
},
|
|
"VoiceState": {
|
|
"type": "object",
|
|
"properties": {
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"member": {
|
|
"$ref": "#/definitions/Member"
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
},
|
|
"token": {
|
|
"type": "string"
|
|
},
|
|
"deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"mute": {
|
|
"type": "boolean"
|
|
},
|
|
"self_deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"self_mute": {
|
|
"type": "boolean"
|
|
},
|
|
"self_stream": {
|
|
"type": "boolean"
|
|
},
|
|
"self_video": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress": {
|
|
"type": "boolean"
|
|
},
|
|
"request_to_speak_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"deaf",
|
|
"guild_id",
|
|
"id",
|
|
"member",
|
|
"mute",
|
|
"self_deaf",
|
|
"self_mute",
|
|
"self_video",
|
|
"session_id",
|
|
"suppress",
|
|
"token",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"ReadState": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"public_ack": {
|
|
"type": "string"
|
|
},
|
|
"notifications_cursor": {
|
|
"type": "string"
|
|
},
|
|
"last_pin_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"mention_count": {
|
|
"type": "integer"
|
|
},
|
|
"manual": {
|
|
"type": "boolean"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"id",
|
|
"last_message_id",
|
|
"manual",
|
|
"mention_count",
|
|
"notifications_cursor",
|
|
"public_ack",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Ban": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"executor_id": {
|
|
"type": "string"
|
|
},
|
|
"executor": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"ip": {
|
|
"type": "string"
|
|
},
|
|
"reason": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"executor",
|
|
"executor_id",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"ip",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Template": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"usage_count": {
|
|
"type": "integer"
|
|
},
|
|
"creator_id": {
|
|
"type": "string"
|
|
},
|
|
"creator": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"updated_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"source_guild_id": {
|
|
"type": "string"
|
|
},
|
|
"source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"serialized_source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"code",
|
|
"created_at",
|
|
"creator",
|
|
"creator_id",
|
|
"id",
|
|
"name",
|
|
"serialized_source_guild",
|
|
"source_guild",
|
|
"source_guild_id",
|
|
"updated_at"
|
|
]
|
|
},
|
|
"Emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"animated": {
|
|
"type": "boolean"
|
|
},
|
|
"available": {
|
|
"type": "boolean"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"managed": {
|
|
"type": "boolean"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"require_colons": {
|
|
"type": "boolean"
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"groups": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"available",
|
|
"groups",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"managed",
|
|
"name",
|
|
"require_colons",
|
|
"roles",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"GuildWelcomeScreen": {
|
|
"type": "object",
|
|
"properties": {
|
|
"enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"welcome_channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"emoji_id": {
|
|
"type": "string"
|
|
},
|
|
"emoji_name": {
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_id",
|
|
"description"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"description",
|
|
"enabled",
|
|
"welcome_channels"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"APIMessageArray": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Message"
|
|
},
|
|
"definitions": {
|
|
"Message": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"author_id": {
|
|
"type": "string"
|
|
},
|
|
"author": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"member_id": {
|
|
"type": "string"
|
|
},
|
|
"member": {
|
|
"$ref": "#/definitions/Member"
|
|
},
|
|
"webhook_id": {
|
|
"type": "string"
|
|
},
|
|
"webhook": {
|
|
"$ref": "#/definitions/Webhook"
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"application": {
|
|
"$ref": "#/definitions/Application"
|
|
},
|
|
"content": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"edited_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"tts": {
|
|
"type": "boolean"
|
|
},
|
|
"mention_everyone": {
|
|
"type": "boolean"
|
|
},
|
|
"mentions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/User"
|
|
}
|
|
},
|
|
"mention_roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"mention_channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Channel"
|
|
}
|
|
},
|
|
"sticker_items": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"attachments": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Attachment"
|
|
}
|
|
},
|
|
"embeds": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Embed"
|
|
}
|
|
},
|
|
"reactions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Reaction"
|
|
}
|
|
},
|
|
"nonce": {
|
|
"type": "string"
|
|
},
|
|
"pinned_at": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"pinned": {
|
|
"type": "boolean"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/MessageType"
|
|
},
|
|
"activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "integer"
|
|
},
|
|
"party_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"party_id",
|
|
"type"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"message_reference": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"message_id"
|
|
]
|
|
},
|
|
"referenced_message": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/Message"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"interaction": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/InteractionType"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"type"
|
|
]
|
|
},
|
|
"interaction_metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/InteractionType"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"authorizing_integration_owners": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"command_type": {
|
|
"$ref": "#/definitions/ApplicationCommandType"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"authorizing_integration_owners",
|
|
"command_type",
|
|
"id",
|
|
"name",
|
|
"type",
|
|
"user_id"
|
|
]
|
|
},
|
|
"components": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ActionRowComponent"
|
|
}
|
|
},
|
|
"poll": {
|
|
"$ref": "#/definitions/Poll"
|
|
},
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"embeds",
|
|
"flags",
|
|
"id",
|
|
"mention_channels",
|
|
"mention_roles",
|
|
"mentions",
|
|
"pinned",
|
|
"reactions",
|
|
"timestamp",
|
|
"type"
|
|
]
|
|
},
|
|
"Channel": {
|
|
"type": "object",
|
|
"properties": {
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ChannelType"
|
|
},
|
|
"recipients": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Recipient"
|
|
}
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"parent_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"parent": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"owner_id": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"last_pin_timestamp": {
|
|
"type": "integer"
|
|
},
|
|
"default_auto_archive_duration": {
|
|
"type": "integer"
|
|
},
|
|
"permission_overwrites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwrite"
|
|
}
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
},
|
|
"bitrate": {
|
|
"type": "integer"
|
|
},
|
|
"user_limit": {
|
|
"type": "integer"
|
|
},
|
|
"nsfw": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"topic": {
|
|
"type": "string"
|
|
},
|
|
"invites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Invite"
|
|
}
|
|
},
|
|
"retention_policy_id": {
|
|
"type": "string"
|
|
},
|
|
"messages": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Message"
|
|
}
|
|
},
|
|
"voice_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/VoiceState"
|
|
}
|
|
},
|
|
"read_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ReadState"
|
|
}
|
|
},
|
|
"webhooks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Webhook"
|
|
}
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"position": {
|
|
"description": "Must be calculated Channel.calculatePosition",
|
|
"type": "integer"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"created_at",
|
|
"flags",
|
|
"id",
|
|
"nsfw",
|
|
"owner",
|
|
"parent_id",
|
|
"position",
|
|
"type"
|
|
]
|
|
},
|
|
"ChannelType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
33,
|
|
34,
|
|
35,
|
|
64,
|
|
255
|
|
]
|
|
},
|
|
"Recipient": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"closed": {
|
|
"type": "boolean"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"closed",
|
|
"id",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"User": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"theme_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"phone": {
|
|
"type": "string"
|
|
},
|
|
"desktop": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"mobile": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"premium": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_type": {
|
|
"type": "integer"
|
|
},
|
|
"bot": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"bio": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"system": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"nsfw_allowed": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"mfa_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"webauthn_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"totp_secret": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"totp_last_ticket": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"deleted": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"email": {
|
|
"type": "string"
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"public_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"purchased_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"premium_usage_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"rights": {
|
|
"type": "string"
|
|
},
|
|
"sessions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Session"
|
|
}
|
|
},
|
|
"relationships": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Relationship"
|
|
}
|
|
},
|
|
"connected_accounts": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ConnectedAccount"
|
|
}
|
|
},
|
|
"data": {
|
|
"type": "object",
|
|
"properties": {
|
|
"valid_tokens_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"hash": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"valid_tokens_since"
|
|
]
|
|
},
|
|
"fingerprints": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"settings": {
|
|
"$ref": "#/definitions/UserSettings"
|
|
},
|
|
"extended_settings": {
|
|
"type": "string",
|
|
"default": "{}"
|
|
},
|
|
"security_keys": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SecurityKey"
|
|
}
|
|
},
|
|
"badge_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"connected_accounts",
|
|
"created_at",
|
|
"data",
|
|
"deleted",
|
|
"desktop",
|
|
"disabled",
|
|
"discriminator",
|
|
"extended_settings",
|
|
"fingerprints",
|
|
"flags",
|
|
"id",
|
|
"mfa_enabled",
|
|
"mobile",
|
|
"nsfw_allowed",
|
|
"premium",
|
|
"premium_since",
|
|
"premium_type",
|
|
"premium_usage_flags",
|
|
"public_flags",
|
|
"purchased_flags",
|
|
"relationships",
|
|
"rights",
|
|
"security_keys",
|
|
"sessions",
|
|
"system",
|
|
"username",
|
|
"verified",
|
|
"webauthn_enabled"
|
|
]
|
|
},
|
|
"Session": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"client_info": {
|
|
"type": "object",
|
|
"properties": {
|
|
"client": {
|
|
"type": "string"
|
|
},
|
|
"os": {
|
|
"type": "string"
|
|
},
|
|
"version": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"client",
|
|
"os",
|
|
"version"
|
|
]
|
|
},
|
|
"client_status": {
|
|
"$ref": "#/definitions/ClientStatus"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"activities",
|
|
"client_info",
|
|
"client_status",
|
|
"id",
|
|
"session_id",
|
|
"status",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
]
|
|
},
|
|
"ClientStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"desktop": {
|
|
"type": "string"
|
|
},
|
|
"mobile": {
|
|
"type": "string"
|
|
},
|
|
"web": {
|
|
"type": "string"
|
|
},
|
|
"embedded": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Relationship": {
|
|
"type": "object",
|
|
"properties": {
|
|
"from_id": {
|
|
"type": "string"
|
|
},
|
|
"from": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"to_id": {
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"nickname": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/RelationshipType"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"from",
|
|
"from_id",
|
|
"id",
|
|
"to",
|
|
"to_id",
|
|
"type"
|
|
]
|
|
},
|
|
"RelationshipType": {
|
|
"type": "number",
|
|
"enum": [
|
|
4,
|
|
3,
|
|
2,
|
|
1
|
|
]
|
|
},
|
|
"ConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"external_id": {
|
|
"type": "string"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"friend_sync": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"revoked": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"show_activity": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"visibility": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"integrations": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"metadata_": {},
|
|
"metadata_visibility": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"two_way_link": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"token_data": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/ConnectedAccountTokenData"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"external_id",
|
|
"id",
|
|
"name",
|
|
"type",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"ConnectedAccountTokenData": {
|
|
"type": "object",
|
|
"properties": {
|
|
"access_token": {
|
|
"type": "string"
|
|
},
|
|
"token_type": {
|
|
"type": "string"
|
|
},
|
|
"scope": {
|
|
"type": "string"
|
|
},
|
|
"refresh_token": {
|
|
"type": "string"
|
|
},
|
|
"expires_in": {
|
|
"type": "integer"
|
|
},
|
|
"expires_at": {
|
|
"type": "integer"
|
|
},
|
|
"fetched_at": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"access_token",
|
|
"fetched_at"
|
|
]
|
|
},
|
|
"UserSettings": {
|
|
"type": "object",
|
|
"properties": {
|
|
"index": {
|
|
"type": "string"
|
|
},
|
|
"afk_timeout": {
|
|
"type": "integer",
|
|
"default": 3600
|
|
},
|
|
"allow_accessibility_detection": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"animate_emoji": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"animate_stickers": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"contact_sync_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"convert_emoticons": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"custom_status": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/CustomStatus"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"default_guilds_restricted": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"detect_platform_accounts": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"developer_mode": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"disable_games_tab": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"enable_tts_command": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"friend_discovery_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"friend_source_flags": {
|
|
"$ref": "#/definitions/FriendSourceFlags"
|
|
},
|
|
"gateway_connected": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"gif_auto_play": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"guild_folders": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/GuildFolder"
|
|
},
|
|
"default": []
|
|
},
|
|
"guild_positions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"inline_attachment_media": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"inline_embed_media": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"locale": {
|
|
"type": "string",
|
|
"default": "en-US"
|
|
},
|
|
"message_display_compact": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"native_phone_integration_enabled": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"render_embeds": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"render_reactions": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"restricted_guilds": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"show_current_game": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string",
|
|
"default": "online"
|
|
},
|
|
"stream_notifications_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"theme": {
|
|
"enum": [
|
|
"dark",
|
|
"light"
|
|
],
|
|
"type": "string",
|
|
"default": "dark"
|
|
},
|
|
"timezone_offset": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"view_nsfw_guilds": {
|
|
"type": "boolean",
|
|
"default": true
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk_timeout",
|
|
"allow_accessibility_detection",
|
|
"animate_emoji",
|
|
"animate_stickers",
|
|
"contact_sync_enabled",
|
|
"convert_emoticons",
|
|
"custom_status",
|
|
"default_guilds_restricted",
|
|
"detect_platform_accounts",
|
|
"developer_mode",
|
|
"disable_games_tab",
|
|
"enable_tts_command",
|
|
"explicit_content_filter",
|
|
"friend_discovery_flags",
|
|
"friend_source_flags",
|
|
"gateway_connected",
|
|
"gif_auto_play",
|
|
"guild_folders",
|
|
"guild_positions",
|
|
"index",
|
|
"inline_attachment_media",
|
|
"inline_embed_media",
|
|
"locale",
|
|
"message_display_compact",
|
|
"native_phone_integration_enabled",
|
|
"render_embeds",
|
|
"render_reactions",
|
|
"restricted_guilds",
|
|
"show_current_game",
|
|
"status",
|
|
"stream_notifications_enabled",
|
|
"theme",
|
|
"timezone_offset",
|
|
"view_nsfw_guilds"
|
|
]
|
|
},
|
|
"CustomStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"emoji_id": {
|
|
"type": "string"
|
|
},
|
|
"emoji_name": {
|
|
"type": "string"
|
|
},
|
|
"expires_at": {
|
|
"type": "integer"
|
|
},
|
|
"text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"FriendSourceFlags": {
|
|
"type": "object",
|
|
"properties": {
|
|
"all": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"all"
|
|
]
|
|
},
|
|
"GuildFolder": {
|
|
"type": "object",
|
|
"properties": {
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"guild_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"color",
|
|
"guild_ids",
|
|
"id",
|
|
"name"
|
|
]
|
|
},
|
|
"SecurityKey": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"key_id": {
|
|
"type": "string"
|
|
},
|
|
"public_key": {
|
|
"type": "string"
|
|
},
|
|
"counter": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"counter",
|
|
"id",
|
|
"key_id",
|
|
"name",
|
|
"public_key",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Guild": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"afk_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"afk_timeout": {
|
|
"type": "integer"
|
|
},
|
|
"bans": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Ban"
|
|
}
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"default_message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"discovery_splash": {
|
|
"type": "string"
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer"
|
|
},
|
|
"features": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"primary_category_id": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"large": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"max_members": {
|
|
"type": "integer"
|
|
},
|
|
"max_presences": {
|
|
"type": "integer"
|
|
},
|
|
"max_video_channel_users": {
|
|
"type": "integer"
|
|
},
|
|
"member_count": {
|
|
"type": "integer"
|
|
},
|
|
"presence_count": {
|
|
"type": "integer"
|
|
},
|
|
"members": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Member"
|
|
}
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Channel"
|
|
}
|
|
},
|
|
"template_id": {
|
|
"type": "string"
|
|
},
|
|
"template": {
|
|
"$ref": "#/definitions/Template"
|
|
},
|
|
"emojis": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Emoji"
|
|
}
|
|
},
|
|
"stickers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"invites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Invite"
|
|
}
|
|
},
|
|
"voice_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/VoiceState"
|
|
}
|
|
},
|
|
"webhooks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Webhook"
|
|
}
|
|
},
|
|
"mfa_level": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"owner_id": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"preferred_locale": {
|
|
"type": "string"
|
|
},
|
|
"premium_subscription_count": {
|
|
"type": "integer"
|
|
},
|
|
"premium_tier": {
|
|
"type": "integer"
|
|
},
|
|
"public_updates_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"public_updates_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"rules_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"rules_channel": {
|
|
"type": "string"
|
|
},
|
|
"region": {
|
|
"type": "string"
|
|
},
|
|
"splash": {
|
|
"type": "string"
|
|
},
|
|
"system_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"system_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"system_channel_flags": {
|
|
"type": "integer"
|
|
},
|
|
"unavailable": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"verification_level": {
|
|
"type": "integer"
|
|
},
|
|
"welcome_screen": {
|
|
"$ref": "#/definitions/GuildWelcomeScreen",
|
|
"description": "DEPRECATED: Look at the new Guild onboarding screens."
|
|
},
|
|
"widget_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"widget_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"widget_enabled": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"nsfw_level": {
|
|
"type": "integer"
|
|
},
|
|
"nsfw": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"parent": {
|
|
"type": "string"
|
|
},
|
|
"permissions": {
|
|
"type": "integer"
|
|
},
|
|
"premium_progress_bar_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"channel_ordering": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bans",
|
|
"channel_ordering",
|
|
"channels",
|
|
"emojis",
|
|
"features",
|
|
"id",
|
|
"invites",
|
|
"members",
|
|
"name",
|
|
"nsfw",
|
|
"premium_progress_bar_enabled",
|
|
"public_updates_channel_id",
|
|
"roles",
|
|
"stickers",
|
|
"template",
|
|
"unavailable",
|
|
"voice_states",
|
|
"webhooks",
|
|
"welcome_screen",
|
|
"widget_enabled"
|
|
]
|
|
},
|
|
"Ban": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"executor_id": {
|
|
"type": "string"
|
|
},
|
|
"executor": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"ip": {
|
|
"type": "string"
|
|
},
|
|
"reason": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"executor",
|
|
"executor_id",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"ip",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Member": {
|
|
"type": "object",
|
|
"properties": {
|
|
"index": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"nick": {
|
|
"type": "string"
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"joined_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"premium_since": {
|
|
"type": "integer"
|
|
},
|
|
"deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"mute": {
|
|
"type": "boolean"
|
|
},
|
|
"pending": {
|
|
"type": "boolean"
|
|
},
|
|
"settings": {
|
|
"$ref": "#/definitions/UserGuildSettings"
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"joined_by": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"theme_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"communication_disabled_until": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"banner",
|
|
"bio",
|
|
"communication_disabled_until",
|
|
"deaf",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"index",
|
|
"joined_at",
|
|
"joined_by",
|
|
"mute",
|
|
"pending",
|
|
"roles",
|
|
"settings",
|
|
"user"
|
|
]
|
|
},
|
|
"Role": {
|
|
"type": "object",
|
|
"properties": {
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"hoist": {
|
|
"type": "boolean"
|
|
},
|
|
"managed": {
|
|
"type": "boolean"
|
|
},
|
|
"mentionable": {
|
|
"type": "boolean"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"permissions": {
|
|
"type": "string"
|
|
},
|
|
"position": {
|
|
"type": "integer"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"unicode_emoji": {
|
|
"type": "string"
|
|
},
|
|
"tags": {
|
|
"type": "object",
|
|
"properties": {
|
|
"bot_id": {
|
|
"type": "string"
|
|
},
|
|
"integration_id": {
|
|
"type": "string"
|
|
},
|
|
"premium_subscriber": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"colors": {
|
|
"$ref": "#/definitions/RoleColors"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"color",
|
|
"colors",
|
|
"flags",
|
|
"guild",
|
|
"guild_id",
|
|
"hoist",
|
|
"id",
|
|
"managed",
|
|
"mentionable",
|
|
"name",
|
|
"permissions",
|
|
"position"
|
|
]
|
|
},
|
|
"RoleColors": {
|
|
"type": "object",
|
|
"properties": {
|
|
"primary_color": {
|
|
"type": "integer"
|
|
},
|
|
"secondary_color": {
|
|
"type": "integer"
|
|
},
|
|
"tertiary_color": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"primary_color"
|
|
]
|
|
},
|
|
"UserGuildSettings": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_overrides": {
|
|
"anyOf": [
|
|
{
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"$ref": "#/definitions/ChannelOverride"
|
|
}
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mobile_push": {
|
|
"type": "boolean"
|
|
},
|
|
"mute_config": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress_everyone": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress_roles": {
|
|
"type": "boolean"
|
|
},
|
|
"version": {
|
|
"type": "integer"
|
|
},
|
|
"guild_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"mute_scheduled_events": {
|
|
"type": "boolean"
|
|
},
|
|
"hide_muted_channels": {
|
|
"type": "boolean"
|
|
},
|
|
"notify_highlights": {
|
|
"type": "integer",
|
|
"const": 0
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_overrides",
|
|
"flags",
|
|
"guild_id",
|
|
"hide_muted_channels",
|
|
"message_notifications",
|
|
"mobile_push",
|
|
"mute_config",
|
|
"mute_scheduled_events",
|
|
"muted",
|
|
"notify_highlights",
|
|
"suppress_everyone",
|
|
"suppress_roles",
|
|
"version"
|
|
]
|
|
},
|
|
"ChannelOverride": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_id",
|
|
"message_notifications",
|
|
"mute_config",
|
|
"muted"
|
|
]
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"Template": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"usage_count": {
|
|
"type": "integer"
|
|
},
|
|
"creator_id": {
|
|
"type": "string"
|
|
},
|
|
"creator": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"updated_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"source_guild_id": {
|
|
"type": "string"
|
|
},
|
|
"source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"serialized_source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"code",
|
|
"created_at",
|
|
"creator",
|
|
"creator_id",
|
|
"id",
|
|
"name",
|
|
"serialized_source_guild",
|
|
"source_guild",
|
|
"source_guild_id",
|
|
"updated_at"
|
|
]
|
|
},
|
|
"Emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"animated": {
|
|
"type": "boolean"
|
|
},
|
|
"available": {
|
|
"type": "boolean"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"managed": {
|
|
"type": "boolean"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"require_colons": {
|
|
"type": "boolean"
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"groups": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"available",
|
|
"groups",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"managed",
|
|
"name",
|
|
"require_colons",
|
|
"roles",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Sticker": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"available": {
|
|
"type": "boolean"
|
|
},
|
|
"tags": {
|
|
"type": "string"
|
|
},
|
|
"pack_id": {
|
|
"type": "string"
|
|
},
|
|
"pack": {
|
|
"$ref": "#/definitions/StickerPack"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/StickerType"
|
|
},
|
|
"format_type": {
|
|
"$ref": "#/definitions/StickerFormatType"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"format_type",
|
|
"id",
|
|
"name",
|
|
"pack",
|
|
"type"
|
|
]
|
|
},
|
|
"StickerPack": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"banner_asset_id": {
|
|
"type": "string"
|
|
},
|
|
"stickers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"cover_sticker_id": {
|
|
"type": "string"
|
|
},
|
|
"cover_sticker": {
|
|
"$ref": "#/definitions/Sticker"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"stickers"
|
|
]
|
|
},
|
|
"StickerType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"StickerFormatType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4
|
|
]
|
|
},
|
|
"Invite": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "string"
|
|
},
|
|
"temporary": {
|
|
"type": "boolean"
|
|
},
|
|
"uses": {
|
|
"type": "integer"
|
|
},
|
|
"max_uses": {
|
|
"type": "integer"
|
|
},
|
|
"max_age": {
|
|
"type": "integer"
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"expires_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"inviter_id": {
|
|
"type": "string"
|
|
},
|
|
"inviter": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"target_user_id": {
|
|
"type": "string"
|
|
},
|
|
"target_user": {
|
|
"type": "string"
|
|
},
|
|
"target_user_type": {
|
|
"type": "integer"
|
|
},
|
|
"vanity_url": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"code",
|
|
"created_at",
|
|
"flags",
|
|
"guild",
|
|
"guild_id",
|
|
"inviter",
|
|
"max_age",
|
|
"max_uses",
|
|
"target_user_id",
|
|
"temporary",
|
|
"uses"
|
|
]
|
|
},
|
|
"VoiceState": {
|
|
"type": "object",
|
|
"properties": {
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"member": {
|
|
"$ref": "#/definitions/Member"
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
},
|
|
"token": {
|
|
"type": "string"
|
|
},
|
|
"deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"mute": {
|
|
"type": "boolean"
|
|
},
|
|
"self_deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"self_mute": {
|
|
"type": "boolean"
|
|
},
|
|
"self_stream": {
|
|
"type": "boolean"
|
|
},
|
|
"self_video": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress": {
|
|
"type": "boolean"
|
|
},
|
|
"request_to_speak_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"deaf",
|
|
"guild_id",
|
|
"id",
|
|
"member",
|
|
"mute",
|
|
"self_deaf",
|
|
"self_mute",
|
|
"self_video",
|
|
"session_id",
|
|
"suppress",
|
|
"token",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Webhook": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/WebhookType"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"token": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"application": {
|
|
"$ref": "#/definitions/Application"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"source_guild_id": {
|
|
"type": "string"
|
|
},
|
|
"source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"source_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"source_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"application",
|
|
"application_id",
|
|
"avatar",
|
|
"channel",
|
|
"channel_id",
|
|
"id",
|
|
"name",
|
|
"source_channel",
|
|
"source_channel_id",
|
|
"type",
|
|
"url",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"WebhookType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3
|
|
]
|
|
},
|
|
"Application": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"summary": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"type": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true
|
|
},
|
|
"hook": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"bot_public": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"bot_require_code_grant": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"verify_key": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"redirect_uris": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"rpc_application_state": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"store_application_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"verification_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"interactions_endpoint_url": {
|
|
"type": "string"
|
|
},
|
|
"integration_public": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"integration_require_code_grant": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"discoverability_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"discovery_eligibility_flags": {
|
|
"type": "integer",
|
|
"default": 2240
|
|
},
|
|
"bot": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"tags": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"cover_image": {
|
|
"type": "string"
|
|
},
|
|
"install_params": {
|
|
"type": "object",
|
|
"properties": {
|
|
"scopes": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"permissions": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"permissions",
|
|
"scopes"
|
|
]
|
|
},
|
|
"terms_of_service_url": {
|
|
"type": "string"
|
|
},
|
|
"privacy_policy_url": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"custom_install_url": {
|
|
"type": "string"
|
|
},
|
|
"team": {
|
|
"$ref": "#/definitions/Team"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"description",
|
|
"discoverability_state",
|
|
"discovery_eligibility_flags",
|
|
"flags",
|
|
"hook",
|
|
"id",
|
|
"integration_public",
|
|
"integration_require_code_grant",
|
|
"name",
|
|
"owner",
|
|
"redirect_uris",
|
|
"rpc_application_state",
|
|
"store_application_state",
|
|
"summary",
|
|
"verification_state",
|
|
"verify_key"
|
|
]
|
|
},
|
|
"Team": {
|
|
"type": "object",
|
|
"properties": {
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"members": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/TeamMember"
|
|
}
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"owner_user_id": {
|
|
"type": "string"
|
|
},
|
|
"owner_user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"members",
|
|
"name",
|
|
"owner_user",
|
|
"owner_user_id"
|
|
]
|
|
},
|
|
"TeamMember": {
|
|
"type": "object",
|
|
"properties": {
|
|
"membership_state": {
|
|
"$ref": "#/definitions/TeamMemberState"
|
|
},
|
|
"permissions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"role": {
|
|
"$ref": "#/definitions/TeamMemberRole"
|
|
},
|
|
"team_id": {
|
|
"type": "string"
|
|
},
|
|
"team": {
|
|
"$ref": "#/definitions/Team"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"membership_state",
|
|
"permissions",
|
|
"role",
|
|
"team",
|
|
"team_id",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"TeamMemberState": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"TeamMemberRole": {
|
|
"type": "string",
|
|
"enum": [
|
|
"admin",
|
|
"developer",
|
|
"read_only"
|
|
]
|
|
},
|
|
"GuildWelcomeScreen": {
|
|
"type": "object",
|
|
"properties": {
|
|
"enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"welcome_channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"emoji_id": {
|
|
"type": "string"
|
|
},
|
|
"emoji_name": {
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_id",
|
|
"description"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"description",
|
|
"enabled",
|
|
"welcome_channels"
|
|
]
|
|
},
|
|
"ChannelPermissionOverwrite": {
|
|
"type": "object",
|
|
"properties": {
|
|
"allow": {
|
|
"type": "string"
|
|
},
|
|
"deny": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"allow",
|
|
"deny",
|
|
"id",
|
|
"type"
|
|
]
|
|
},
|
|
"ChannelPermissionOverwriteType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"ReadState": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"public_ack": {
|
|
"type": "string"
|
|
},
|
|
"notifications_cursor": {
|
|
"type": "string"
|
|
},
|
|
"last_pin_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"mention_count": {
|
|
"type": "integer"
|
|
},
|
|
"manual": {
|
|
"type": "boolean"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"id",
|
|
"last_message_id",
|
|
"manual",
|
|
"mention_count",
|
|
"notifications_cursor",
|
|
"public_ack",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Attachment": {
|
|
"type": "object",
|
|
"properties": {
|
|
"filename": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "integer"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
},
|
|
"content_type": {
|
|
"type": "string"
|
|
},
|
|
"message_id": {
|
|
"type": "string"
|
|
},
|
|
"message": {
|
|
"$ref": "#/definitions/Message"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"filename",
|
|
"id",
|
|
"message",
|
|
"message_id",
|
|
"proxy_url",
|
|
"size",
|
|
"url"
|
|
]
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"Reaction": {
|
|
"type": "object",
|
|
"properties": {
|
|
"count": {
|
|
"type": "integer"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"user_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"count",
|
|
"emoji",
|
|
"user_ids"
|
|
]
|
|
},
|
|
"PartialEmoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name"
|
|
]
|
|
},
|
|
"MessageType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
16,
|
|
19,
|
|
20,
|
|
41,
|
|
42,
|
|
43,
|
|
50,
|
|
63,
|
|
255
|
|
]
|
|
},
|
|
"InteractionType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5
|
|
]
|
|
},
|
|
"ApplicationCommandType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4
|
|
]
|
|
},
|
|
"ActionRowComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.ActionRow"
|
|
},
|
|
"components": {
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/ButtonComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/SelectMenuComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/StringSelectMenuComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/TextInputComponent"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"components",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.ActionRow": {
|
|
"type": "number",
|
|
"const": 1
|
|
},
|
|
"ButtonComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.Button"
|
|
},
|
|
"style": {
|
|
"$ref": "#/definitions/ButtonStyle"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"sku_id": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"style",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.Button": {
|
|
"type": "number",
|
|
"const": 2
|
|
},
|
|
"ButtonStyle": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6
|
|
]
|
|
},
|
|
"SelectMenuComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": [
|
|
3,
|
|
5,
|
|
6,
|
|
7,
|
|
8
|
|
],
|
|
"type": "number"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_types": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
},
|
|
"default_values": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuDefaultOption"
|
|
}
|
|
},
|
|
"min_values": {
|
|
"type": "integer"
|
|
},
|
|
"max_values": {
|
|
"type": "integer"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"type"
|
|
]
|
|
},
|
|
"SelectMenuDefaultOption": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"channel",
|
|
"role",
|
|
"user"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"type"
|
|
]
|
|
},
|
|
"StringSelectMenuComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.StringSelect"
|
|
},
|
|
"options": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuOption"
|
|
}
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_types": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
},
|
|
"default_values": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuDefaultOption"
|
|
}
|
|
},
|
|
"min_values": {
|
|
"type": "integer"
|
|
},
|
|
"max_values": {
|
|
"type": "integer"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"options",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.StringSelect": {
|
|
"type": "number",
|
|
"const": 3
|
|
},
|
|
"SelectMenuOption": {
|
|
"type": "object",
|
|
"properties": {
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"default": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"label",
|
|
"value"
|
|
]
|
|
},
|
|
"TextInputComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.TextInput"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"style": {
|
|
"$ref": "#/definitions/TextInputStyle"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"min_length": {
|
|
"type": "integer"
|
|
},
|
|
"max_length": {
|
|
"type": "integer"
|
|
},
|
|
"required": {
|
|
"type": "boolean"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"label",
|
|
"style",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.TextInput": {
|
|
"type": "number",
|
|
"const": 4
|
|
},
|
|
"TextInputStyle": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"Poll": {
|
|
"type": "object",
|
|
"properties": {
|
|
"question": {
|
|
"$ref": "#/definitions/PollMedia"
|
|
},
|
|
"answers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/PollAnswer"
|
|
}
|
|
},
|
|
"expiry": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"allow_multiselect": {
|
|
"type": "boolean"
|
|
},
|
|
"results": {
|
|
"$ref": "#/definitions/PollResult"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"allow_multiselect",
|
|
"answers",
|
|
"expiry",
|
|
"question"
|
|
]
|
|
},
|
|
"PollMedia": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"PollAnswer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"answer_id": {
|
|
"type": "string"
|
|
},
|
|
"poll_media": {
|
|
"$ref": "#/definitions/PollMedia"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"poll_media"
|
|
]
|
|
},
|
|
"PollResult": {
|
|
"type": "object",
|
|
"properties": {
|
|
"is_finalized": {
|
|
"type": "boolean"
|
|
},
|
|
"answer_counts": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/PollAnswerCount"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"answer_counts",
|
|
"is_finalized"
|
|
]
|
|
},
|
|
"PollAnswerCount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"count": {
|
|
"type": "integer"
|
|
},
|
|
"me_voted": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"count",
|
|
"id",
|
|
"me_voted"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"APIWebhookArray": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Webhook"
|
|
},
|
|
"definitions": {
|
|
"Webhook": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/WebhookType"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"token": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"application": {
|
|
"$ref": "#/definitions/Application"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"source_guild_id": {
|
|
"type": "string"
|
|
},
|
|
"source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"source_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"source_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"application",
|
|
"application_id",
|
|
"avatar",
|
|
"channel",
|
|
"channel_id",
|
|
"id",
|
|
"name",
|
|
"source_channel",
|
|
"source_channel_id",
|
|
"type",
|
|
"url",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"WebhookType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3
|
|
]
|
|
},
|
|
"Guild": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"afk_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"afk_timeout": {
|
|
"type": "integer"
|
|
},
|
|
"bans": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Ban"
|
|
}
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"default_message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"discovery_splash": {
|
|
"type": "string"
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer"
|
|
},
|
|
"features": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"primary_category_id": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"large": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"max_members": {
|
|
"type": "integer"
|
|
},
|
|
"max_presences": {
|
|
"type": "integer"
|
|
},
|
|
"max_video_channel_users": {
|
|
"type": "integer"
|
|
},
|
|
"member_count": {
|
|
"type": "integer"
|
|
},
|
|
"presence_count": {
|
|
"type": "integer"
|
|
},
|
|
"members": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Member"
|
|
}
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Channel"
|
|
}
|
|
},
|
|
"template_id": {
|
|
"type": "string"
|
|
},
|
|
"template": {
|
|
"$ref": "#/definitions/Template"
|
|
},
|
|
"emojis": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Emoji"
|
|
}
|
|
},
|
|
"stickers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"invites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Invite"
|
|
}
|
|
},
|
|
"voice_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/VoiceState"
|
|
}
|
|
},
|
|
"webhooks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Webhook"
|
|
}
|
|
},
|
|
"mfa_level": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"owner_id": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"preferred_locale": {
|
|
"type": "string"
|
|
},
|
|
"premium_subscription_count": {
|
|
"type": "integer"
|
|
},
|
|
"premium_tier": {
|
|
"type": "integer"
|
|
},
|
|
"public_updates_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"public_updates_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"rules_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"rules_channel": {
|
|
"type": "string"
|
|
},
|
|
"region": {
|
|
"type": "string"
|
|
},
|
|
"splash": {
|
|
"type": "string"
|
|
},
|
|
"system_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"system_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"system_channel_flags": {
|
|
"type": "integer"
|
|
},
|
|
"unavailable": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"verification_level": {
|
|
"type": "integer"
|
|
},
|
|
"welcome_screen": {
|
|
"$ref": "#/definitions/GuildWelcomeScreen",
|
|
"description": "DEPRECATED: Look at the new Guild onboarding screens."
|
|
},
|
|
"widget_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"widget_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"widget_enabled": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"nsfw_level": {
|
|
"type": "integer"
|
|
},
|
|
"nsfw": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"parent": {
|
|
"type": "string"
|
|
},
|
|
"permissions": {
|
|
"type": "integer"
|
|
},
|
|
"premium_progress_bar_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"channel_ordering": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bans",
|
|
"channel_ordering",
|
|
"channels",
|
|
"emojis",
|
|
"features",
|
|
"id",
|
|
"invites",
|
|
"members",
|
|
"name",
|
|
"nsfw",
|
|
"premium_progress_bar_enabled",
|
|
"public_updates_channel_id",
|
|
"roles",
|
|
"stickers",
|
|
"template",
|
|
"unavailable",
|
|
"voice_states",
|
|
"webhooks",
|
|
"welcome_screen",
|
|
"widget_enabled"
|
|
]
|
|
},
|
|
"Channel": {
|
|
"type": "object",
|
|
"properties": {
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ChannelType"
|
|
},
|
|
"recipients": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Recipient"
|
|
}
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"parent_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"parent": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"owner_id": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"last_pin_timestamp": {
|
|
"type": "integer"
|
|
},
|
|
"default_auto_archive_duration": {
|
|
"type": "integer"
|
|
},
|
|
"permission_overwrites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwrite"
|
|
}
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
},
|
|
"bitrate": {
|
|
"type": "integer"
|
|
},
|
|
"user_limit": {
|
|
"type": "integer"
|
|
},
|
|
"nsfw": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"topic": {
|
|
"type": "string"
|
|
},
|
|
"invites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Invite"
|
|
}
|
|
},
|
|
"retention_policy_id": {
|
|
"type": "string"
|
|
},
|
|
"messages": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Message"
|
|
}
|
|
},
|
|
"voice_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/VoiceState"
|
|
}
|
|
},
|
|
"read_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ReadState"
|
|
}
|
|
},
|
|
"webhooks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Webhook"
|
|
}
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"position": {
|
|
"description": "Must be calculated Channel.calculatePosition",
|
|
"type": "integer"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"created_at",
|
|
"flags",
|
|
"id",
|
|
"nsfw",
|
|
"owner",
|
|
"parent_id",
|
|
"position",
|
|
"type"
|
|
]
|
|
},
|
|
"ChannelType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
33,
|
|
34,
|
|
35,
|
|
64,
|
|
255
|
|
]
|
|
},
|
|
"Recipient": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"closed": {
|
|
"type": "boolean"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"closed",
|
|
"id",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"User": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"theme_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"phone": {
|
|
"type": "string"
|
|
},
|
|
"desktop": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"mobile": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"premium": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_type": {
|
|
"type": "integer"
|
|
},
|
|
"bot": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"bio": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"system": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"nsfw_allowed": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"mfa_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"webauthn_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"totp_secret": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"totp_last_ticket": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"deleted": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"email": {
|
|
"type": "string"
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"public_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"purchased_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"premium_usage_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"rights": {
|
|
"type": "string"
|
|
},
|
|
"sessions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Session"
|
|
}
|
|
},
|
|
"relationships": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Relationship"
|
|
}
|
|
},
|
|
"connected_accounts": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ConnectedAccount"
|
|
}
|
|
},
|
|
"data": {
|
|
"type": "object",
|
|
"properties": {
|
|
"valid_tokens_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"hash": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"valid_tokens_since"
|
|
]
|
|
},
|
|
"fingerprints": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"settings": {
|
|
"$ref": "#/definitions/UserSettings"
|
|
},
|
|
"extended_settings": {
|
|
"type": "string",
|
|
"default": "{}"
|
|
},
|
|
"security_keys": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SecurityKey"
|
|
}
|
|
},
|
|
"badge_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"connected_accounts",
|
|
"created_at",
|
|
"data",
|
|
"deleted",
|
|
"desktop",
|
|
"disabled",
|
|
"discriminator",
|
|
"extended_settings",
|
|
"fingerprints",
|
|
"flags",
|
|
"id",
|
|
"mfa_enabled",
|
|
"mobile",
|
|
"nsfw_allowed",
|
|
"premium",
|
|
"premium_since",
|
|
"premium_type",
|
|
"premium_usage_flags",
|
|
"public_flags",
|
|
"purchased_flags",
|
|
"relationships",
|
|
"rights",
|
|
"security_keys",
|
|
"sessions",
|
|
"system",
|
|
"username",
|
|
"verified",
|
|
"webauthn_enabled"
|
|
]
|
|
},
|
|
"Session": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"client_info": {
|
|
"type": "object",
|
|
"properties": {
|
|
"client": {
|
|
"type": "string"
|
|
},
|
|
"os": {
|
|
"type": "string"
|
|
},
|
|
"version": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"client",
|
|
"os",
|
|
"version"
|
|
]
|
|
},
|
|
"client_status": {
|
|
"$ref": "#/definitions/ClientStatus"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"activities",
|
|
"client_info",
|
|
"client_status",
|
|
"id",
|
|
"session_id",
|
|
"status",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
]
|
|
},
|
|
"ClientStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"desktop": {
|
|
"type": "string"
|
|
},
|
|
"mobile": {
|
|
"type": "string"
|
|
},
|
|
"web": {
|
|
"type": "string"
|
|
},
|
|
"embedded": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Relationship": {
|
|
"type": "object",
|
|
"properties": {
|
|
"from_id": {
|
|
"type": "string"
|
|
},
|
|
"from": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"to_id": {
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"nickname": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/RelationshipType"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"from",
|
|
"from_id",
|
|
"id",
|
|
"to",
|
|
"to_id",
|
|
"type"
|
|
]
|
|
},
|
|
"RelationshipType": {
|
|
"type": "number",
|
|
"enum": [
|
|
4,
|
|
3,
|
|
2,
|
|
1
|
|
]
|
|
},
|
|
"ConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"external_id": {
|
|
"type": "string"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"friend_sync": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"revoked": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"show_activity": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"visibility": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"integrations": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"metadata_": {},
|
|
"metadata_visibility": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"two_way_link": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"token_data": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/ConnectedAccountTokenData"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"external_id",
|
|
"id",
|
|
"name",
|
|
"type",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"ConnectedAccountTokenData": {
|
|
"type": "object",
|
|
"properties": {
|
|
"access_token": {
|
|
"type": "string"
|
|
},
|
|
"token_type": {
|
|
"type": "string"
|
|
},
|
|
"scope": {
|
|
"type": "string"
|
|
},
|
|
"refresh_token": {
|
|
"type": "string"
|
|
},
|
|
"expires_in": {
|
|
"type": "integer"
|
|
},
|
|
"expires_at": {
|
|
"type": "integer"
|
|
},
|
|
"fetched_at": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"access_token",
|
|
"fetched_at"
|
|
]
|
|
},
|
|
"UserSettings": {
|
|
"type": "object",
|
|
"properties": {
|
|
"index": {
|
|
"type": "string"
|
|
},
|
|
"afk_timeout": {
|
|
"type": "integer",
|
|
"default": 3600
|
|
},
|
|
"allow_accessibility_detection": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"animate_emoji": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"animate_stickers": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"contact_sync_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"convert_emoticons": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"custom_status": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/CustomStatus"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"default_guilds_restricted": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"detect_platform_accounts": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"developer_mode": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"disable_games_tab": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"enable_tts_command": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"friend_discovery_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"friend_source_flags": {
|
|
"$ref": "#/definitions/FriendSourceFlags"
|
|
},
|
|
"gateway_connected": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"gif_auto_play": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"guild_folders": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/GuildFolder"
|
|
},
|
|
"default": []
|
|
},
|
|
"guild_positions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"inline_attachment_media": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"inline_embed_media": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"locale": {
|
|
"type": "string",
|
|
"default": "en-US"
|
|
},
|
|
"message_display_compact": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"native_phone_integration_enabled": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"render_embeds": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"render_reactions": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"restricted_guilds": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"show_current_game": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string",
|
|
"default": "online"
|
|
},
|
|
"stream_notifications_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"theme": {
|
|
"enum": [
|
|
"dark",
|
|
"light"
|
|
],
|
|
"type": "string",
|
|
"default": "dark"
|
|
},
|
|
"timezone_offset": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"view_nsfw_guilds": {
|
|
"type": "boolean",
|
|
"default": true
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk_timeout",
|
|
"allow_accessibility_detection",
|
|
"animate_emoji",
|
|
"animate_stickers",
|
|
"contact_sync_enabled",
|
|
"convert_emoticons",
|
|
"custom_status",
|
|
"default_guilds_restricted",
|
|
"detect_platform_accounts",
|
|
"developer_mode",
|
|
"disable_games_tab",
|
|
"enable_tts_command",
|
|
"explicit_content_filter",
|
|
"friend_discovery_flags",
|
|
"friend_source_flags",
|
|
"gateway_connected",
|
|
"gif_auto_play",
|
|
"guild_folders",
|
|
"guild_positions",
|
|
"index",
|
|
"inline_attachment_media",
|
|
"inline_embed_media",
|
|
"locale",
|
|
"message_display_compact",
|
|
"native_phone_integration_enabled",
|
|
"render_embeds",
|
|
"render_reactions",
|
|
"restricted_guilds",
|
|
"show_current_game",
|
|
"status",
|
|
"stream_notifications_enabled",
|
|
"theme",
|
|
"timezone_offset",
|
|
"view_nsfw_guilds"
|
|
]
|
|
},
|
|
"CustomStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"emoji_id": {
|
|
"type": "string"
|
|
},
|
|
"emoji_name": {
|
|
"type": "string"
|
|
},
|
|
"expires_at": {
|
|
"type": "integer"
|
|
},
|
|
"text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"FriendSourceFlags": {
|
|
"type": "object",
|
|
"properties": {
|
|
"all": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"all"
|
|
]
|
|
},
|
|
"GuildFolder": {
|
|
"type": "object",
|
|
"properties": {
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"guild_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"color",
|
|
"guild_ids",
|
|
"id",
|
|
"name"
|
|
]
|
|
},
|
|
"SecurityKey": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"key_id": {
|
|
"type": "string"
|
|
},
|
|
"public_key": {
|
|
"type": "string"
|
|
},
|
|
"counter": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"counter",
|
|
"id",
|
|
"key_id",
|
|
"name",
|
|
"public_key",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"ChannelPermissionOverwrite": {
|
|
"type": "object",
|
|
"properties": {
|
|
"allow": {
|
|
"type": "string"
|
|
},
|
|
"deny": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"allow",
|
|
"deny",
|
|
"id",
|
|
"type"
|
|
]
|
|
},
|
|
"ChannelPermissionOverwriteType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"Invite": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "string"
|
|
},
|
|
"temporary": {
|
|
"type": "boolean"
|
|
},
|
|
"uses": {
|
|
"type": "integer"
|
|
},
|
|
"max_uses": {
|
|
"type": "integer"
|
|
},
|
|
"max_age": {
|
|
"type": "integer"
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"expires_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"inviter_id": {
|
|
"type": "string"
|
|
},
|
|
"inviter": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"target_user_id": {
|
|
"type": "string"
|
|
},
|
|
"target_user": {
|
|
"type": "string"
|
|
},
|
|
"target_user_type": {
|
|
"type": "integer"
|
|
},
|
|
"vanity_url": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"code",
|
|
"created_at",
|
|
"flags",
|
|
"guild",
|
|
"guild_id",
|
|
"inviter",
|
|
"max_age",
|
|
"max_uses",
|
|
"target_user_id",
|
|
"temporary",
|
|
"uses"
|
|
]
|
|
},
|
|
"Message": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"author_id": {
|
|
"type": "string"
|
|
},
|
|
"author": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"member_id": {
|
|
"type": "string"
|
|
},
|
|
"member": {
|
|
"$ref": "#/definitions/Member"
|
|
},
|
|
"webhook_id": {
|
|
"type": "string"
|
|
},
|
|
"webhook": {
|
|
"$ref": "#/definitions/Webhook"
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"application": {
|
|
"$ref": "#/definitions/Application"
|
|
},
|
|
"content": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"edited_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"tts": {
|
|
"type": "boolean"
|
|
},
|
|
"mention_everyone": {
|
|
"type": "boolean"
|
|
},
|
|
"mentions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/User"
|
|
}
|
|
},
|
|
"mention_roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"mention_channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Channel"
|
|
}
|
|
},
|
|
"sticker_items": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"attachments": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Attachment"
|
|
}
|
|
},
|
|
"embeds": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Embed"
|
|
}
|
|
},
|
|
"reactions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Reaction"
|
|
}
|
|
},
|
|
"nonce": {
|
|
"type": "string"
|
|
},
|
|
"pinned_at": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"pinned": {
|
|
"type": "boolean"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/MessageType"
|
|
},
|
|
"activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "integer"
|
|
},
|
|
"party_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"party_id",
|
|
"type"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"message_reference": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"message_id"
|
|
]
|
|
},
|
|
"referenced_message": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/Message"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"interaction": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/InteractionType"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"type"
|
|
]
|
|
},
|
|
"interaction_metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/InteractionType"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"authorizing_integration_owners": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"command_type": {
|
|
"$ref": "#/definitions/ApplicationCommandType"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"authorizing_integration_owners",
|
|
"command_type",
|
|
"id",
|
|
"name",
|
|
"type",
|
|
"user_id"
|
|
]
|
|
},
|
|
"components": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ActionRowComponent"
|
|
}
|
|
},
|
|
"poll": {
|
|
"$ref": "#/definitions/Poll"
|
|
},
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"embeds",
|
|
"flags",
|
|
"id",
|
|
"mention_channels",
|
|
"mention_roles",
|
|
"mentions",
|
|
"pinned",
|
|
"reactions",
|
|
"timestamp",
|
|
"type"
|
|
]
|
|
},
|
|
"Member": {
|
|
"type": "object",
|
|
"properties": {
|
|
"index": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"nick": {
|
|
"type": "string"
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"joined_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"premium_since": {
|
|
"type": "integer"
|
|
},
|
|
"deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"mute": {
|
|
"type": "boolean"
|
|
},
|
|
"pending": {
|
|
"type": "boolean"
|
|
},
|
|
"settings": {
|
|
"$ref": "#/definitions/UserGuildSettings"
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"joined_by": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"theme_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"communication_disabled_until": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"banner",
|
|
"bio",
|
|
"communication_disabled_until",
|
|
"deaf",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"index",
|
|
"joined_at",
|
|
"joined_by",
|
|
"mute",
|
|
"pending",
|
|
"roles",
|
|
"settings",
|
|
"user"
|
|
]
|
|
},
|
|
"Role": {
|
|
"type": "object",
|
|
"properties": {
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"hoist": {
|
|
"type": "boolean"
|
|
},
|
|
"managed": {
|
|
"type": "boolean"
|
|
},
|
|
"mentionable": {
|
|
"type": "boolean"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"permissions": {
|
|
"type": "string"
|
|
},
|
|
"position": {
|
|
"type": "integer"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"unicode_emoji": {
|
|
"type": "string"
|
|
},
|
|
"tags": {
|
|
"type": "object",
|
|
"properties": {
|
|
"bot_id": {
|
|
"type": "string"
|
|
},
|
|
"integration_id": {
|
|
"type": "string"
|
|
},
|
|
"premium_subscriber": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"colors": {
|
|
"$ref": "#/definitions/RoleColors"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"color",
|
|
"colors",
|
|
"flags",
|
|
"guild",
|
|
"guild_id",
|
|
"hoist",
|
|
"id",
|
|
"managed",
|
|
"mentionable",
|
|
"name",
|
|
"permissions",
|
|
"position"
|
|
]
|
|
},
|
|
"RoleColors": {
|
|
"type": "object",
|
|
"properties": {
|
|
"primary_color": {
|
|
"type": "integer"
|
|
},
|
|
"secondary_color": {
|
|
"type": "integer"
|
|
},
|
|
"tertiary_color": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"primary_color"
|
|
]
|
|
},
|
|
"UserGuildSettings": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_overrides": {
|
|
"anyOf": [
|
|
{
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"$ref": "#/definitions/ChannelOverride"
|
|
}
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mobile_push": {
|
|
"type": "boolean"
|
|
},
|
|
"mute_config": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress_everyone": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress_roles": {
|
|
"type": "boolean"
|
|
},
|
|
"version": {
|
|
"type": "integer"
|
|
},
|
|
"guild_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"mute_scheduled_events": {
|
|
"type": "boolean"
|
|
},
|
|
"hide_muted_channels": {
|
|
"type": "boolean"
|
|
},
|
|
"notify_highlights": {
|
|
"type": "integer",
|
|
"const": 0
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_overrides",
|
|
"flags",
|
|
"guild_id",
|
|
"hide_muted_channels",
|
|
"message_notifications",
|
|
"mobile_push",
|
|
"mute_config",
|
|
"mute_scheduled_events",
|
|
"muted",
|
|
"notify_highlights",
|
|
"suppress_everyone",
|
|
"suppress_roles",
|
|
"version"
|
|
]
|
|
},
|
|
"ChannelOverride": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_id",
|
|
"message_notifications",
|
|
"mute_config",
|
|
"muted"
|
|
]
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"Application": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"summary": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"type": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true
|
|
},
|
|
"hook": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"bot_public": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"bot_require_code_grant": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"verify_key": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"redirect_uris": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"rpc_application_state": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"store_application_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"verification_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"interactions_endpoint_url": {
|
|
"type": "string"
|
|
},
|
|
"integration_public": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"integration_require_code_grant": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"discoverability_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"discovery_eligibility_flags": {
|
|
"type": "integer",
|
|
"default": 2240
|
|
},
|
|
"bot": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"tags": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"cover_image": {
|
|
"type": "string"
|
|
},
|
|
"install_params": {
|
|
"type": "object",
|
|
"properties": {
|
|
"scopes": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"permissions": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"permissions",
|
|
"scopes"
|
|
]
|
|
},
|
|
"terms_of_service_url": {
|
|
"type": "string"
|
|
},
|
|
"privacy_policy_url": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"custom_install_url": {
|
|
"type": "string"
|
|
},
|
|
"team": {
|
|
"$ref": "#/definitions/Team"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"description",
|
|
"discoverability_state",
|
|
"discovery_eligibility_flags",
|
|
"flags",
|
|
"hook",
|
|
"id",
|
|
"integration_public",
|
|
"integration_require_code_grant",
|
|
"name",
|
|
"owner",
|
|
"redirect_uris",
|
|
"rpc_application_state",
|
|
"store_application_state",
|
|
"summary",
|
|
"verification_state",
|
|
"verify_key"
|
|
]
|
|
},
|
|
"Team": {
|
|
"type": "object",
|
|
"properties": {
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"members": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/TeamMember"
|
|
}
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"owner_user_id": {
|
|
"type": "string"
|
|
},
|
|
"owner_user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"members",
|
|
"name",
|
|
"owner_user",
|
|
"owner_user_id"
|
|
]
|
|
},
|
|
"TeamMember": {
|
|
"type": "object",
|
|
"properties": {
|
|
"membership_state": {
|
|
"$ref": "#/definitions/TeamMemberState"
|
|
},
|
|
"permissions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"role": {
|
|
"$ref": "#/definitions/TeamMemberRole"
|
|
},
|
|
"team_id": {
|
|
"type": "string"
|
|
},
|
|
"team": {
|
|
"$ref": "#/definitions/Team"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"membership_state",
|
|
"permissions",
|
|
"role",
|
|
"team",
|
|
"team_id",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"TeamMemberState": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"TeamMemberRole": {
|
|
"type": "string",
|
|
"enum": [
|
|
"admin",
|
|
"developer",
|
|
"read_only"
|
|
]
|
|
},
|
|
"Sticker": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"available": {
|
|
"type": "boolean"
|
|
},
|
|
"tags": {
|
|
"type": "string"
|
|
},
|
|
"pack_id": {
|
|
"type": "string"
|
|
},
|
|
"pack": {
|
|
"$ref": "#/definitions/StickerPack"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/StickerType"
|
|
},
|
|
"format_type": {
|
|
"$ref": "#/definitions/StickerFormatType"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"format_type",
|
|
"id",
|
|
"name",
|
|
"pack",
|
|
"type"
|
|
]
|
|
},
|
|
"StickerPack": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"banner_asset_id": {
|
|
"type": "string"
|
|
},
|
|
"stickers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"cover_sticker_id": {
|
|
"type": "string"
|
|
},
|
|
"cover_sticker": {
|
|
"$ref": "#/definitions/Sticker"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"stickers"
|
|
]
|
|
},
|
|
"StickerType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"StickerFormatType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4
|
|
]
|
|
},
|
|
"Attachment": {
|
|
"type": "object",
|
|
"properties": {
|
|
"filename": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "integer"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
},
|
|
"content_type": {
|
|
"type": "string"
|
|
},
|
|
"message_id": {
|
|
"type": "string"
|
|
},
|
|
"message": {
|
|
"$ref": "#/definitions/Message"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"filename",
|
|
"id",
|
|
"message",
|
|
"message_id",
|
|
"proxy_url",
|
|
"size",
|
|
"url"
|
|
]
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"Reaction": {
|
|
"type": "object",
|
|
"properties": {
|
|
"count": {
|
|
"type": "integer"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"user_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"count",
|
|
"emoji",
|
|
"user_ids"
|
|
]
|
|
},
|
|
"PartialEmoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name"
|
|
]
|
|
},
|
|
"MessageType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
16,
|
|
19,
|
|
20,
|
|
41,
|
|
42,
|
|
43,
|
|
50,
|
|
63,
|
|
255
|
|
]
|
|
},
|
|
"InteractionType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5
|
|
]
|
|
},
|
|
"ApplicationCommandType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4
|
|
]
|
|
},
|
|
"ActionRowComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.ActionRow"
|
|
},
|
|
"components": {
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/ButtonComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/SelectMenuComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/StringSelectMenuComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/TextInputComponent"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"components",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.ActionRow": {
|
|
"type": "number",
|
|
"const": 1
|
|
},
|
|
"ButtonComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.Button"
|
|
},
|
|
"style": {
|
|
"$ref": "#/definitions/ButtonStyle"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"sku_id": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"style",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.Button": {
|
|
"type": "number",
|
|
"const": 2
|
|
},
|
|
"ButtonStyle": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6
|
|
]
|
|
},
|
|
"SelectMenuComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": [
|
|
3,
|
|
5,
|
|
6,
|
|
7,
|
|
8
|
|
],
|
|
"type": "number"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_types": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
},
|
|
"default_values": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuDefaultOption"
|
|
}
|
|
},
|
|
"min_values": {
|
|
"type": "integer"
|
|
},
|
|
"max_values": {
|
|
"type": "integer"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"type"
|
|
]
|
|
},
|
|
"SelectMenuDefaultOption": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"channel",
|
|
"role",
|
|
"user"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"type"
|
|
]
|
|
},
|
|
"StringSelectMenuComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.StringSelect"
|
|
},
|
|
"options": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuOption"
|
|
}
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_types": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
},
|
|
"default_values": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuDefaultOption"
|
|
}
|
|
},
|
|
"min_values": {
|
|
"type": "integer"
|
|
},
|
|
"max_values": {
|
|
"type": "integer"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"options",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.StringSelect": {
|
|
"type": "number",
|
|
"const": 3
|
|
},
|
|
"SelectMenuOption": {
|
|
"type": "object",
|
|
"properties": {
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"default": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"label",
|
|
"value"
|
|
]
|
|
},
|
|
"TextInputComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.TextInput"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"style": {
|
|
"$ref": "#/definitions/TextInputStyle"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"min_length": {
|
|
"type": "integer"
|
|
},
|
|
"max_length": {
|
|
"type": "integer"
|
|
},
|
|
"required": {
|
|
"type": "boolean"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"label",
|
|
"style",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.TextInput": {
|
|
"type": "number",
|
|
"const": 4
|
|
},
|
|
"TextInputStyle": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"Poll": {
|
|
"type": "object",
|
|
"properties": {
|
|
"question": {
|
|
"$ref": "#/definitions/PollMedia"
|
|
},
|
|
"answers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/PollAnswer"
|
|
}
|
|
},
|
|
"expiry": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"allow_multiselect": {
|
|
"type": "boolean"
|
|
},
|
|
"results": {
|
|
"$ref": "#/definitions/PollResult"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"allow_multiselect",
|
|
"answers",
|
|
"expiry",
|
|
"question"
|
|
]
|
|
},
|
|
"PollMedia": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"PollAnswer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"answer_id": {
|
|
"type": "string"
|
|
},
|
|
"poll_media": {
|
|
"$ref": "#/definitions/PollMedia"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"poll_media"
|
|
]
|
|
},
|
|
"PollResult": {
|
|
"type": "object",
|
|
"properties": {
|
|
"is_finalized": {
|
|
"type": "boolean"
|
|
},
|
|
"answer_counts": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/PollAnswerCount"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"answer_counts",
|
|
"is_finalized"
|
|
]
|
|
},
|
|
"PollAnswerCount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"count": {
|
|
"type": "integer"
|
|
},
|
|
"me_voted": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"count",
|
|
"id",
|
|
"me_voted"
|
|
]
|
|
},
|
|
"VoiceState": {
|
|
"type": "object",
|
|
"properties": {
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"member": {
|
|
"$ref": "#/definitions/Member"
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
},
|
|
"token": {
|
|
"type": "string"
|
|
},
|
|
"deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"mute": {
|
|
"type": "boolean"
|
|
},
|
|
"self_deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"self_mute": {
|
|
"type": "boolean"
|
|
},
|
|
"self_stream": {
|
|
"type": "boolean"
|
|
},
|
|
"self_video": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress": {
|
|
"type": "boolean"
|
|
},
|
|
"request_to_speak_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"deaf",
|
|
"guild_id",
|
|
"id",
|
|
"member",
|
|
"mute",
|
|
"self_deaf",
|
|
"self_mute",
|
|
"self_video",
|
|
"session_id",
|
|
"suppress",
|
|
"token",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"ReadState": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"public_ack": {
|
|
"type": "string"
|
|
},
|
|
"notifications_cursor": {
|
|
"type": "string"
|
|
},
|
|
"last_pin_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"mention_count": {
|
|
"type": "integer"
|
|
},
|
|
"manual": {
|
|
"type": "boolean"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"id",
|
|
"last_message_id",
|
|
"manual",
|
|
"mention_count",
|
|
"notifications_cursor",
|
|
"public_ack",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Ban": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"executor_id": {
|
|
"type": "string"
|
|
},
|
|
"executor": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"ip": {
|
|
"type": "string"
|
|
},
|
|
"reason": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"executor",
|
|
"executor_id",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"ip",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Template": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"usage_count": {
|
|
"type": "integer"
|
|
},
|
|
"creator_id": {
|
|
"type": "string"
|
|
},
|
|
"creator": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"updated_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"source_guild_id": {
|
|
"type": "string"
|
|
},
|
|
"source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"serialized_source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"code",
|
|
"created_at",
|
|
"creator",
|
|
"creator_id",
|
|
"id",
|
|
"name",
|
|
"serialized_source_guild",
|
|
"source_guild",
|
|
"source_guild_id",
|
|
"updated_at"
|
|
]
|
|
},
|
|
"Emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"animated": {
|
|
"type": "boolean"
|
|
},
|
|
"available": {
|
|
"type": "boolean"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"managed": {
|
|
"type": "boolean"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"require_colons": {
|
|
"type": "boolean"
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"groups": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"available",
|
|
"groups",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"managed",
|
|
"name",
|
|
"require_colons",
|
|
"roles",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"GuildWelcomeScreen": {
|
|
"type": "object",
|
|
"properties": {
|
|
"enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"welcome_channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"emoji_id": {
|
|
"type": "string"
|
|
},
|
|
"emoji_name": {
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_id",
|
|
"description"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"description",
|
|
"enabled",
|
|
"welcome_channels"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"APIDiscoveryCategoryArray": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Categories"
|
|
},
|
|
"definitions": {
|
|
"Categories": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"localizations": {
|
|
"type": "string"
|
|
},
|
|
"is_primary": {
|
|
"type": "boolean"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"is_primary",
|
|
"localizations",
|
|
"name"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"APIGeneralConfiguration": {
|
|
"type": "object",
|
|
"properties": {
|
|
"instanceName": {
|
|
"type": "string",
|
|
"default": "Spacebar Instance"
|
|
},
|
|
"instanceDescription": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
],
|
|
"default": "This is a Spacebar instance made in the pre-release days"
|
|
},
|
|
"frontPage": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
],
|
|
"default": null
|
|
},
|
|
"tosPage": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
],
|
|
"default": null
|
|
},
|
|
"correspondenceEmail": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
],
|
|
"default": null
|
|
},
|
|
"correspondenceUserID": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
],
|
|
"default": null
|
|
},
|
|
"image": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
],
|
|
"default": null
|
|
},
|
|
"instanceId": {
|
|
"type": "string"
|
|
},
|
|
"autoCreateBotUsers": {
|
|
"type": "boolean",
|
|
"default": false
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"autoCreateBotUsers",
|
|
"correspondenceEmail",
|
|
"correspondenceUserID",
|
|
"frontPage",
|
|
"image",
|
|
"instanceDescription",
|
|
"instanceId",
|
|
"instanceName",
|
|
"tosPage"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"APIChannelArray": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"definitions": {
|
|
"Channel": {
|
|
"type": "object",
|
|
"properties": {
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ChannelType"
|
|
},
|
|
"recipients": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Recipient"
|
|
}
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"parent_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"parent": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"owner_id": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"last_pin_timestamp": {
|
|
"type": "integer"
|
|
},
|
|
"default_auto_archive_duration": {
|
|
"type": "integer"
|
|
},
|
|
"permission_overwrites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwrite"
|
|
}
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
},
|
|
"bitrate": {
|
|
"type": "integer"
|
|
},
|
|
"user_limit": {
|
|
"type": "integer"
|
|
},
|
|
"nsfw": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"topic": {
|
|
"type": "string"
|
|
},
|
|
"invites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Invite"
|
|
}
|
|
},
|
|
"retention_policy_id": {
|
|
"type": "string"
|
|
},
|
|
"messages": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Message"
|
|
}
|
|
},
|
|
"voice_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/VoiceState"
|
|
}
|
|
},
|
|
"read_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ReadState"
|
|
}
|
|
},
|
|
"webhooks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Webhook"
|
|
}
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"position": {
|
|
"description": "Must be calculated Channel.calculatePosition",
|
|
"type": "integer"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"created_at",
|
|
"flags",
|
|
"id",
|
|
"nsfw",
|
|
"owner",
|
|
"parent_id",
|
|
"position",
|
|
"type"
|
|
]
|
|
},
|
|
"ChannelType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
33,
|
|
34,
|
|
35,
|
|
64,
|
|
255
|
|
]
|
|
},
|
|
"Recipient": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"closed": {
|
|
"type": "boolean"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"closed",
|
|
"id",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"User": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"theme_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"phone": {
|
|
"type": "string"
|
|
},
|
|
"desktop": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"mobile": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"premium": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_type": {
|
|
"type": "integer"
|
|
},
|
|
"bot": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"bio": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"system": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"nsfw_allowed": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"mfa_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"webauthn_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"totp_secret": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"totp_last_ticket": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"deleted": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"email": {
|
|
"type": "string"
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"public_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"purchased_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"premium_usage_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"rights": {
|
|
"type": "string"
|
|
},
|
|
"sessions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Session"
|
|
}
|
|
},
|
|
"relationships": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Relationship"
|
|
}
|
|
},
|
|
"connected_accounts": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ConnectedAccount"
|
|
}
|
|
},
|
|
"data": {
|
|
"type": "object",
|
|
"properties": {
|
|
"valid_tokens_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"hash": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"valid_tokens_since"
|
|
]
|
|
},
|
|
"fingerprints": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"settings": {
|
|
"$ref": "#/definitions/UserSettings"
|
|
},
|
|
"extended_settings": {
|
|
"type": "string",
|
|
"default": "{}"
|
|
},
|
|
"security_keys": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SecurityKey"
|
|
}
|
|
},
|
|
"badge_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"connected_accounts",
|
|
"created_at",
|
|
"data",
|
|
"deleted",
|
|
"desktop",
|
|
"disabled",
|
|
"discriminator",
|
|
"extended_settings",
|
|
"fingerprints",
|
|
"flags",
|
|
"id",
|
|
"mfa_enabled",
|
|
"mobile",
|
|
"nsfw_allowed",
|
|
"premium",
|
|
"premium_since",
|
|
"premium_type",
|
|
"premium_usage_flags",
|
|
"public_flags",
|
|
"purchased_flags",
|
|
"relationships",
|
|
"rights",
|
|
"security_keys",
|
|
"sessions",
|
|
"system",
|
|
"username",
|
|
"verified",
|
|
"webauthn_enabled"
|
|
]
|
|
},
|
|
"Session": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"client_info": {
|
|
"type": "object",
|
|
"properties": {
|
|
"client": {
|
|
"type": "string"
|
|
},
|
|
"os": {
|
|
"type": "string"
|
|
},
|
|
"version": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"client",
|
|
"os",
|
|
"version"
|
|
]
|
|
},
|
|
"client_status": {
|
|
"$ref": "#/definitions/ClientStatus"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"activities",
|
|
"client_info",
|
|
"client_status",
|
|
"id",
|
|
"session_id",
|
|
"status",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
]
|
|
},
|
|
"ClientStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"desktop": {
|
|
"type": "string"
|
|
},
|
|
"mobile": {
|
|
"type": "string"
|
|
},
|
|
"web": {
|
|
"type": "string"
|
|
},
|
|
"embedded": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Relationship": {
|
|
"type": "object",
|
|
"properties": {
|
|
"from_id": {
|
|
"type": "string"
|
|
},
|
|
"from": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"to_id": {
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"nickname": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/RelationshipType"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"from",
|
|
"from_id",
|
|
"id",
|
|
"to",
|
|
"to_id",
|
|
"type"
|
|
]
|
|
},
|
|
"RelationshipType": {
|
|
"type": "number",
|
|
"enum": [
|
|
4,
|
|
3,
|
|
2,
|
|
1
|
|
]
|
|
},
|
|
"ConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"external_id": {
|
|
"type": "string"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"friend_sync": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"revoked": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"show_activity": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"visibility": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"integrations": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"metadata_": {},
|
|
"metadata_visibility": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"two_way_link": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"token_data": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/ConnectedAccountTokenData"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"external_id",
|
|
"id",
|
|
"name",
|
|
"type",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"ConnectedAccountTokenData": {
|
|
"type": "object",
|
|
"properties": {
|
|
"access_token": {
|
|
"type": "string"
|
|
},
|
|
"token_type": {
|
|
"type": "string"
|
|
},
|
|
"scope": {
|
|
"type": "string"
|
|
},
|
|
"refresh_token": {
|
|
"type": "string"
|
|
},
|
|
"expires_in": {
|
|
"type": "integer"
|
|
},
|
|
"expires_at": {
|
|
"type": "integer"
|
|
},
|
|
"fetched_at": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"access_token",
|
|
"fetched_at"
|
|
]
|
|
},
|
|
"UserSettings": {
|
|
"type": "object",
|
|
"properties": {
|
|
"index": {
|
|
"type": "string"
|
|
},
|
|
"afk_timeout": {
|
|
"type": "integer",
|
|
"default": 3600
|
|
},
|
|
"allow_accessibility_detection": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"animate_emoji": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"animate_stickers": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"contact_sync_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"convert_emoticons": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"custom_status": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/CustomStatus"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"default_guilds_restricted": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"detect_platform_accounts": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"developer_mode": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"disable_games_tab": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"enable_tts_command": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"friend_discovery_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"friend_source_flags": {
|
|
"$ref": "#/definitions/FriendSourceFlags"
|
|
},
|
|
"gateway_connected": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"gif_auto_play": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"guild_folders": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/GuildFolder"
|
|
},
|
|
"default": []
|
|
},
|
|
"guild_positions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"inline_attachment_media": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"inline_embed_media": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"locale": {
|
|
"type": "string",
|
|
"default": "en-US"
|
|
},
|
|
"message_display_compact": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"native_phone_integration_enabled": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"render_embeds": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"render_reactions": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"restricted_guilds": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"show_current_game": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string",
|
|
"default": "online"
|
|
},
|
|
"stream_notifications_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"theme": {
|
|
"enum": [
|
|
"dark",
|
|
"light"
|
|
],
|
|
"type": "string",
|
|
"default": "dark"
|
|
},
|
|
"timezone_offset": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"view_nsfw_guilds": {
|
|
"type": "boolean",
|
|
"default": true
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk_timeout",
|
|
"allow_accessibility_detection",
|
|
"animate_emoji",
|
|
"animate_stickers",
|
|
"contact_sync_enabled",
|
|
"convert_emoticons",
|
|
"custom_status",
|
|
"default_guilds_restricted",
|
|
"detect_platform_accounts",
|
|
"developer_mode",
|
|
"disable_games_tab",
|
|
"enable_tts_command",
|
|
"explicit_content_filter",
|
|
"friend_discovery_flags",
|
|
"friend_source_flags",
|
|
"gateway_connected",
|
|
"gif_auto_play",
|
|
"guild_folders",
|
|
"guild_positions",
|
|
"index",
|
|
"inline_attachment_media",
|
|
"inline_embed_media",
|
|
"locale",
|
|
"message_display_compact",
|
|
"native_phone_integration_enabled",
|
|
"render_embeds",
|
|
"render_reactions",
|
|
"restricted_guilds",
|
|
"show_current_game",
|
|
"status",
|
|
"stream_notifications_enabled",
|
|
"theme",
|
|
"timezone_offset",
|
|
"view_nsfw_guilds"
|
|
]
|
|
},
|
|
"CustomStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"emoji_id": {
|
|
"type": "string"
|
|
},
|
|
"emoji_name": {
|
|
"type": "string"
|
|
},
|
|
"expires_at": {
|
|
"type": "integer"
|
|
},
|
|
"text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"FriendSourceFlags": {
|
|
"type": "object",
|
|
"properties": {
|
|
"all": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"all"
|
|
]
|
|
},
|
|
"GuildFolder": {
|
|
"type": "object",
|
|
"properties": {
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"guild_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"color",
|
|
"guild_ids",
|
|
"id",
|
|
"name"
|
|
]
|
|
},
|
|
"SecurityKey": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"key_id": {
|
|
"type": "string"
|
|
},
|
|
"public_key": {
|
|
"type": "string"
|
|
},
|
|
"counter": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"counter",
|
|
"id",
|
|
"key_id",
|
|
"name",
|
|
"public_key",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Guild": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"afk_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"afk_timeout": {
|
|
"type": "integer"
|
|
},
|
|
"bans": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Ban"
|
|
}
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"default_message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"discovery_splash": {
|
|
"type": "string"
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer"
|
|
},
|
|
"features": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"primary_category_id": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"large": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"max_members": {
|
|
"type": "integer"
|
|
},
|
|
"max_presences": {
|
|
"type": "integer"
|
|
},
|
|
"max_video_channel_users": {
|
|
"type": "integer"
|
|
},
|
|
"member_count": {
|
|
"type": "integer"
|
|
},
|
|
"presence_count": {
|
|
"type": "integer"
|
|
},
|
|
"members": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Member"
|
|
}
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Channel"
|
|
}
|
|
},
|
|
"template_id": {
|
|
"type": "string"
|
|
},
|
|
"template": {
|
|
"$ref": "#/definitions/Template"
|
|
},
|
|
"emojis": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Emoji"
|
|
}
|
|
},
|
|
"stickers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"invites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Invite"
|
|
}
|
|
},
|
|
"voice_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/VoiceState"
|
|
}
|
|
},
|
|
"webhooks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Webhook"
|
|
}
|
|
},
|
|
"mfa_level": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"owner_id": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"preferred_locale": {
|
|
"type": "string"
|
|
},
|
|
"premium_subscription_count": {
|
|
"type": "integer"
|
|
},
|
|
"premium_tier": {
|
|
"type": "integer"
|
|
},
|
|
"public_updates_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"public_updates_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"rules_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"rules_channel": {
|
|
"type": "string"
|
|
},
|
|
"region": {
|
|
"type": "string"
|
|
},
|
|
"splash": {
|
|
"type": "string"
|
|
},
|
|
"system_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"system_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"system_channel_flags": {
|
|
"type": "integer"
|
|
},
|
|
"unavailable": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"verification_level": {
|
|
"type": "integer"
|
|
},
|
|
"welcome_screen": {
|
|
"$ref": "#/definitions/GuildWelcomeScreen",
|
|
"description": "DEPRECATED: Look at the new Guild onboarding screens."
|
|
},
|
|
"widget_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"widget_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"widget_enabled": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"nsfw_level": {
|
|
"type": "integer"
|
|
},
|
|
"nsfw": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"parent": {
|
|
"type": "string"
|
|
},
|
|
"permissions": {
|
|
"type": "integer"
|
|
},
|
|
"premium_progress_bar_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"channel_ordering": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bans",
|
|
"channel_ordering",
|
|
"channels",
|
|
"emojis",
|
|
"features",
|
|
"id",
|
|
"invites",
|
|
"members",
|
|
"name",
|
|
"nsfw",
|
|
"premium_progress_bar_enabled",
|
|
"public_updates_channel_id",
|
|
"roles",
|
|
"stickers",
|
|
"template",
|
|
"unavailable",
|
|
"voice_states",
|
|
"webhooks",
|
|
"welcome_screen",
|
|
"widget_enabled"
|
|
]
|
|
},
|
|
"Ban": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"executor_id": {
|
|
"type": "string"
|
|
},
|
|
"executor": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"ip": {
|
|
"type": "string"
|
|
},
|
|
"reason": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"executor",
|
|
"executor_id",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"ip",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Member": {
|
|
"type": "object",
|
|
"properties": {
|
|
"index": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"nick": {
|
|
"type": "string"
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"joined_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"premium_since": {
|
|
"type": "integer"
|
|
},
|
|
"deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"mute": {
|
|
"type": "boolean"
|
|
},
|
|
"pending": {
|
|
"type": "boolean"
|
|
},
|
|
"settings": {
|
|
"$ref": "#/definitions/UserGuildSettings"
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"joined_by": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"theme_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"communication_disabled_until": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"banner",
|
|
"bio",
|
|
"communication_disabled_until",
|
|
"deaf",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"index",
|
|
"joined_at",
|
|
"joined_by",
|
|
"mute",
|
|
"pending",
|
|
"roles",
|
|
"settings",
|
|
"user"
|
|
]
|
|
},
|
|
"Role": {
|
|
"type": "object",
|
|
"properties": {
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"hoist": {
|
|
"type": "boolean"
|
|
},
|
|
"managed": {
|
|
"type": "boolean"
|
|
},
|
|
"mentionable": {
|
|
"type": "boolean"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"permissions": {
|
|
"type": "string"
|
|
},
|
|
"position": {
|
|
"type": "integer"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"unicode_emoji": {
|
|
"type": "string"
|
|
},
|
|
"tags": {
|
|
"type": "object",
|
|
"properties": {
|
|
"bot_id": {
|
|
"type": "string"
|
|
},
|
|
"integration_id": {
|
|
"type": "string"
|
|
},
|
|
"premium_subscriber": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"colors": {
|
|
"$ref": "#/definitions/RoleColors"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"color",
|
|
"colors",
|
|
"flags",
|
|
"guild",
|
|
"guild_id",
|
|
"hoist",
|
|
"id",
|
|
"managed",
|
|
"mentionable",
|
|
"name",
|
|
"permissions",
|
|
"position"
|
|
]
|
|
},
|
|
"RoleColors": {
|
|
"type": "object",
|
|
"properties": {
|
|
"primary_color": {
|
|
"type": "integer"
|
|
},
|
|
"secondary_color": {
|
|
"type": "integer"
|
|
},
|
|
"tertiary_color": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"primary_color"
|
|
]
|
|
},
|
|
"UserGuildSettings": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_overrides": {
|
|
"anyOf": [
|
|
{
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"$ref": "#/definitions/ChannelOverride"
|
|
}
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mobile_push": {
|
|
"type": "boolean"
|
|
},
|
|
"mute_config": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress_everyone": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress_roles": {
|
|
"type": "boolean"
|
|
},
|
|
"version": {
|
|
"type": "integer"
|
|
},
|
|
"guild_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"mute_scheduled_events": {
|
|
"type": "boolean"
|
|
},
|
|
"hide_muted_channels": {
|
|
"type": "boolean"
|
|
},
|
|
"notify_highlights": {
|
|
"type": "integer",
|
|
"const": 0
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_overrides",
|
|
"flags",
|
|
"guild_id",
|
|
"hide_muted_channels",
|
|
"message_notifications",
|
|
"mobile_push",
|
|
"mute_config",
|
|
"mute_scheduled_events",
|
|
"muted",
|
|
"notify_highlights",
|
|
"suppress_everyone",
|
|
"suppress_roles",
|
|
"version"
|
|
]
|
|
},
|
|
"ChannelOverride": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_id",
|
|
"message_notifications",
|
|
"mute_config",
|
|
"muted"
|
|
]
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"Template": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"usage_count": {
|
|
"type": "integer"
|
|
},
|
|
"creator_id": {
|
|
"type": "string"
|
|
},
|
|
"creator": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"updated_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"source_guild_id": {
|
|
"type": "string"
|
|
},
|
|
"source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"serialized_source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"code",
|
|
"created_at",
|
|
"creator",
|
|
"creator_id",
|
|
"id",
|
|
"name",
|
|
"serialized_source_guild",
|
|
"source_guild",
|
|
"source_guild_id",
|
|
"updated_at"
|
|
]
|
|
},
|
|
"Emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"animated": {
|
|
"type": "boolean"
|
|
},
|
|
"available": {
|
|
"type": "boolean"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"managed": {
|
|
"type": "boolean"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"require_colons": {
|
|
"type": "boolean"
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"groups": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"available",
|
|
"groups",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"managed",
|
|
"name",
|
|
"require_colons",
|
|
"roles",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Sticker": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"available": {
|
|
"type": "boolean"
|
|
},
|
|
"tags": {
|
|
"type": "string"
|
|
},
|
|
"pack_id": {
|
|
"type": "string"
|
|
},
|
|
"pack": {
|
|
"$ref": "#/definitions/StickerPack"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/StickerType"
|
|
},
|
|
"format_type": {
|
|
"$ref": "#/definitions/StickerFormatType"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"format_type",
|
|
"id",
|
|
"name",
|
|
"pack",
|
|
"type"
|
|
]
|
|
},
|
|
"StickerPack": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"banner_asset_id": {
|
|
"type": "string"
|
|
},
|
|
"stickers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"cover_sticker_id": {
|
|
"type": "string"
|
|
},
|
|
"cover_sticker": {
|
|
"$ref": "#/definitions/Sticker"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"stickers"
|
|
]
|
|
},
|
|
"StickerType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"StickerFormatType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4
|
|
]
|
|
},
|
|
"Invite": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "string"
|
|
},
|
|
"temporary": {
|
|
"type": "boolean"
|
|
},
|
|
"uses": {
|
|
"type": "integer"
|
|
},
|
|
"max_uses": {
|
|
"type": "integer"
|
|
},
|
|
"max_age": {
|
|
"type": "integer"
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"expires_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"inviter_id": {
|
|
"type": "string"
|
|
},
|
|
"inviter": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"target_user_id": {
|
|
"type": "string"
|
|
},
|
|
"target_user": {
|
|
"type": "string"
|
|
},
|
|
"target_user_type": {
|
|
"type": "integer"
|
|
},
|
|
"vanity_url": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"code",
|
|
"created_at",
|
|
"flags",
|
|
"guild",
|
|
"guild_id",
|
|
"inviter",
|
|
"max_age",
|
|
"max_uses",
|
|
"target_user_id",
|
|
"temporary",
|
|
"uses"
|
|
]
|
|
},
|
|
"VoiceState": {
|
|
"type": "object",
|
|
"properties": {
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"member": {
|
|
"$ref": "#/definitions/Member"
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
},
|
|
"token": {
|
|
"type": "string"
|
|
},
|
|
"deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"mute": {
|
|
"type": "boolean"
|
|
},
|
|
"self_deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"self_mute": {
|
|
"type": "boolean"
|
|
},
|
|
"self_stream": {
|
|
"type": "boolean"
|
|
},
|
|
"self_video": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress": {
|
|
"type": "boolean"
|
|
},
|
|
"request_to_speak_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"deaf",
|
|
"guild_id",
|
|
"id",
|
|
"member",
|
|
"mute",
|
|
"self_deaf",
|
|
"self_mute",
|
|
"self_video",
|
|
"session_id",
|
|
"suppress",
|
|
"token",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Webhook": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/WebhookType"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"token": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"application": {
|
|
"$ref": "#/definitions/Application"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"source_guild_id": {
|
|
"type": "string"
|
|
},
|
|
"source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"source_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"source_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"application",
|
|
"application_id",
|
|
"avatar",
|
|
"channel",
|
|
"channel_id",
|
|
"id",
|
|
"name",
|
|
"source_channel",
|
|
"source_channel_id",
|
|
"type",
|
|
"url",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"WebhookType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3
|
|
]
|
|
},
|
|
"Application": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"summary": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"type": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true
|
|
},
|
|
"hook": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"bot_public": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"bot_require_code_grant": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"verify_key": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"redirect_uris": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"rpc_application_state": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"store_application_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"verification_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"interactions_endpoint_url": {
|
|
"type": "string"
|
|
},
|
|
"integration_public": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"integration_require_code_grant": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"discoverability_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"discovery_eligibility_flags": {
|
|
"type": "integer",
|
|
"default": 2240
|
|
},
|
|
"bot": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"tags": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"cover_image": {
|
|
"type": "string"
|
|
},
|
|
"install_params": {
|
|
"type": "object",
|
|
"properties": {
|
|
"scopes": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"permissions": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"permissions",
|
|
"scopes"
|
|
]
|
|
},
|
|
"terms_of_service_url": {
|
|
"type": "string"
|
|
},
|
|
"privacy_policy_url": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"custom_install_url": {
|
|
"type": "string"
|
|
},
|
|
"team": {
|
|
"$ref": "#/definitions/Team"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"description",
|
|
"discoverability_state",
|
|
"discovery_eligibility_flags",
|
|
"flags",
|
|
"hook",
|
|
"id",
|
|
"integration_public",
|
|
"integration_require_code_grant",
|
|
"name",
|
|
"owner",
|
|
"redirect_uris",
|
|
"rpc_application_state",
|
|
"store_application_state",
|
|
"summary",
|
|
"verification_state",
|
|
"verify_key"
|
|
]
|
|
},
|
|
"Team": {
|
|
"type": "object",
|
|
"properties": {
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"members": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/TeamMember"
|
|
}
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"owner_user_id": {
|
|
"type": "string"
|
|
},
|
|
"owner_user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"members",
|
|
"name",
|
|
"owner_user",
|
|
"owner_user_id"
|
|
]
|
|
},
|
|
"TeamMember": {
|
|
"type": "object",
|
|
"properties": {
|
|
"membership_state": {
|
|
"$ref": "#/definitions/TeamMemberState"
|
|
},
|
|
"permissions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"role": {
|
|
"$ref": "#/definitions/TeamMemberRole"
|
|
},
|
|
"team_id": {
|
|
"type": "string"
|
|
},
|
|
"team": {
|
|
"$ref": "#/definitions/Team"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"membership_state",
|
|
"permissions",
|
|
"role",
|
|
"team",
|
|
"team_id",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"TeamMemberState": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"TeamMemberRole": {
|
|
"type": "string",
|
|
"enum": [
|
|
"admin",
|
|
"developer",
|
|
"read_only"
|
|
]
|
|
},
|
|
"GuildWelcomeScreen": {
|
|
"type": "object",
|
|
"properties": {
|
|
"enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"welcome_channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"emoji_id": {
|
|
"type": "string"
|
|
},
|
|
"emoji_name": {
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_id",
|
|
"description"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"description",
|
|
"enabled",
|
|
"welcome_channels"
|
|
]
|
|
},
|
|
"ChannelPermissionOverwrite": {
|
|
"type": "object",
|
|
"properties": {
|
|
"allow": {
|
|
"type": "string"
|
|
},
|
|
"deny": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"allow",
|
|
"deny",
|
|
"id",
|
|
"type"
|
|
]
|
|
},
|
|
"ChannelPermissionOverwriteType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"Message": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"author_id": {
|
|
"type": "string"
|
|
},
|
|
"author": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"member_id": {
|
|
"type": "string"
|
|
},
|
|
"member": {
|
|
"$ref": "#/definitions/Member"
|
|
},
|
|
"webhook_id": {
|
|
"type": "string"
|
|
},
|
|
"webhook": {
|
|
"$ref": "#/definitions/Webhook"
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"application": {
|
|
"$ref": "#/definitions/Application"
|
|
},
|
|
"content": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"edited_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"tts": {
|
|
"type": "boolean"
|
|
},
|
|
"mention_everyone": {
|
|
"type": "boolean"
|
|
},
|
|
"mentions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/User"
|
|
}
|
|
},
|
|
"mention_roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"mention_channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Channel"
|
|
}
|
|
},
|
|
"sticker_items": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"attachments": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Attachment"
|
|
}
|
|
},
|
|
"embeds": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Embed"
|
|
}
|
|
},
|
|
"reactions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Reaction"
|
|
}
|
|
},
|
|
"nonce": {
|
|
"type": "string"
|
|
},
|
|
"pinned_at": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"pinned": {
|
|
"type": "boolean"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/MessageType"
|
|
},
|
|
"activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "integer"
|
|
},
|
|
"party_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"party_id",
|
|
"type"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"message_reference": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"message_id"
|
|
]
|
|
},
|
|
"referenced_message": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/Message"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"interaction": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/InteractionType"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"type"
|
|
]
|
|
},
|
|
"interaction_metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/InteractionType"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"authorizing_integration_owners": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"command_type": {
|
|
"$ref": "#/definitions/ApplicationCommandType"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"authorizing_integration_owners",
|
|
"command_type",
|
|
"id",
|
|
"name",
|
|
"type",
|
|
"user_id"
|
|
]
|
|
},
|
|
"components": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ActionRowComponent"
|
|
}
|
|
},
|
|
"poll": {
|
|
"$ref": "#/definitions/Poll"
|
|
},
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"embeds",
|
|
"flags",
|
|
"id",
|
|
"mention_channels",
|
|
"mention_roles",
|
|
"mentions",
|
|
"pinned",
|
|
"reactions",
|
|
"timestamp",
|
|
"type"
|
|
]
|
|
},
|
|
"Attachment": {
|
|
"type": "object",
|
|
"properties": {
|
|
"filename": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "integer"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
},
|
|
"content_type": {
|
|
"type": "string"
|
|
},
|
|
"message_id": {
|
|
"type": "string"
|
|
},
|
|
"message": {
|
|
"$ref": "#/definitions/Message"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"filename",
|
|
"id",
|
|
"message",
|
|
"message_id",
|
|
"proxy_url",
|
|
"size",
|
|
"url"
|
|
]
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"Reaction": {
|
|
"type": "object",
|
|
"properties": {
|
|
"count": {
|
|
"type": "integer"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"user_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"count",
|
|
"emoji",
|
|
"user_ids"
|
|
]
|
|
},
|
|
"PartialEmoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name"
|
|
]
|
|
},
|
|
"MessageType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
16,
|
|
19,
|
|
20,
|
|
41,
|
|
42,
|
|
43,
|
|
50,
|
|
63,
|
|
255
|
|
]
|
|
},
|
|
"InteractionType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5
|
|
]
|
|
},
|
|
"ApplicationCommandType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4
|
|
]
|
|
},
|
|
"ActionRowComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.ActionRow"
|
|
},
|
|
"components": {
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/ButtonComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/SelectMenuComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/StringSelectMenuComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/TextInputComponent"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"components",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.ActionRow": {
|
|
"type": "number",
|
|
"const": 1
|
|
},
|
|
"ButtonComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.Button"
|
|
},
|
|
"style": {
|
|
"$ref": "#/definitions/ButtonStyle"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"sku_id": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"style",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.Button": {
|
|
"type": "number",
|
|
"const": 2
|
|
},
|
|
"ButtonStyle": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6
|
|
]
|
|
},
|
|
"SelectMenuComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": [
|
|
3,
|
|
5,
|
|
6,
|
|
7,
|
|
8
|
|
],
|
|
"type": "number"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_types": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
},
|
|
"default_values": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuDefaultOption"
|
|
}
|
|
},
|
|
"min_values": {
|
|
"type": "integer"
|
|
},
|
|
"max_values": {
|
|
"type": "integer"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"type"
|
|
]
|
|
},
|
|
"SelectMenuDefaultOption": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"channel",
|
|
"role",
|
|
"user"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"type"
|
|
]
|
|
},
|
|
"StringSelectMenuComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.StringSelect"
|
|
},
|
|
"options": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuOption"
|
|
}
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_types": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
},
|
|
"default_values": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuDefaultOption"
|
|
}
|
|
},
|
|
"min_values": {
|
|
"type": "integer"
|
|
},
|
|
"max_values": {
|
|
"type": "integer"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"options",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.StringSelect": {
|
|
"type": "number",
|
|
"const": 3
|
|
},
|
|
"SelectMenuOption": {
|
|
"type": "object",
|
|
"properties": {
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"default": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"label",
|
|
"value"
|
|
]
|
|
},
|
|
"TextInputComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.TextInput"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"style": {
|
|
"$ref": "#/definitions/TextInputStyle"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"min_length": {
|
|
"type": "integer"
|
|
},
|
|
"max_length": {
|
|
"type": "integer"
|
|
},
|
|
"required": {
|
|
"type": "boolean"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"label",
|
|
"style",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.TextInput": {
|
|
"type": "number",
|
|
"const": 4
|
|
},
|
|
"TextInputStyle": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"Poll": {
|
|
"type": "object",
|
|
"properties": {
|
|
"question": {
|
|
"$ref": "#/definitions/PollMedia"
|
|
},
|
|
"answers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/PollAnswer"
|
|
}
|
|
},
|
|
"expiry": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"allow_multiselect": {
|
|
"type": "boolean"
|
|
},
|
|
"results": {
|
|
"$ref": "#/definitions/PollResult"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"allow_multiselect",
|
|
"answers",
|
|
"expiry",
|
|
"question"
|
|
]
|
|
},
|
|
"PollMedia": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"PollAnswer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"answer_id": {
|
|
"type": "string"
|
|
},
|
|
"poll_media": {
|
|
"$ref": "#/definitions/PollMedia"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"poll_media"
|
|
]
|
|
},
|
|
"PollResult": {
|
|
"type": "object",
|
|
"properties": {
|
|
"is_finalized": {
|
|
"type": "boolean"
|
|
},
|
|
"answer_counts": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/PollAnswerCount"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"answer_counts",
|
|
"is_finalized"
|
|
]
|
|
},
|
|
"PollAnswerCount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"count": {
|
|
"type": "integer"
|
|
},
|
|
"me_voted": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"count",
|
|
"id",
|
|
"me_voted"
|
|
]
|
|
},
|
|
"ReadState": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"public_ack": {
|
|
"type": "string"
|
|
},
|
|
"notifications_cursor": {
|
|
"type": "string"
|
|
},
|
|
"last_pin_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"mention_count": {
|
|
"type": "integer"
|
|
},
|
|
"manual": {
|
|
"type": "boolean"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"id",
|
|
"last_message_id",
|
|
"manual",
|
|
"mention_count",
|
|
"notifications_cursor",
|
|
"public_ack",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"APIEmojiArray": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Emoji"
|
|
},
|
|
"definitions": {
|
|
"Emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"animated": {
|
|
"type": "boolean"
|
|
},
|
|
"available": {
|
|
"type": "boolean"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"managed": {
|
|
"type": "boolean"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"require_colons": {
|
|
"type": "boolean"
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"groups": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"available",
|
|
"groups",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"managed",
|
|
"name",
|
|
"require_colons",
|
|
"roles",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Guild": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"afk_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"afk_timeout": {
|
|
"type": "integer"
|
|
},
|
|
"bans": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Ban"
|
|
}
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"default_message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"discovery_splash": {
|
|
"type": "string"
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer"
|
|
},
|
|
"features": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"primary_category_id": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"large": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"max_members": {
|
|
"type": "integer"
|
|
},
|
|
"max_presences": {
|
|
"type": "integer"
|
|
},
|
|
"max_video_channel_users": {
|
|
"type": "integer"
|
|
},
|
|
"member_count": {
|
|
"type": "integer"
|
|
},
|
|
"presence_count": {
|
|
"type": "integer"
|
|
},
|
|
"members": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Member"
|
|
}
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Channel"
|
|
}
|
|
},
|
|
"template_id": {
|
|
"type": "string"
|
|
},
|
|
"template": {
|
|
"$ref": "#/definitions/Template"
|
|
},
|
|
"emojis": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Emoji"
|
|
}
|
|
},
|
|
"stickers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"invites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Invite"
|
|
}
|
|
},
|
|
"voice_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/VoiceState"
|
|
}
|
|
},
|
|
"webhooks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Webhook"
|
|
}
|
|
},
|
|
"mfa_level": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"owner_id": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"preferred_locale": {
|
|
"type": "string"
|
|
},
|
|
"premium_subscription_count": {
|
|
"type": "integer"
|
|
},
|
|
"premium_tier": {
|
|
"type": "integer"
|
|
},
|
|
"public_updates_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"public_updates_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"rules_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"rules_channel": {
|
|
"type": "string"
|
|
},
|
|
"region": {
|
|
"type": "string"
|
|
},
|
|
"splash": {
|
|
"type": "string"
|
|
},
|
|
"system_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"system_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"system_channel_flags": {
|
|
"type": "integer"
|
|
},
|
|
"unavailable": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"verification_level": {
|
|
"type": "integer"
|
|
},
|
|
"welcome_screen": {
|
|
"$ref": "#/definitions/GuildWelcomeScreen",
|
|
"description": "DEPRECATED: Look at the new Guild onboarding screens."
|
|
},
|
|
"widget_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"widget_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"widget_enabled": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"nsfw_level": {
|
|
"type": "integer"
|
|
},
|
|
"nsfw": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"parent": {
|
|
"type": "string"
|
|
},
|
|
"permissions": {
|
|
"type": "integer"
|
|
},
|
|
"premium_progress_bar_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"channel_ordering": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bans",
|
|
"channel_ordering",
|
|
"channels",
|
|
"emojis",
|
|
"features",
|
|
"id",
|
|
"invites",
|
|
"members",
|
|
"name",
|
|
"nsfw",
|
|
"premium_progress_bar_enabled",
|
|
"public_updates_channel_id",
|
|
"roles",
|
|
"stickers",
|
|
"template",
|
|
"unavailable",
|
|
"voice_states",
|
|
"webhooks",
|
|
"welcome_screen",
|
|
"widget_enabled"
|
|
]
|
|
},
|
|
"Channel": {
|
|
"type": "object",
|
|
"properties": {
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ChannelType"
|
|
},
|
|
"recipients": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Recipient"
|
|
}
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"parent_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"parent": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"owner_id": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"last_pin_timestamp": {
|
|
"type": "integer"
|
|
},
|
|
"default_auto_archive_duration": {
|
|
"type": "integer"
|
|
},
|
|
"permission_overwrites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwrite"
|
|
}
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
},
|
|
"bitrate": {
|
|
"type": "integer"
|
|
},
|
|
"user_limit": {
|
|
"type": "integer"
|
|
},
|
|
"nsfw": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"topic": {
|
|
"type": "string"
|
|
},
|
|
"invites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Invite"
|
|
}
|
|
},
|
|
"retention_policy_id": {
|
|
"type": "string"
|
|
},
|
|
"messages": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Message"
|
|
}
|
|
},
|
|
"voice_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/VoiceState"
|
|
}
|
|
},
|
|
"read_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ReadState"
|
|
}
|
|
},
|
|
"webhooks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Webhook"
|
|
}
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"position": {
|
|
"description": "Must be calculated Channel.calculatePosition",
|
|
"type": "integer"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"created_at",
|
|
"flags",
|
|
"id",
|
|
"nsfw",
|
|
"owner",
|
|
"parent_id",
|
|
"position",
|
|
"type"
|
|
]
|
|
},
|
|
"ChannelType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
33,
|
|
34,
|
|
35,
|
|
64,
|
|
255
|
|
]
|
|
},
|
|
"Recipient": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"closed": {
|
|
"type": "boolean"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"closed",
|
|
"id",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"User": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"theme_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"phone": {
|
|
"type": "string"
|
|
},
|
|
"desktop": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"mobile": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"premium": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_type": {
|
|
"type": "integer"
|
|
},
|
|
"bot": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"bio": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"system": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"nsfw_allowed": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"mfa_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"webauthn_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"totp_secret": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"totp_last_ticket": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"deleted": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"email": {
|
|
"type": "string"
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"public_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"purchased_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"premium_usage_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"rights": {
|
|
"type": "string"
|
|
},
|
|
"sessions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Session"
|
|
}
|
|
},
|
|
"relationships": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Relationship"
|
|
}
|
|
},
|
|
"connected_accounts": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ConnectedAccount"
|
|
}
|
|
},
|
|
"data": {
|
|
"type": "object",
|
|
"properties": {
|
|
"valid_tokens_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"hash": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"valid_tokens_since"
|
|
]
|
|
},
|
|
"fingerprints": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"settings": {
|
|
"$ref": "#/definitions/UserSettings"
|
|
},
|
|
"extended_settings": {
|
|
"type": "string",
|
|
"default": "{}"
|
|
},
|
|
"security_keys": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SecurityKey"
|
|
}
|
|
},
|
|
"badge_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"connected_accounts",
|
|
"created_at",
|
|
"data",
|
|
"deleted",
|
|
"desktop",
|
|
"disabled",
|
|
"discriminator",
|
|
"extended_settings",
|
|
"fingerprints",
|
|
"flags",
|
|
"id",
|
|
"mfa_enabled",
|
|
"mobile",
|
|
"nsfw_allowed",
|
|
"premium",
|
|
"premium_since",
|
|
"premium_type",
|
|
"premium_usage_flags",
|
|
"public_flags",
|
|
"purchased_flags",
|
|
"relationships",
|
|
"rights",
|
|
"security_keys",
|
|
"sessions",
|
|
"system",
|
|
"username",
|
|
"verified",
|
|
"webauthn_enabled"
|
|
]
|
|
},
|
|
"Session": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"client_info": {
|
|
"type": "object",
|
|
"properties": {
|
|
"client": {
|
|
"type": "string"
|
|
},
|
|
"os": {
|
|
"type": "string"
|
|
},
|
|
"version": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"client",
|
|
"os",
|
|
"version"
|
|
]
|
|
},
|
|
"client_status": {
|
|
"$ref": "#/definitions/ClientStatus"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"activities",
|
|
"client_info",
|
|
"client_status",
|
|
"id",
|
|
"session_id",
|
|
"status",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
]
|
|
},
|
|
"ClientStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"desktop": {
|
|
"type": "string"
|
|
},
|
|
"mobile": {
|
|
"type": "string"
|
|
},
|
|
"web": {
|
|
"type": "string"
|
|
},
|
|
"embedded": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Relationship": {
|
|
"type": "object",
|
|
"properties": {
|
|
"from_id": {
|
|
"type": "string"
|
|
},
|
|
"from": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"to_id": {
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"nickname": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/RelationshipType"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"from",
|
|
"from_id",
|
|
"id",
|
|
"to",
|
|
"to_id",
|
|
"type"
|
|
]
|
|
},
|
|
"RelationshipType": {
|
|
"type": "number",
|
|
"enum": [
|
|
4,
|
|
3,
|
|
2,
|
|
1
|
|
]
|
|
},
|
|
"ConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"external_id": {
|
|
"type": "string"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"friend_sync": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"revoked": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"show_activity": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"visibility": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"integrations": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"metadata_": {},
|
|
"metadata_visibility": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"two_way_link": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"token_data": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/ConnectedAccountTokenData"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"external_id",
|
|
"id",
|
|
"name",
|
|
"type",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"ConnectedAccountTokenData": {
|
|
"type": "object",
|
|
"properties": {
|
|
"access_token": {
|
|
"type": "string"
|
|
},
|
|
"token_type": {
|
|
"type": "string"
|
|
},
|
|
"scope": {
|
|
"type": "string"
|
|
},
|
|
"refresh_token": {
|
|
"type": "string"
|
|
},
|
|
"expires_in": {
|
|
"type": "integer"
|
|
},
|
|
"expires_at": {
|
|
"type": "integer"
|
|
},
|
|
"fetched_at": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"access_token",
|
|
"fetched_at"
|
|
]
|
|
},
|
|
"UserSettings": {
|
|
"type": "object",
|
|
"properties": {
|
|
"index": {
|
|
"type": "string"
|
|
},
|
|
"afk_timeout": {
|
|
"type": "integer",
|
|
"default": 3600
|
|
},
|
|
"allow_accessibility_detection": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"animate_emoji": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"animate_stickers": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"contact_sync_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"convert_emoticons": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"custom_status": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/CustomStatus"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"default_guilds_restricted": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"detect_platform_accounts": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"developer_mode": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"disable_games_tab": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"enable_tts_command": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"friend_discovery_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"friend_source_flags": {
|
|
"$ref": "#/definitions/FriendSourceFlags"
|
|
},
|
|
"gateway_connected": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"gif_auto_play": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"guild_folders": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/GuildFolder"
|
|
},
|
|
"default": []
|
|
},
|
|
"guild_positions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"inline_attachment_media": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"inline_embed_media": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"locale": {
|
|
"type": "string",
|
|
"default": "en-US"
|
|
},
|
|
"message_display_compact": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"native_phone_integration_enabled": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"render_embeds": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"render_reactions": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"restricted_guilds": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"show_current_game": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string",
|
|
"default": "online"
|
|
},
|
|
"stream_notifications_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"theme": {
|
|
"enum": [
|
|
"dark",
|
|
"light"
|
|
],
|
|
"type": "string",
|
|
"default": "dark"
|
|
},
|
|
"timezone_offset": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"view_nsfw_guilds": {
|
|
"type": "boolean",
|
|
"default": true
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk_timeout",
|
|
"allow_accessibility_detection",
|
|
"animate_emoji",
|
|
"animate_stickers",
|
|
"contact_sync_enabled",
|
|
"convert_emoticons",
|
|
"custom_status",
|
|
"default_guilds_restricted",
|
|
"detect_platform_accounts",
|
|
"developer_mode",
|
|
"disable_games_tab",
|
|
"enable_tts_command",
|
|
"explicit_content_filter",
|
|
"friend_discovery_flags",
|
|
"friend_source_flags",
|
|
"gateway_connected",
|
|
"gif_auto_play",
|
|
"guild_folders",
|
|
"guild_positions",
|
|
"index",
|
|
"inline_attachment_media",
|
|
"inline_embed_media",
|
|
"locale",
|
|
"message_display_compact",
|
|
"native_phone_integration_enabled",
|
|
"render_embeds",
|
|
"render_reactions",
|
|
"restricted_guilds",
|
|
"show_current_game",
|
|
"status",
|
|
"stream_notifications_enabled",
|
|
"theme",
|
|
"timezone_offset",
|
|
"view_nsfw_guilds"
|
|
]
|
|
},
|
|
"CustomStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"emoji_id": {
|
|
"type": "string"
|
|
},
|
|
"emoji_name": {
|
|
"type": "string"
|
|
},
|
|
"expires_at": {
|
|
"type": "integer"
|
|
},
|
|
"text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"FriendSourceFlags": {
|
|
"type": "object",
|
|
"properties": {
|
|
"all": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"all"
|
|
]
|
|
},
|
|
"GuildFolder": {
|
|
"type": "object",
|
|
"properties": {
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"guild_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"color",
|
|
"guild_ids",
|
|
"id",
|
|
"name"
|
|
]
|
|
},
|
|
"SecurityKey": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"key_id": {
|
|
"type": "string"
|
|
},
|
|
"public_key": {
|
|
"type": "string"
|
|
},
|
|
"counter": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"counter",
|
|
"id",
|
|
"key_id",
|
|
"name",
|
|
"public_key",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"ChannelPermissionOverwrite": {
|
|
"type": "object",
|
|
"properties": {
|
|
"allow": {
|
|
"type": "string"
|
|
},
|
|
"deny": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"allow",
|
|
"deny",
|
|
"id",
|
|
"type"
|
|
]
|
|
},
|
|
"ChannelPermissionOverwriteType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"Invite": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "string"
|
|
},
|
|
"temporary": {
|
|
"type": "boolean"
|
|
},
|
|
"uses": {
|
|
"type": "integer"
|
|
},
|
|
"max_uses": {
|
|
"type": "integer"
|
|
},
|
|
"max_age": {
|
|
"type": "integer"
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"expires_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"inviter_id": {
|
|
"type": "string"
|
|
},
|
|
"inviter": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"target_user_id": {
|
|
"type": "string"
|
|
},
|
|
"target_user": {
|
|
"type": "string"
|
|
},
|
|
"target_user_type": {
|
|
"type": "integer"
|
|
},
|
|
"vanity_url": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"code",
|
|
"created_at",
|
|
"flags",
|
|
"guild",
|
|
"guild_id",
|
|
"inviter",
|
|
"max_age",
|
|
"max_uses",
|
|
"target_user_id",
|
|
"temporary",
|
|
"uses"
|
|
]
|
|
},
|
|
"Message": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"author_id": {
|
|
"type": "string"
|
|
},
|
|
"author": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"member_id": {
|
|
"type": "string"
|
|
},
|
|
"member": {
|
|
"$ref": "#/definitions/Member"
|
|
},
|
|
"webhook_id": {
|
|
"type": "string"
|
|
},
|
|
"webhook": {
|
|
"$ref": "#/definitions/Webhook"
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"application": {
|
|
"$ref": "#/definitions/Application"
|
|
},
|
|
"content": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"edited_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"tts": {
|
|
"type": "boolean"
|
|
},
|
|
"mention_everyone": {
|
|
"type": "boolean"
|
|
},
|
|
"mentions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/User"
|
|
}
|
|
},
|
|
"mention_roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"mention_channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Channel"
|
|
}
|
|
},
|
|
"sticker_items": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"attachments": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Attachment"
|
|
}
|
|
},
|
|
"embeds": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Embed"
|
|
}
|
|
},
|
|
"reactions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Reaction"
|
|
}
|
|
},
|
|
"nonce": {
|
|
"type": "string"
|
|
},
|
|
"pinned_at": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"pinned": {
|
|
"type": "boolean"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/MessageType"
|
|
},
|
|
"activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "integer"
|
|
},
|
|
"party_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"party_id",
|
|
"type"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"message_reference": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"message_id"
|
|
]
|
|
},
|
|
"referenced_message": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/Message"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"interaction": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/InteractionType"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"type"
|
|
]
|
|
},
|
|
"interaction_metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/InteractionType"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"authorizing_integration_owners": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"command_type": {
|
|
"$ref": "#/definitions/ApplicationCommandType"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"authorizing_integration_owners",
|
|
"command_type",
|
|
"id",
|
|
"name",
|
|
"type",
|
|
"user_id"
|
|
]
|
|
},
|
|
"components": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ActionRowComponent"
|
|
}
|
|
},
|
|
"poll": {
|
|
"$ref": "#/definitions/Poll"
|
|
},
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"embeds",
|
|
"flags",
|
|
"id",
|
|
"mention_channels",
|
|
"mention_roles",
|
|
"mentions",
|
|
"pinned",
|
|
"reactions",
|
|
"timestamp",
|
|
"type"
|
|
]
|
|
},
|
|
"Member": {
|
|
"type": "object",
|
|
"properties": {
|
|
"index": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"nick": {
|
|
"type": "string"
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"joined_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"premium_since": {
|
|
"type": "integer"
|
|
},
|
|
"deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"mute": {
|
|
"type": "boolean"
|
|
},
|
|
"pending": {
|
|
"type": "boolean"
|
|
},
|
|
"settings": {
|
|
"$ref": "#/definitions/UserGuildSettings"
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"joined_by": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"theme_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"communication_disabled_until": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"banner",
|
|
"bio",
|
|
"communication_disabled_until",
|
|
"deaf",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"index",
|
|
"joined_at",
|
|
"joined_by",
|
|
"mute",
|
|
"pending",
|
|
"roles",
|
|
"settings",
|
|
"user"
|
|
]
|
|
},
|
|
"Role": {
|
|
"type": "object",
|
|
"properties": {
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"hoist": {
|
|
"type": "boolean"
|
|
},
|
|
"managed": {
|
|
"type": "boolean"
|
|
},
|
|
"mentionable": {
|
|
"type": "boolean"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"permissions": {
|
|
"type": "string"
|
|
},
|
|
"position": {
|
|
"type": "integer"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"unicode_emoji": {
|
|
"type": "string"
|
|
},
|
|
"tags": {
|
|
"type": "object",
|
|
"properties": {
|
|
"bot_id": {
|
|
"type": "string"
|
|
},
|
|
"integration_id": {
|
|
"type": "string"
|
|
},
|
|
"premium_subscriber": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"colors": {
|
|
"$ref": "#/definitions/RoleColors"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"color",
|
|
"colors",
|
|
"flags",
|
|
"guild",
|
|
"guild_id",
|
|
"hoist",
|
|
"id",
|
|
"managed",
|
|
"mentionable",
|
|
"name",
|
|
"permissions",
|
|
"position"
|
|
]
|
|
},
|
|
"RoleColors": {
|
|
"type": "object",
|
|
"properties": {
|
|
"primary_color": {
|
|
"type": "integer"
|
|
},
|
|
"secondary_color": {
|
|
"type": "integer"
|
|
},
|
|
"tertiary_color": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"primary_color"
|
|
]
|
|
},
|
|
"UserGuildSettings": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_overrides": {
|
|
"anyOf": [
|
|
{
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"$ref": "#/definitions/ChannelOverride"
|
|
}
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mobile_push": {
|
|
"type": "boolean"
|
|
},
|
|
"mute_config": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress_everyone": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress_roles": {
|
|
"type": "boolean"
|
|
},
|
|
"version": {
|
|
"type": "integer"
|
|
},
|
|
"guild_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"mute_scheduled_events": {
|
|
"type": "boolean"
|
|
},
|
|
"hide_muted_channels": {
|
|
"type": "boolean"
|
|
},
|
|
"notify_highlights": {
|
|
"type": "integer",
|
|
"const": 0
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_overrides",
|
|
"flags",
|
|
"guild_id",
|
|
"hide_muted_channels",
|
|
"message_notifications",
|
|
"mobile_push",
|
|
"mute_config",
|
|
"mute_scheduled_events",
|
|
"muted",
|
|
"notify_highlights",
|
|
"suppress_everyone",
|
|
"suppress_roles",
|
|
"version"
|
|
]
|
|
},
|
|
"ChannelOverride": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_id",
|
|
"message_notifications",
|
|
"mute_config",
|
|
"muted"
|
|
]
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"Webhook": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/WebhookType"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"token": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"application": {
|
|
"$ref": "#/definitions/Application"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"source_guild_id": {
|
|
"type": "string"
|
|
},
|
|
"source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"source_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"source_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"application",
|
|
"application_id",
|
|
"avatar",
|
|
"channel",
|
|
"channel_id",
|
|
"id",
|
|
"name",
|
|
"source_channel",
|
|
"source_channel_id",
|
|
"type",
|
|
"url",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"WebhookType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3
|
|
]
|
|
},
|
|
"Application": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"summary": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"type": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true
|
|
},
|
|
"hook": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"bot_public": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"bot_require_code_grant": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"verify_key": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"redirect_uris": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"rpc_application_state": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"store_application_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"verification_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"interactions_endpoint_url": {
|
|
"type": "string"
|
|
},
|
|
"integration_public": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"integration_require_code_grant": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"discoverability_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"discovery_eligibility_flags": {
|
|
"type": "integer",
|
|
"default": 2240
|
|
},
|
|
"bot": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"tags": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"cover_image": {
|
|
"type": "string"
|
|
},
|
|
"install_params": {
|
|
"type": "object",
|
|
"properties": {
|
|
"scopes": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"permissions": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"permissions",
|
|
"scopes"
|
|
]
|
|
},
|
|
"terms_of_service_url": {
|
|
"type": "string"
|
|
},
|
|
"privacy_policy_url": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"custom_install_url": {
|
|
"type": "string"
|
|
},
|
|
"team": {
|
|
"$ref": "#/definitions/Team"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"description",
|
|
"discoverability_state",
|
|
"discovery_eligibility_flags",
|
|
"flags",
|
|
"hook",
|
|
"id",
|
|
"integration_public",
|
|
"integration_require_code_grant",
|
|
"name",
|
|
"owner",
|
|
"redirect_uris",
|
|
"rpc_application_state",
|
|
"store_application_state",
|
|
"summary",
|
|
"verification_state",
|
|
"verify_key"
|
|
]
|
|
},
|
|
"Team": {
|
|
"type": "object",
|
|
"properties": {
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"members": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/TeamMember"
|
|
}
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"owner_user_id": {
|
|
"type": "string"
|
|
},
|
|
"owner_user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"members",
|
|
"name",
|
|
"owner_user",
|
|
"owner_user_id"
|
|
]
|
|
},
|
|
"TeamMember": {
|
|
"type": "object",
|
|
"properties": {
|
|
"membership_state": {
|
|
"$ref": "#/definitions/TeamMemberState"
|
|
},
|
|
"permissions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"role": {
|
|
"$ref": "#/definitions/TeamMemberRole"
|
|
},
|
|
"team_id": {
|
|
"type": "string"
|
|
},
|
|
"team": {
|
|
"$ref": "#/definitions/Team"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"membership_state",
|
|
"permissions",
|
|
"role",
|
|
"team",
|
|
"team_id",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"TeamMemberState": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"TeamMemberRole": {
|
|
"type": "string",
|
|
"enum": [
|
|
"admin",
|
|
"developer",
|
|
"read_only"
|
|
]
|
|
},
|
|
"Sticker": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"available": {
|
|
"type": "boolean"
|
|
},
|
|
"tags": {
|
|
"type": "string"
|
|
},
|
|
"pack_id": {
|
|
"type": "string"
|
|
},
|
|
"pack": {
|
|
"$ref": "#/definitions/StickerPack"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/StickerType"
|
|
},
|
|
"format_type": {
|
|
"$ref": "#/definitions/StickerFormatType"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"format_type",
|
|
"id",
|
|
"name",
|
|
"pack",
|
|
"type"
|
|
]
|
|
},
|
|
"StickerPack": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"banner_asset_id": {
|
|
"type": "string"
|
|
},
|
|
"stickers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"cover_sticker_id": {
|
|
"type": "string"
|
|
},
|
|
"cover_sticker": {
|
|
"$ref": "#/definitions/Sticker"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"stickers"
|
|
]
|
|
},
|
|
"StickerType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"StickerFormatType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4
|
|
]
|
|
},
|
|
"Attachment": {
|
|
"type": "object",
|
|
"properties": {
|
|
"filename": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "integer"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
},
|
|
"content_type": {
|
|
"type": "string"
|
|
},
|
|
"message_id": {
|
|
"type": "string"
|
|
},
|
|
"message": {
|
|
"$ref": "#/definitions/Message"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"filename",
|
|
"id",
|
|
"message",
|
|
"message_id",
|
|
"proxy_url",
|
|
"size",
|
|
"url"
|
|
]
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"Reaction": {
|
|
"type": "object",
|
|
"properties": {
|
|
"count": {
|
|
"type": "integer"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"user_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"count",
|
|
"emoji",
|
|
"user_ids"
|
|
]
|
|
},
|
|
"PartialEmoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name"
|
|
]
|
|
},
|
|
"MessageType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
16,
|
|
19,
|
|
20,
|
|
41,
|
|
42,
|
|
43,
|
|
50,
|
|
63,
|
|
255
|
|
]
|
|
},
|
|
"InteractionType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5
|
|
]
|
|
},
|
|
"ApplicationCommandType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4
|
|
]
|
|
},
|
|
"ActionRowComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.ActionRow"
|
|
},
|
|
"components": {
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/ButtonComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/SelectMenuComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/StringSelectMenuComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/TextInputComponent"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"components",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.ActionRow": {
|
|
"type": "number",
|
|
"const": 1
|
|
},
|
|
"ButtonComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.Button"
|
|
},
|
|
"style": {
|
|
"$ref": "#/definitions/ButtonStyle"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"sku_id": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"style",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.Button": {
|
|
"type": "number",
|
|
"const": 2
|
|
},
|
|
"ButtonStyle": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6
|
|
]
|
|
},
|
|
"SelectMenuComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": [
|
|
3,
|
|
5,
|
|
6,
|
|
7,
|
|
8
|
|
],
|
|
"type": "number"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_types": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
},
|
|
"default_values": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuDefaultOption"
|
|
}
|
|
},
|
|
"min_values": {
|
|
"type": "integer"
|
|
},
|
|
"max_values": {
|
|
"type": "integer"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"type"
|
|
]
|
|
},
|
|
"SelectMenuDefaultOption": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"channel",
|
|
"role",
|
|
"user"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"type"
|
|
]
|
|
},
|
|
"StringSelectMenuComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.StringSelect"
|
|
},
|
|
"options": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuOption"
|
|
}
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_types": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
},
|
|
"default_values": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuDefaultOption"
|
|
}
|
|
},
|
|
"min_values": {
|
|
"type": "integer"
|
|
},
|
|
"max_values": {
|
|
"type": "integer"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"options",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.StringSelect": {
|
|
"type": "number",
|
|
"const": 3
|
|
},
|
|
"SelectMenuOption": {
|
|
"type": "object",
|
|
"properties": {
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"default": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"label",
|
|
"value"
|
|
]
|
|
},
|
|
"TextInputComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.TextInput"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"style": {
|
|
"$ref": "#/definitions/TextInputStyle"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"min_length": {
|
|
"type": "integer"
|
|
},
|
|
"max_length": {
|
|
"type": "integer"
|
|
},
|
|
"required": {
|
|
"type": "boolean"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"label",
|
|
"style",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.TextInput": {
|
|
"type": "number",
|
|
"const": 4
|
|
},
|
|
"TextInputStyle": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"Poll": {
|
|
"type": "object",
|
|
"properties": {
|
|
"question": {
|
|
"$ref": "#/definitions/PollMedia"
|
|
},
|
|
"answers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/PollAnswer"
|
|
}
|
|
},
|
|
"expiry": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"allow_multiselect": {
|
|
"type": "boolean"
|
|
},
|
|
"results": {
|
|
"$ref": "#/definitions/PollResult"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"allow_multiselect",
|
|
"answers",
|
|
"expiry",
|
|
"question"
|
|
]
|
|
},
|
|
"PollMedia": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"PollAnswer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"answer_id": {
|
|
"type": "string"
|
|
},
|
|
"poll_media": {
|
|
"$ref": "#/definitions/PollMedia"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"poll_media"
|
|
]
|
|
},
|
|
"PollResult": {
|
|
"type": "object",
|
|
"properties": {
|
|
"is_finalized": {
|
|
"type": "boolean"
|
|
},
|
|
"answer_counts": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/PollAnswerCount"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"answer_counts",
|
|
"is_finalized"
|
|
]
|
|
},
|
|
"PollAnswerCount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"count": {
|
|
"type": "integer"
|
|
},
|
|
"me_voted": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"count",
|
|
"id",
|
|
"me_voted"
|
|
]
|
|
},
|
|
"VoiceState": {
|
|
"type": "object",
|
|
"properties": {
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"member": {
|
|
"$ref": "#/definitions/Member"
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
},
|
|
"token": {
|
|
"type": "string"
|
|
},
|
|
"deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"mute": {
|
|
"type": "boolean"
|
|
},
|
|
"self_deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"self_mute": {
|
|
"type": "boolean"
|
|
},
|
|
"self_stream": {
|
|
"type": "boolean"
|
|
},
|
|
"self_video": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress": {
|
|
"type": "boolean"
|
|
},
|
|
"request_to_speak_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"deaf",
|
|
"guild_id",
|
|
"id",
|
|
"member",
|
|
"mute",
|
|
"self_deaf",
|
|
"self_mute",
|
|
"self_video",
|
|
"session_id",
|
|
"suppress",
|
|
"token",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"ReadState": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"public_ack": {
|
|
"type": "string"
|
|
},
|
|
"notifications_cursor": {
|
|
"type": "string"
|
|
},
|
|
"last_pin_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"mention_count": {
|
|
"type": "integer"
|
|
},
|
|
"manual": {
|
|
"type": "boolean"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"id",
|
|
"last_message_id",
|
|
"manual",
|
|
"mention_count",
|
|
"notifications_cursor",
|
|
"public_ack",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Ban": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"executor_id": {
|
|
"type": "string"
|
|
},
|
|
"executor": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"ip": {
|
|
"type": "string"
|
|
},
|
|
"reason": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"executor",
|
|
"executor_id",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"ip",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Template": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"usage_count": {
|
|
"type": "integer"
|
|
},
|
|
"creator_id": {
|
|
"type": "string"
|
|
},
|
|
"creator": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"updated_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"source_guild_id": {
|
|
"type": "string"
|
|
},
|
|
"source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"serialized_source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"code",
|
|
"created_at",
|
|
"creator",
|
|
"creator_id",
|
|
"id",
|
|
"name",
|
|
"serialized_source_guild",
|
|
"source_guild",
|
|
"source_guild_id",
|
|
"updated_at"
|
|
]
|
|
},
|
|
"GuildWelcomeScreen": {
|
|
"type": "object",
|
|
"properties": {
|
|
"enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"welcome_channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"emoji_id": {
|
|
"type": "string"
|
|
},
|
|
"emoji_name": {
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_id",
|
|
"description"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"description",
|
|
"enabled",
|
|
"welcome_channels"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"APIMemberArray": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Member"
|
|
},
|
|
"definitions": {
|
|
"Member": {
|
|
"type": "object",
|
|
"properties": {
|
|
"index": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"nick": {
|
|
"type": "string"
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"joined_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"premium_since": {
|
|
"type": "integer"
|
|
},
|
|
"deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"mute": {
|
|
"type": "boolean"
|
|
},
|
|
"pending": {
|
|
"type": "boolean"
|
|
},
|
|
"settings": {
|
|
"$ref": "#/definitions/UserGuildSettings"
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"joined_by": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"theme_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"communication_disabled_until": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"banner",
|
|
"bio",
|
|
"communication_disabled_until",
|
|
"deaf",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"index",
|
|
"joined_at",
|
|
"joined_by",
|
|
"mute",
|
|
"pending",
|
|
"roles",
|
|
"settings",
|
|
"user"
|
|
]
|
|
},
|
|
"User": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"theme_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"phone": {
|
|
"type": "string"
|
|
},
|
|
"desktop": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"mobile": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"premium": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_type": {
|
|
"type": "integer"
|
|
},
|
|
"bot": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"bio": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"system": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"nsfw_allowed": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"mfa_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"webauthn_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"totp_secret": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"totp_last_ticket": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"deleted": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"email": {
|
|
"type": "string"
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"public_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"purchased_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"premium_usage_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"rights": {
|
|
"type": "string"
|
|
},
|
|
"sessions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Session"
|
|
}
|
|
},
|
|
"relationships": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Relationship"
|
|
}
|
|
},
|
|
"connected_accounts": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ConnectedAccount"
|
|
}
|
|
},
|
|
"data": {
|
|
"type": "object",
|
|
"properties": {
|
|
"valid_tokens_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"hash": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"valid_tokens_since"
|
|
]
|
|
},
|
|
"fingerprints": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"settings": {
|
|
"$ref": "#/definitions/UserSettings"
|
|
},
|
|
"extended_settings": {
|
|
"type": "string",
|
|
"default": "{}"
|
|
},
|
|
"security_keys": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SecurityKey"
|
|
}
|
|
},
|
|
"badge_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"connected_accounts",
|
|
"created_at",
|
|
"data",
|
|
"deleted",
|
|
"desktop",
|
|
"disabled",
|
|
"discriminator",
|
|
"extended_settings",
|
|
"fingerprints",
|
|
"flags",
|
|
"id",
|
|
"mfa_enabled",
|
|
"mobile",
|
|
"nsfw_allowed",
|
|
"premium",
|
|
"premium_since",
|
|
"premium_type",
|
|
"premium_usage_flags",
|
|
"public_flags",
|
|
"purchased_flags",
|
|
"relationships",
|
|
"rights",
|
|
"security_keys",
|
|
"sessions",
|
|
"system",
|
|
"username",
|
|
"verified",
|
|
"webauthn_enabled"
|
|
]
|
|
},
|
|
"Session": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"client_info": {
|
|
"type": "object",
|
|
"properties": {
|
|
"client": {
|
|
"type": "string"
|
|
},
|
|
"os": {
|
|
"type": "string"
|
|
},
|
|
"version": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"client",
|
|
"os",
|
|
"version"
|
|
]
|
|
},
|
|
"client_status": {
|
|
"$ref": "#/definitions/ClientStatus"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"activities",
|
|
"client_info",
|
|
"client_status",
|
|
"id",
|
|
"session_id",
|
|
"status",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
]
|
|
},
|
|
"ClientStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"desktop": {
|
|
"type": "string"
|
|
},
|
|
"mobile": {
|
|
"type": "string"
|
|
},
|
|
"web": {
|
|
"type": "string"
|
|
},
|
|
"embedded": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Relationship": {
|
|
"type": "object",
|
|
"properties": {
|
|
"from_id": {
|
|
"type": "string"
|
|
},
|
|
"from": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"to_id": {
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"nickname": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/RelationshipType"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"from",
|
|
"from_id",
|
|
"id",
|
|
"to",
|
|
"to_id",
|
|
"type"
|
|
]
|
|
},
|
|
"RelationshipType": {
|
|
"type": "number",
|
|
"enum": [
|
|
4,
|
|
3,
|
|
2,
|
|
1
|
|
]
|
|
},
|
|
"ConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"external_id": {
|
|
"type": "string"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"friend_sync": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"revoked": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"show_activity": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"visibility": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"integrations": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"metadata_": {},
|
|
"metadata_visibility": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"two_way_link": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"token_data": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/ConnectedAccountTokenData"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"external_id",
|
|
"id",
|
|
"name",
|
|
"type",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"ConnectedAccountTokenData": {
|
|
"type": "object",
|
|
"properties": {
|
|
"access_token": {
|
|
"type": "string"
|
|
},
|
|
"token_type": {
|
|
"type": "string"
|
|
},
|
|
"scope": {
|
|
"type": "string"
|
|
},
|
|
"refresh_token": {
|
|
"type": "string"
|
|
},
|
|
"expires_in": {
|
|
"type": "integer"
|
|
},
|
|
"expires_at": {
|
|
"type": "integer"
|
|
},
|
|
"fetched_at": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"access_token",
|
|
"fetched_at"
|
|
]
|
|
},
|
|
"UserSettings": {
|
|
"type": "object",
|
|
"properties": {
|
|
"index": {
|
|
"type": "string"
|
|
},
|
|
"afk_timeout": {
|
|
"type": "integer",
|
|
"default": 3600
|
|
},
|
|
"allow_accessibility_detection": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"animate_emoji": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"animate_stickers": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"contact_sync_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"convert_emoticons": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"custom_status": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/CustomStatus"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"default_guilds_restricted": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"detect_platform_accounts": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"developer_mode": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"disable_games_tab": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"enable_tts_command": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"friend_discovery_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"friend_source_flags": {
|
|
"$ref": "#/definitions/FriendSourceFlags"
|
|
},
|
|
"gateway_connected": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"gif_auto_play": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"guild_folders": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/GuildFolder"
|
|
},
|
|
"default": []
|
|
},
|
|
"guild_positions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"inline_attachment_media": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"inline_embed_media": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"locale": {
|
|
"type": "string",
|
|
"default": "en-US"
|
|
},
|
|
"message_display_compact": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"native_phone_integration_enabled": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"render_embeds": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"render_reactions": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"restricted_guilds": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"show_current_game": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string",
|
|
"default": "online"
|
|
},
|
|
"stream_notifications_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"theme": {
|
|
"enum": [
|
|
"dark",
|
|
"light"
|
|
],
|
|
"type": "string",
|
|
"default": "dark"
|
|
},
|
|
"timezone_offset": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"view_nsfw_guilds": {
|
|
"type": "boolean",
|
|
"default": true
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk_timeout",
|
|
"allow_accessibility_detection",
|
|
"animate_emoji",
|
|
"animate_stickers",
|
|
"contact_sync_enabled",
|
|
"convert_emoticons",
|
|
"custom_status",
|
|
"default_guilds_restricted",
|
|
"detect_platform_accounts",
|
|
"developer_mode",
|
|
"disable_games_tab",
|
|
"enable_tts_command",
|
|
"explicit_content_filter",
|
|
"friend_discovery_flags",
|
|
"friend_source_flags",
|
|
"gateway_connected",
|
|
"gif_auto_play",
|
|
"guild_folders",
|
|
"guild_positions",
|
|
"index",
|
|
"inline_attachment_media",
|
|
"inline_embed_media",
|
|
"locale",
|
|
"message_display_compact",
|
|
"native_phone_integration_enabled",
|
|
"render_embeds",
|
|
"render_reactions",
|
|
"restricted_guilds",
|
|
"show_current_game",
|
|
"status",
|
|
"stream_notifications_enabled",
|
|
"theme",
|
|
"timezone_offset",
|
|
"view_nsfw_guilds"
|
|
]
|
|
},
|
|
"CustomStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"emoji_id": {
|
|
"type": "string"
|
|
},
|
|
"emoji_name": {
|
|
"type": "string"
|
|
},
|
|
"expires_at": {
|
|
"type": "integer"
|
|
},
|
|
"text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"FriendSourceFlags": {
|
|
"type": "object",
|
|
"properties": {
|
|
"all": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"all"
|
|
]
|
|
},
|
|
"GuildFolder": {
|
|
"type": "object",
|
|
"properties": {
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"guild_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"color",
|
|
"guild_ids",
|
|
"id",
|
|
"name"
|
|
]
|
|
},
|
|
"SecurityKey": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"key_id": {
|
|
"type": "string"
|
|
},
|
|
"public_key": {
|
|
"type": "string"
|
|
},
|
|
"counter": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"counter",
|
|
"id",
|
|
"key_id",
|
|
"name",
|
|
"public_key",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Guild": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"afk_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"afk_timeout": {
|
|
"type": "integer"
|
|
},
|
|
"bans": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Ban"
|
|
}
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"default_message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"discovery_splash": {
|
|
"type": "string"
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer"
|
|
},
|
|
"features": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"primary_category_id": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"large": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"max_members": {
|
|
"type": "integer"
|
|
},
|
|
"max_presences": {
|
|
"type": "integer"
|
|
},
|
|
"max_video_channel_users": {
|
|
"type": "integer"
|
|
},
|
|
"member_count": {
|
|
"type": "integer"
|
|
},
|
|
"presence_count": {
|
|
"type": "integer"
|
|
},
|
|
"members": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Member"
|
|
}
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Channel"
|
|
}
|
|
},
|
|
"template_id": {
|
|
"type": "string"
|
|
},
|
|
"template": {
|
|
"$ref": "#/definitions/Template"
|
|
},
|
|
"emojis": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Emoji"
|
|
}
|
|
},
|
|
"stickers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"invites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Invite"
|
|
}
|
|
},
|
|
"voice_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/VoiceState"
|
|
}
|
|
},
|
|
"webhooks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Webhook"
|
|
}
|
|
},
|
|
"mfa_level": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"owner_id": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"preferred_locale": {
|
|
"type": "string"
|
|
},
|
|
"premium_subscription_count": {
|
|
"type": "integer"
|
|
},
|
|
"premium_tier": {
|
|
"type": "integer"
|
|
},
|
|
"public_updates_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"public_updates_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"rules_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"rules_channel": {
|
|
"type": "string"
|
|
},
|
|
"region": {
|
|
"type": "string"
|
|
},
|
|
"splash": {
|
|
"type": "string"
|
|
},
|
|
"system_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"system_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"system_channel_flags": {
|
|
"type": "integer"
|
|
},
|
|
"unavailable": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"verification_level": {
|
|
"type": "integer"
|
|
},
|
|
"welcome_screen": {
|
|
"$ref": "#/definitions/GuildWelcomeScreen",
|
|
"description": "DEPRECATED: Look at the new Guild onboarding screens."
|
|
},
|
|
"widget_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"widget_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"widget_enabled": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"nsfw_level": {
|
|
"type": "integer"
|
|
},
|
|
"nsfw": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"parent": {
|
|
"type": "string"
|
|
},
|
|
"permissions": {
|
|
"type": "integer"
|
|
},
|
|
"premium_progress_bar_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"channel_ordering": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bans",
|
|
"channel_ordering",
|
|
"channels",
|
|
"emojis",
|
|
"features",
|
|
"id",
|
|
"invites",
|
|
"members",
|
|
"name",
|
|
"nsfw",
|
|
"premium_progress_bar_enabled",
|
|
"public_updates_channel_id",
|
|
"roles",
|
|
"stickers",
|
|
"template",
|
|
"unavailable",
|
|
"voice_states",
|
|
"webhooks",
|
|
"welcome_screen",
|
|
"widget_enabled"
|
|
]
|
|
},
|
|
"Channel": {
|
|
"type": "object",
|
|
"properties": {
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ChannelType"
|
|
},
|
|
"recipients": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Recipient"
|
|
}
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"parent_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"parent": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"owner_id": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"last_pin_timestamp": {
|
|
"type": "integer"
|
|
},
|
|
"default_auto_archive_duration": {
|
|
"type": "integer"
|
|
},
|
|
"permission_overwrites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwrite"
|
|
}
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
},
|
|
"bitrate": {
|
|
"type": "integer"
|
|
},
|
|
"user_limit": {
|
|
"type": "integer"
|
|
},
|
|
"nsfw": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"topic": {
|
|
"type": "string"
|
|
},
|
|
"invites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Invite"
|
|
}
|
|
},
|
|
"retention_policy_id": {
|
|
"type": "string"
|
|
},
|
|
"messages": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Message"
|
|
}
|
|
},
|
|
"voice_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/VoiceState"
|
|
}
|
|
},
|
|
"read_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ReadState"
|
|
}
|
|
},
|
|
"webhooks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Webhook"
|
|
}
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"position": {
|
|
"description": "Must be calculated Channel.calculatePosition",
|
|
"type": "integer"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"created_at",
|
|
"flags",
|
|
"id",
|
|
"nsfw",
|
|
"owner",
|
|
"parent_id",
|
|
"position",
|
|
"type"
|
|
]
|
|
},
|
|
"ChannelType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
33,
|
|
34,
|
|
35,
|
|
64,
|
|
255
|
|
]
|
|
},
|
|
"Recipient": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"closed": {
|
|
"type": "boolean"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"closed",
|
|
"id",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"ChannelPermissionOverwrite": {
|
|
"type": "object",
|
|
"properties": {
|
|
"allow": {
|
|
"type": "string"
|
|
},
|
|
"deny": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"allow",
|
|
"deny",
|
|
"id",
|
|
"type"
|
|
]
|
|
},
|
|
"ChannelPermissionOverwriteType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"Invite": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "string"
|
|
},
|
|
"temporary": {
|
|
"type": "boolean"
|
|
},
|
|
"uses": {
|
|
"type": "integer"
|
|
},
|
|
"max_uses": {
|
|
"type": "integer"
|
|
},
|
|
"max_age": {
|
|
"type": "integer"
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"expires_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"inviter_id": {
|
|
"type": "string"
|
|
},
|
|
"inviter": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"target_user_id": {
|
|
"type": "string"
|
|
},
|
|
"target_user": {
|
|
"type": "string"
|
|
},
|
|
"target_user_type": {
|
|
"type": "integer"
|
|
},
|
|
"vanity_url": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"code",
|
|
"created_at",
|
|
"flags",
|
|
"guild",
|
|
"guild_id",
|
|
"inviter",
|
|
"max_age",
|
|
"max_uses",
|
|
"target_user_id",
|
|
"temporary",
|
|
"uses"
|
|
]
|
|
},
|
|
"Message": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"author_id": {
|
|
"type": "string"
|
|
},
|
|
"author": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"member_id": {
|
|
"type": "string"
|
|
},
|
|
"member": {
|
|
"$ref": "#/definitions/Member"
|
|
},
|
|
"webhook_id": {
|
|
"type": "string"
|
|
},
|
|
"webhook": {
|
|
"$ref": "#/definitions/Webhook"
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"application": {
|
|
"$ref": "#/definitions/Application"
|
|
},
|
|
"content": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"edited_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"tts": {
|
|
"type": "boolean"
|
|
},
|
|
"mention_everyone": {
|
|
"type": "boolean"
|
|
},
|
|
"mentions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/User"
|
|
}
|
|
},
|
|
"mention_roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"mention_channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Channel"
|
|
}
|
|
},
|
|
"sticker_items": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"attachments": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Attachment"
|
|
}
|
|
},
|
|
"embeds": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Embed"
|
|
}
|
|
},
|
|
"reactions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Reaction"
|
|
}
|
|
},
|
|
"nonce": {
|
|
"type": "string"
|
|
},
|
|
"pinned_at": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"pinned": {
|
|
"type": "boolean"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/MessageType"
|
|
},
|
|
"activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "integer"
|
|
},
|
|
"party_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"party_id",
|
|
"type"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"message_reference": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"message_id"
|
|
]
|
|
},
|
|
"referenced_message": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/Message"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"interaction": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/InteractionType"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"type"
|
|
]
|
|
},
|
|
"interaction_metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/InteractionType"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"authorizing_integration_owners": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"command_type": {
|
|
"$ref": "#/definitions/ApplicationCommandType"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"authorizing_integration_owners",
|
|
"command_type",
|
|
"id",
|
|
"name",
|
|
"type",
|
|
"user_id"
|
|
]
|
|
},
|
|
"components": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ActionRowComponent"
|
|
}
|
|
},
|
|
"poll": {
|
|
"$ref": "#/definitions/Poll"
|
|
},
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"embeds",
|
|
"flags",
|
|
"id",
|
|
"mention_channels",
|
|
"mention_roles",
|
|
"mentions",
|
|
"pinned",
|
|
"reactions",
|
|
"timestamp",
|
|
"type"
|
|
]
|
|
},
|
|
"Webhook": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/WebhookType"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"token": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"application": {
|
|
"$ref": "#/definitions/Application"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"source_guild_id": {
|
|
"type": "string"
|
|
},
|
|
"source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"source_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"source_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"application",
|
|
"application_id",
|
|
"avatar",
|
|
"channel",
|
|
"channel_id",
|
|
"id",
|
|
"name",
|
|
"source_channel",
|
|
"source_channel_id",
|
|
"type",
|
|
"url",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"WebhookType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3
|
|
]
|
|
},
|
|
"Application": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"summary": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"type": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true
|
|
},
|
|
"hook": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"bot_public": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"bot_require_code_grant": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"verify_key": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"redirect_uris": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"rpc_application_state": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"store_application_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"verification_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"interactions_endpoint_url": {
|
|
"type": "string"
|
|
},
|
|
"integration_public": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"integration_require_code_grant": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"discoverability_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"discovery_eligibility_flags": {
|
|
"type": "integer",
|
|
"default": 2240
|
|
},
|
|
"bot": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"tags": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"cover_image": {
|
|
"type": "string"
|
|
},
|
|
"install_params": {
|
|
"type": "object",
|
|
"properties": {
|
|
"scopes": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"permissions": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"permissions",
|
|
"scopes"
|
|
]
|
|
},
|
|
"terms_of_service_url": {
|
|
"type": "string"
|
|
},
|
|
"privacy_policy_url": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"custom_install_url": {
|
|
"type": "string"
|
|
},
|
|
"team": {
|
|
"$ref": "#/definitions/Team"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"description",
|
|
"discoverability_state",
|
|
"discovery_eligibility_flags",
|
|
"flags",
|
|
"hook",
|
|
"id",
|
|
"integration_public",
|
|
"integration_require_code_grant",
|
|
"name",
|
|
"owner",
|
|
"redirect_uris",
|
|
"rpc_application_state",
|
|
"store_application_state",
|
|
"summary",
|
|
"verification_state",
|
|
"verify_key"
|
|
]
|
|
},
|
|
"Team": {
|
|
"type": "object",
|
|
"properties": {
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"members": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/TeamMember"
|
|
}
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"owner_user_id": {
|
|
"type": "string"
|
|
},
|
|
"owner_user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"members",
|
|
"name",
|
|
"owner_user",
|
|
"owner_user_id"
|
|
]
|
|
},
|
|
"TeamMember": {
|
|
"type": "object",
|
|
"properties": {
|
|
"membership_state": {
|
|
"$ref": "#/definitions/TeamMemberState"
|
|
},
|
|
"permissions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"role": {
|
|
"$ref": "#/definitions/TeamMemberRole"
|
|
},
|
|
"team_id": {
|
|
"type": "string"
|
|
},
|
|
"team": {
|
|
"$ref": "#/definitions/Team"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"membership_state",
|
|
"permissions",
|
|
"role",
|
|
"team",
|
|
"team_id",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"TeamMemberState": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"TeamMemberRole": {
|
|
"type": "string",
|
|
"enum": [
|
|
"admin",
|
|
"developer",
|
|
"read_only"
|
|
]
|
|
},
|
|
"Role": {
|
|
"type": "object",
|
|
"properties": {
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"hoist": {
|
|
"type": "boolean"
|
|
},
|
|
"managed": {
|
|
"type": "boolean"
|
|
},
|
|
"mentionable": {
|
|
"type": "boolean"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"permissions": {
|
|
"type": "string"
|
|
},
|
|
"position": {
|
|
"type": "integer"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"unicode_emoji": {
|
|
"type": "string"
|
|
},
|
|
"tags": {
|
|
"type": "object",
|
|
"properties": {
|
|
"bot_id": {
|
|
"type": "string"
|
|
},
|
|
"integration_id": {
|
|
"type": "string"
|
|
},
|
|
"premium_subscriber": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"colors": {
|
|
"$ref": "#/definitions/RoleColors"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"color",
|
|
"colors",
|
|
"flags",
|
|
"guild",
|
|
"guild_id",
|
|
"hoist",
|
|
"id",
|
|
"managed",
|
|
"mentionable",
|
|
"name",
|
|
"permissions",
|
|
"position"
|
|
]
|
|
},
|
|
"RoleColors": {
|
|
"type": "object",
|
|
"properties": {
|
|
"primary_color": {
|
|
"type": "integer"
|
|
},
|
|
"secondary_color": {
|
|
"type": "integer"
|
|
},
|
|
"tertiary_color": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"primary_color"
|
|
]
|
|
},
|
|
"Sticker": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"available": {
|
|
"type": "boolean"
|
|
},
|
|
"tags": {
|
|
"type": "string"
|
|
},
|
|
"pack_id": {
|
|
"type": "string"
|
|
},
|
|
"pack": {
|
|
"$ref": "#/definitions/StickerPack"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/StickerType"
|
|
},
|
|
"format_type": {
|
|
"$ref": "#/definitions/StickerFormatType"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"format_type",
|
|
"id",
|
|
"name",
|
|
"pack",
|
|
"type"
|
|
]
|
|
},
|
|
"StickerPack": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"banner_asset_id": {
|
|
"type": "string"
|
|
},
|
|
"stickers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"cover_sticker_id": {
|
|
"type": "string"
|
|
},
|
|
"cover_sticker": {
|
|
"$ref": "#/definitions/Sticker"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"stickers"
|
|
]
|
|
},
|
|
"StickerType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"StickerFormatType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4
|
|
]
|
|
},
|
|
"Attachment": {
|
|
"type": "object",
|
|
"properties": {
|
|
"filename": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "integer"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
},
|
|
"content_type": {
|
|
"type": "string"
|
|
},
|
|
"message_id": {
|
|
"type": "string"
|
|
},
|
|
"message": {
|
|
"$ref": "#/definitions/Message"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"filename",
|
|
"id",
|
|
"message",
|
|
"message_id",
|
|
"proxy_url",
|
|
"size",
|
|
"url"
|
|
]
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"Reaction": {
|
|
"type": "object",
|
|
"properties": {
|
|
"count": {
|
|
"type": "integer"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"user_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"count",
|
|
"emoji",
|
|
"user_ids"
|
|
]
|
|
},
|
|
"PartialEmoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name"
|
|
]
|
|
},
|
|
"MessageType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
16,
|
|
19,
|
|
20,
|
|
41,
|
|
42,
|
|
43,
|
|
50,
|
|
63,
|
|
255
|
|
]
|
|
},
|
|
"InteractionType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5
|
|
]
|
|
},
|
|
"ApplicationCommandType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4
|
|
]
|
|
},
|
|
"ActionRowComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.ActionRow"
|
|
},
|
|
"components": {
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/ButtonComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/SelectMenuComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/StringSelectMenuComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/TextInputComponent"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"components",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.ActionRow": {
|
|
"type": "number",
|
|
"const": 1
|
|
},
|
|
"ButtonComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.Button"
|
|
},
|
|
"style": {
|
|
"$ref": "#/definitions/ButtonStyle"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"sku_id": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"style",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.Button": {
|
|
"type": "number",
|
|
"const": 2
|
|
},
|
|
"ButtonStyle": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6
|
|
]
|
|
},
|
|
"SelectMenuComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": [
|
|
3,
|
|
5,
|
|
6,
|
|
7,
|
|
8
|
|
],
|
|
"type": "number"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_types": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
},
|
|
"default_values": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuDefaultOption"
|
|
}
|
|
},
|
|
"min_values": {
|
|
"type": "integer"
|
|
},
|
|
"max_values": {
|
|
"type": "integer"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"type"
|
|
]
|
|
},
|
|
"SelectMenuDefaultOption": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"channel",
|
|
"role",
|
|
"user"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"type"
|
|
]
|
|
},
|
|
"StringSelectMenuComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.StringSelect"
|
|
},
|
|
"options": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuOption"
|
|
}
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_types": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
},
|
|
"default_values": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuDefaultOption"
|
|
}
|
|
},
|
|
"min_values": {
|
|
"type": "integer"
|
|
},
|
|
"max_values": {
|
|
"type": "integer"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"options",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.StringSelect": {
|
|
"type": "number",
|
|
"const": 3
|
|
},
|
|
"SelectMenuOption": {
|
|
"type": "object",
|
|
"properties": {
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"default": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"label",
|
|
"value"
|
|
]
|
|
},
|
|
"TextInputComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.TextInput"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"style": {
|
|
"$ref": "#/definitions/TextInputStyle"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"min_length": {
|
|
"type": "integer"
|
|
},
|
|
"max_length": {
|
|
"type": "integer"
|
|
},
|
|
"required": {
|
|
"type": "boolean"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"label",
|
|
"style",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.TextInput": {
|
|
"type": "number",
|
|
"const": 4
|
|
},
|
|
"TextInputStyle": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"Poll": {
|
|
"type": "object",
|
|
"properties": {
|
|
"question": {
|
|
"$ref": "#/definitions/PollMedia"
|
|
},
|
|
"answers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/PollAnswer"
|
|
}
|
|
},
|
|
"expiry": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"allow_multiselect": {
|
|
"type": "boolean"
|
|
},
|
|
"results": {
|
|
"$ref": "#/definitions/PollResult"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"allow_multiselect",
|
|
"answers",
|
|
"expiry",
|
|
"question"
|
|
]
|
|
},
|
|
"PollMedia": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"PollAnswer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"answer_id": {
|
|
"type": "string"
|
|
},
|
|
"poll_media": {
|
|
"$ref": "#/definitions/PollMedia"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"poll_media"
|
|
]
|
|
},
|
|
"PollResult": {
|
|
"type": "object",
|
|
"properties": {
|
|
"is_finalized": {
|
|
"type": "boolean"
|
|
},
|
|
"answer_counts": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/PollAnswerCount"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"answer_counts",
|
|
"is_finalized"
|
|
]
|
|
},
|
|
"PollAnswerCount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"count": {
|
|
"type": "integer"
|
|
},
|
|
"me_voted": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"count",
|
|
"id",
|
|
"me_voted"
|
|
]
|
|
},
|
|
"VoiceState": {
|
|
"type": "object",
|
|
"properties": {
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"member": {
|
|
"$ref": "#/definitions/Member"
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
},
|
|
"token": {
|
|
"type": "string"
|
|
},
|
|
"deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"mute": {
|
|
"type": "boolean"
|
|
},
|
|
"self_deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"self_mute": {
|
|
"type": "boolean"
|
|
},
|
|
"self_stream": {
|
|
"type": "boolean"
|
|
},
|
|
"self_video": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress": {
|
|
"type": "boolean"
|
|
},
|
|
"request_to_speak_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"deaf",
|
|
"guild_id",
|
|
"id",
|
|
"member",
|
|
"mute",
|
|
"self_deaf",
|
|
"self_mute",
|
|
"self_video",
|
|
"session_id",
|
|
"suppress",
|
|
"token",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"ReadState": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"public_ack": {
|
|
"type": "string"
|
|
},
|
|
"notifications_cursor": {
|
|
"type": "string"
|
|
},
|
|
"last_pin_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"mention_count": {
|
|
"type": "integer"
|
|
},
|
|
"manual": {
|
|
"type": "boolean"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"id",
|
|
"last_message_id",
|
|
"manual",
|
|
"mention_count",
|
|
"notifications_cursor",
|
|
"public_ack",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Ban": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"executor_id": {
|
|
"type": "string"
|
|
},
|
|
"executor": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"ip": {
|
|
"type": "string"
|
|
},
|
|
"reason": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"executor",
|
|
"executor_id",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"ip",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Template": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"usage_count": {
|
|
"type": "integer"
|
|
},
|
|
"creator_id": {
|
|
"type": "string"
|
|
},
|
|
"creator": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"updated_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"source_guild_id": {
|
|
"type": "string"
|
|
},
|
|
"source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"serialized_source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"code",
|
|
"created_at",
|
|
"creator",
|
|
"creator_id",
|
|
"id",
|
|
"name",
|
|
"serialized_source_guild",
|
|
"source_guild",
|
|
"source_guild_id",
|
|
"updated_at"
|
|
]
|
|
},
|
|
"Emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"animated": {
|
|
"type": "boolean"
|
|
},
|
|
"available": {
|
|
"type": "boolean"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"managed": {
|
|
"type": "boolean"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"require_colons": {
|
|
"type": "boolean"
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"groups": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"available",
|
|
"groups",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"managed",
|
|
"name",
|
|
"require_colons",
|
|
"roles",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"GuildWelcomeScreen": {
|
|
"type": "object",
|
|
"properties": {
|
|
"enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"welcome_channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"emoji_id": {
|
|
"type": "string"
|
|
},
|
|
"emoji_name": {
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_id",
|
|
"description"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"description",
|
|
"enabled",
|
|
"welcome_channels"
|
|
]
|
|
},
|
|
"UserGuildSettings": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_overrides": {
|
|
"anyOf": [
|
|
{
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"$ref": "#/definitions/ChannelOverride"
|
|
}
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mobile_push": {
|
|
"type": "boolean"
|
|
},
|
|
"mute_config": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress_everyone": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress_roles": {
|
|
"type": "boolean"
|
|
},
|
|
"version": {
|
|
"type": "integer"
|
|
},
|
|
"guild_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"mute_scheduled_events": {
|
|
"type": "boolean"
|
|
},
|
|
"hide_muted_channels": {
|
|
"type": "boolean"
|
|
},
|
|
"notify_highlights": {
|
|
"type": "integer",
|
|
"const": 0
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_overrides",
|
|
"flags",
|
|
"guild_id",
|
|
"hide_muted_channels",
|
|
"message_notifications",
|
|
"mobile_push",
|
|
"mute_config",
|
|
"mute_scheduled_events",
|
|
"muted",
|
|
"notify_highlights",
|
|
"suppress_everyone",
|
|
"suppress_roles",
|
|
"version"
|
|
]
|
|
},
|
|
"ChannelOverride": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_id",
|
|
"message_notifications",
|
|
"mute_config",
|
|
"muted"
|
|
]
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"APIPublicMember": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"mute": {
|
|
"type": "boolean"
|
|
},
|
|
"deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"nick": {
|
|
"type": "string"
|
|
},
|
|
"joined_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"pending": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_since": {
|
|
"type": "integer"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/PublicUser"
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"deaf",
|
|
"guild_id",
|
|
"id",
|
|
"joined_at",
|
|
"mute",
|
|
"pending",
|
|
"roles",
|
|
"user"
|
|
],
|
|
"definitions": {
|
|
"PublicUser": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```",
|
|
"type": "string"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_type": {
|
|
"type": "integer"
|
|
},
|
|
"theme_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"badge_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"discriminator",
|
|
"id",
|
|
"premium_since",
|
|
"premium_type",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"APIGuildWithJoinedAt": {
|
|
"type": "object",
|
|
"properties": {
|
|
"joined_at": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"primary_category_id": {
|
|
"type": "string"
|
|
},
|
|
"large": {
|
|
"type": "boolean"
|
|
},
|
|
"max_members": {
|
|
"type": "integer"
|
|
},
|
|
"max_presences": {
|
|
"type": "integer"
|
|
},
|
|
"max_video_channel_users": {
|
|
"type": "integer"
|
|
},
|
|
"member_count": {
|
|
"type": "integer"
|
|
},
|
|
"presence_count": {
|
|
"type": "integer"
|
|
},
|
|
"template_id": {
|
|
"type": "string"
|
|
},
|
|
"mfa_level": {
|
|
"type": "integer"
|
|
},
|
|
"owner_id": {
|
|
"type": "string"
|
|
},
|
|
"premium_subscription_count": {
|
|
"type": "integer"
|
|
},
|
|
"premium_tier": {
|
|
"type": "integer"
|
|
},
|
|
"welcome_screen": {
|
|
"$ref": "#/definitions/GuildWelcomeScreen"
|
|
},
|
|
"widget_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"widget_enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"nsfw_level": {
|
|
"type": "integer"
|
|
},
|
|
"nsfw": {
|
|
"type": "boolean"
|
|
},
|
|
"parent": {
|
|
"type": "string"
|
|
},
|
|
"region": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"banner": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"system_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"rules_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"guild_template_code": {
|
|
"type": "string"
|
|
},
|
|
"staff_only": {
|
|
"type": "boolean"
|
|
},
|
|
"splash": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"features": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"verification_level": {
|
|
"type": "integer"
|
|
},
|
|
"default_message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"system_channel_flags": {
|
|
"type": "integer"
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer"
|
|
},
|
|
"public_updates_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"afk_timeout": {
|
|
"type": "integer"
|
|
},
|
|
"afk_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"preferred_locale": {
|
|
"type": "string"
|
|
},
|
|
"premium_progress_bar_enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"discovery_splash": {
|
|
"type": "string"
|
|
},
|
|
"safety_alerts_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"joined_at",
|
|
"large",
|
|
"max_members",
|
|
"max_presences",
|
|
"max_video_channel_users",
|
|
"member_count",
|
|
"mfa_level",
|
|
"name",
|
|
"nsfw",
|
|
"nsfw_level",
|
|
"owner_id",
|
|
"parent",
|
|
"premium_subscription_count",
|
|
"premium_tier",
|
|
"presence_count",
|
|
"primary_category_id",
|
|
"template_id",
|
|
"welcome_screen",
|
|
"widget_channel_id",
|
|
"widget_enabled"
|
|
],
|
|
"definitions": {
|
|
"GuildWelcomeScreen": {
|
|
"type": "object",
|
|
"properties": {
|
|
"enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"welcome_channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"emoji_id": {
|
|
"type": "string"
|
|
},
|
|
"emoji_name": {
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_id",
|
|
"description"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"description",
|
|
"enabled",
|
|
"welcome_channels"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"APIRoleArray": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
},
|
|
"definitions": {
|
|
"Role": {
|
|
"type": "object",
|
|
"properties": {
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"hoist": {
|
|
"type": "boolean"
|
|
},
|
|
"managed": {
|
|
"type": "boolean"
|
|
},
|
|
"mentionable": {
|
|
"type": "boolean"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"permissions": {
|
|
"type": "string"
|
|
},
|
|
"position": {
|
|
"type": "integer"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"unicode_emoji": {
|
|
"type": "string"
|
|
},
|
|
"tags": {
|
|
"type": "object",
|
|
"properties": {
|
|
"bot_id": {
|
|
"type": "string"
|
|
},
|
|
"integration_id": {
|
|
"type": "string"
|
|
},
|
|
"premium_subscriber": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"colors": {
|
|
"$ref": "#/definitions/RoleColors"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"color",
|
|
"colors",
|
|
"flags",
|
|
"guild",
|
|
"guild_id",
|
|
"hoist",
|
|
"id",
|
|
"managed",
|
|
"mentionable",
|
|
"name",
|
|
"permissions",
|
|
"position"
|
|
]
|
|
},
|
|
"Guild": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"afk_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"afk_timeout": {
|
|
"type": "integer"
|
|
},
|
|
"bans": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Ban"
|
|
}
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"default_message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"discovery_splash": {
|
|
"type": "string"
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer"
|
|
},
|
|
"features": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"primary_category_id": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"large": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"max_members": {
|
|
"type": "integer"
|
|
},
|
|
"max_presences": {
|
|
"type": "integer"
|
|
},
|
|
"max_video_channel_users": {
|
|
"type": "integer"
|
|
},
|
|
"member_count": {
|
|
"type": "integer"
|
|
},
|
|
"presence_count": {
|
|
"type": "integer"
|
|
},
|
|
"members": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Member"
|
|
}
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Channel"
|
|
}
|
|
},
|
|
"template_id": {
|
|
"type": "string"
|
|
},
|
|
"template": {
|
|
"$ref": "#/definitions/Template"
|
|
},
|
|
"emojis": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Emoji"
|
|
}
|
|
},
|
|
"stickers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"invites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Invite"
|
|
}
|
|
},
|
|
"voice_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/VoiceState"
|
|
}
|
|
},
|
|
"webhooks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Webhook"
|
|
}
|
|
},
|
|
"mfa_level": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"owner_id": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"preferred_locale": {
|
|
"type": "string"
|
|
},
|
|
"premium_subscription_count": {
|
|
"type": "integer"
|
|
},
|
|
"premium_tier": {
|
|
"type": "integer"
|
|
},
|
|
"public_updates_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"public_updates_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"rules_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"rules_channel": {
|
|
"type": "string"
|
|
},
|
|
"region": {
|
|
"type": "string"
|
|
},
|
|
"splash": {
|
|
"type": "string"
|
|
},
|
|
"system_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"system_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"system_channel_flags": {
|
|
"type": "integer"
|
|
},
|
|
"unavailable": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"verification_level": {
|
|
"type": "integer"
|
|
},
|
|
"welcome_screen": {
|
|
"$ref": "#/definitions/GuildWelcomeScreen",
|
|
"description": "DEPRECATED: Look at the new Guild onboarding screens."
|
|
},
|
|
"widget_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"widget_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"widget_enabled": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"nsfw_level": {
|
|
"type": "integer"
|
|
},
|
|
"nsfw": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"parent": {
|
|
"type": "string"
|
|
},
|
|
"permissions": {
|
|
"type": "integer"
|
|
},
|
|
"premium_progress_bar_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"channel_ordering": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bans",
|
|
"channel_ordering",
|
|
"channels",
|
|
"emojis",
|
|
"features",
|
|
"id",
|
|
"invites",
|
|
"members",
|
|
"name",
|
|
"nsfw",
|
|
"premium_progress_bar_enabled",
|
|
"public_updates_channel_id",
|
|
"roles",
|
|
"stickers",
|
|
"template",
|
|
"unavailable",
|
|
"voice_states",
|
|
"webhooks",
|
|
"welcome_screen",
|
|
"widget_enabled"
|
|
]
|
|
},
|
|
"Channel": {
|
|
"type": "object",
|
|
"properties": {
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ChannelType"
|
|
},
|
|
"recipients": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Recipient"
|
|
}
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"parent_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"parent": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"owner_id": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"last_pin_timestamp": {
|
|
"type": "integer"
|
|
},
|
|
"default_auto_archive_duration": {
|
|
"type": "integer"
|
|
},
|
|
"permission_overwrites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwrite"
|
|
}
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
},
|
|
"bitrate": {
|
|
"type": "integer"
|
|
},
|
|
"user_limit": {
|
|
"type": "integer"
|
|
},
|
|
"nsfw": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"topic": {
|
|
"type": "string"
|
|
},
|
|
"invites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Invite"
|
|
}
|
|
},
|
|
"retention_policy_id": {
|
|
"type": "string"
|
|
},
|
|
"messages": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Message"
|
|
}
|
|
},
|
|
"voice_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/VoiceState"
|
|
}
|
|
},
|
|
"read_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ReadState"
|
|
}
|
|
},
|
|
"webhooks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Webhook"
|
|
}
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"position": {
|
|
"description": "Must be calculated Channel.calculatePosition",
|
|
"type": "integer"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"created_at",
|
|
"flags",
|
|
"id",
|
|
"nsfw",
|
|
"owner",
|
|
"parent_id",
|
|
"position",
|
|
"type"
|
|
]
|
|
},
|
|
"ChannelType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
33,
|
|
34,
|
|
35,
|
|
64,
|
|
255
|
|
]
|
|
},
|
|
"Recipient": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"closed": {
|
|
"type": "boolean"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"closed",
|
|
"id",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"User": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"theme_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"phone": {
|
|
"type": "string"
|
|
},
|
|
"desktop": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"mobile": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"premium": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_type": {
|
|
"type": "integer"
|
|
},
|
|
"bot": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"bio": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"system": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"nsfw_allowed": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"mfa_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"webauthn_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"totp_secret": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"totp_last_ticket": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"deleted": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"email": {
|
|
"type": "string"
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"public_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"purchased_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"premium_usage_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"rights": {
|
|
"type": "string"
|
|
},
|
|
"sessions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Session"
|
|
}
|
|
},
|
|
"relationships": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Relationship"
|
|
}
|
|
},
|
|
"connected_accounts": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ConnectedAccount"
|
|
}
|
|
},
|
|
"data": {
|
|
"type": "object",
|
|
"properties": {
|
|
"valid_tokens_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"hash": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"valid_tokens_since"
|
|
]
|
|
},
|
|
"fingerprints": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"settings": {
|
|
"$ref": "#/definitions/UserSettings"
|
|
},
|
|
"extended_settings": {
|
|
"type": "string",
|
|
"default": "{}"
|
|
},
|
|
"security_keys": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SecurityKey"
|
|
}
|
|
},
|
|
"badge_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"connected_accounts",
|
|
"created_at",
|
|
"data",
|
|
"deleted",
|
|
"desktop",
|
|
"disabled",
|
|
"discriminator",
|
|
"extended_settings",
|
|
"fingerprints",
|
|
"flags",
|
|
"id",
|
|
"mfa_enabled",
|
|
"mobile",
|
|
"nsfw_allowed",
|
|
"premium",
|
|
"premium_since",
|
|
"premium_type",
|
|
"premium_usage_flags",
|
|
"public_flags",
|
|
"purchased_flags",
|
|
"relationships",
|
|
"rights",
|
|
"security_keys",
|
|
"sessions",
|
|
"system",
|
|
"username",
|
|
"verified",
|
|
"webauthn_enabled"
|
|
]
|
|
},
|
|
"Session": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"client_info": {
|
|
"type": "object",
|
|
"properties": {
|
|
"client": {
|
|
"type": "string"
|
|
},
|
|
"os": {
|
|
"type": "string"
|
|
},
|
|
"version": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"client",
|
|
"os",
|
|
"version"
|
|
]
|
|
},
|
|
"client_status": {
|
|
"$ref": "#/definitions/ClientStatus"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"activities",
|
|
"client_info",
|
|
"client_status",
|
|
"id",
|
|
"session_id",
|
|
"status",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
]
|
|
},
|
|
"ClientStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"desktop": {
|
|
"type": "string"
|
|
},
|
|
"mobile": {
|
|
"type": "string"
|
|
},
|
|
"web": {
|
|
"type": "string"
|
|
},
|
|
"embedded": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Relationship": {
|
|
"type": "object",
|
|
"properties": {
|
|
"from_id": {
|
|
"type": "string"
|
|
},
|
|
"from": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"to_id": {
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"nickname": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/RelationshipType"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"from",
|
|
"from_id",
|
|
"id",
|
|
"to",
|
|
"to_id",
|
|
"type"
|
|
]
|
|
},
|
|
"RelationshipType": {
|
|
"type": "number",
|
|
"enum": [
|
|
4,
|
|
3,
|
|
2,
|
|
1
|
|
]
|
|
},
|
|
"ConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"external_id": {
|
|
"type": "string"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"friend_sync": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"revoked": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"show_activity": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"visibility": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"integrations": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"metadata_": {},
|
|
"metadata_visibility": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"two_way_link": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"token_data": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/ConnectedAccountTokenData"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"external_id",
|
|
"id",
|
|
"name",
|
|
"type",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"ConnectedAccountTokenData": {
|
|
"type": "object",
|
|
"properties": {
|
|
"access_token": {
|
|
"type": "string"
|
|
},
|
|
"token_type": {
|
|
"type": "string"
|
|
},
|
|
"scope": {
|
|
"type": "string"
|
|
},
|
|
"refresh_token": {
|
|
"type": "string"
|
|
},
|
|
"expires_in": {
|
|
"type": "integer"
|
|
},
|
|
"expires_at": {
|
|
"type": "integer"
|
|
},
|
|
"fetched_at": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"access_token",
|
|
"fetched_at"
|
|
]
|
|
},
|
|
"UserSettings": {
|
|
"type": "object",
|
|
"properties": {
|
|
"index": {
|
|
"type": "string"
|
|
},
|
|
"afk_timeout": {
|
|
"type": "integer",
|
|
"default": 3600
|
|
},
|
|
"allow_accessibility_detection": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"animate_emoji": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"animate_stickers": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"contact_sync_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"convert_emoticons": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"custom_status": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/CustomStatus"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"default_guilds_restricted": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"detect_platform_accounts": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"developer_mode": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"disable_games_tab": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"enable_tts_command": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"friend_discovery_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"friend_source_flags": {
|
|
"$ref": "#/definitions/FriendSourceFlags"
|
|
},
|
|
"gateway_connected": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"gif_auto_play": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"guild_folders": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/GuildFolder"
|
|
},
|
|
"default": []
|
|
},
|
|
"guild_positions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"inline_attachment_media": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"inline_embed_media": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"locale": {
|
|
"type": "string",
|
|
"default": "en-US"
|
|
},
|
|
"message_display_compact": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"native_phone_integration_enabled": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"render_embeds": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"render_reactions": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"restricted_guilds": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"show_current_game": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string",
|
|
"default": "online"
|
|
},
|
|
"stream_notifications_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"theme": {
|
|
"enum": [
|
|
"dark",
|
|
"light"
|
|
],
|
|
"type": "string",
|
|
"default": "dark"
|
|
},
|
|
"timezone_offset": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"view_nsfw_guilds": {
|
|
"type": "boolean",
|
|
"default": true
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk_timeout",
|
|
"allow_accessibility_detection",
|
|
"animate_emoji",
|
|
"animate_stickers",
|
|
"contact_sync_enabled",
|
|
"convert_emoticons",
|
|
"custom_status",
|
|
"default_guilds_restricted",
|
|
"detect_platform_accounts",
|
|
"developer_mode",
|
|
"disable_games_tab",
|
|
"enable_tts_command",
|
|
"explicit_content_filter",
|
|
"friend_discovery_flags",
|
|
"friend_source_flags",
|
|
"gateway_connected",
|
|
"gif_auto_play",
|
|
"guild_folders",
|
|
"guild_positions",
|
|
"index",
|
|
"inline_attachment_media",
|
|
"inline_embed_media",
|
|
"locale",
|
|
"message_display_compact",
|
|
"native_phone_integration_enabled",
|
|
"render_embeds",
|
|
"render_reactions",
|
|
"restricted_guilds",
|
|
"show_current_game",
|
|
"status",
|
|
"stream_notifications_enabled",
|
|
"theme",
|
|
"timezone_offset",
|
|
"view_nsfw_guilds"
|
|
]
|
|
},
|
|
"CustomStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"emoji_id": {
|
|
"type": "string"
|
|
},
|
|
"emoji_name": {
|
|
"type": "string"
|
|
},
|
|
"expires_at": {
|
|
"type": "integer"
|
|
},
|
|
"text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"FriendSourceFlags": {
|
|
"type": "object",
|
|
"properties": {
|
|
"all": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"all"
|
|
]
|
|
},
|
|
"GuildFolder": {
|
|
"type": "object",
|
|
"properties": {
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"guild_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"color",
|
|
"guild_ids",
|
|
"id",
|
|
"name"
|
|
]
|
|
},
|
|
"SecurityKey": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"key_id": {
|
|
"type": "string"
|
|
},
|
|
"public_key": {
|
|
"type": "string"
|
|
},
|
|
"counter": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"counter",
|
|
"id",
|
|
"key_id",
|
|
"name",
|
|
"public_key",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"ChannelPermissionOverwrite": {
|
|
"type": "object",
|
|
"properties": {
|
|
"allow": {
|
|
"type": "string"
|
|
},
|
|
"deny": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"allow",
|
|
"deny",
|
|
"id",
|
|
"type"
|
|
]
|
|
},
|
|
"ChannelPermissionOverwriteType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"Invite": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "string"
|
|
},
|
|
"temporary": {
|
|
"type": "boolean"
|
|
},
|
|
"uses": {
|
|
"type": "integer"
|
|
},
|
|
"max_uses": {
|
|
"type": "integer"
|
|
},
|
|
"max_age": {
|
|
"type": "integer"
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"expires_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"inviter_id": {
|
|
"type": "string"
|
|
},
|
|
"inviter": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"target_user_id": {
|
|
"type": "string"
|
|
},
|
|
"target_user": {
|
|
"type": "string"
|
|
},
|
|
"target_user_type": {
|
|
"type": "integer"
|
|
},
|
|
"vanity_url": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"code",
|
|
"created_at",
|
|
"flags",
|
|
"guild",
|
|
"guild_id",
|
|
"inviter",
|
|
"max_age",
|
|
"max_uses",
|
|
"target_user_id",
|
|
"temporary",
|
|
"uses"
|
|
]
|
|
},
|
|
"Message": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"author_id": {
|
|
"type": "string"
|
|
},
|
|
"author": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"member_id": {
|
|
"type": "string"
|
|
},
|
|
"member": {
|
|
"$ref": "#/definitions/Member"
|
|
},
|
|
"webhook_id": {
|
|
"type": "string"
|
|
},
|
|
"webhook": {
|
|
"$ref": "#/definitions/Webhook"
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"application": {
|
|
"$ref": "#/definitions/Application"
|
|
},
|
|
"content": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"edited_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"tts": {
|
|
"type": "boolean"
|
|
},
|
|
"mention_everyone": {
|
|
"type": "boolean"
|
|
},
|
|
"mentions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/User"
|
|
}
|
|
},
|
|
"mention_roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"mention_channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Channel"
|
|
}
|
|
},
|
|
"sticker_items": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"attachments": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Attachment"
|
|
}
|
|
},
|
|
"embeds": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Embed"
|
|
}
|
|
},
|
|
"reactions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Reaction"
|
|
}
|
|
},
|
|
"nonce": {
|
|
"type": "string"
|
|
},
|
|
"pinned_at": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"pinned": {
|
|
"type": "boolean"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/MessageType"
|
|
},
|
|
"activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "integer"
|
|
},
|
|
"party_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"party_id",
|
|
"type"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"message_reference": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"message_id"
|
|
]
|
|
},
|
|
"referenced_message": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/Message"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"interaction": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/InteractionType"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"type"
|
|
]
|
|
},
|
|
"interaction_metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/InteractionType"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"authorizing_integration_owners": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"command_type": {
|
|
"$ref": "#/definitions/ApplicationCommandType"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"authorizing_integration_owners",
|
|
"command_type",
|
|
"id",
|
|
"name",
|
|
"type",
|
|
"user_id"
|
|
]
|
|
},
|
|
"components": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ActionRowComponent"
|
|
}
|
|
},
|
|
"poll": {
|
|
"$ref": "#/definitions/Poll"
|
|
},
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"embeds",
|
|
"flags",
|
|
"id",
|
|
"mention_channels",
|
|
"mention_roles",
|
|
"mentions",
|
|
"pinned",
|
|
"reactions",
|
|
"timestamp",
|
|
"type"
|
|
]
|
|
},
|
|
"Member": {
|
|
"type": "object",
|
|
"properties": {
|
|
"index": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"nick": {
|
|
"type": "string"
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"joined_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"premium_since": {
|
|
"type": "integer"
|
|
},
|
|
"deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"mute": {
|
|
"type": "boolean"
|
|
},
|
|
"pending": {
|
|
"type": "boolean"
|
|
},
|
|
"settings": {
|
|
"$ref": "#/definitions/UserGuildSettings"
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"joined_by": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"theme_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"communication_disabled_until": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"banner",
|
|
"bio",
|
|
"communication_disabled_until",
|
|
"deaf",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"index",
|
|
"joined_at",
|
|
"joined_by",
|
|
"mute",
|
|
"pending",
|
|
"roles",
|
|
"settings",
|
|
"user"
|
|
]
|
|
},
|
|
"UserGuildSettings": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_overrides": {
|
|
"anyOf": [
|
|
{
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"$ref": "#/definitions/ChannelOverride"
|
|
}
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mobile_push": {
|
|
"type": "boolean"
|
|
},
|
|
"mute_config": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress_everyone": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress_roles": {
|
|
"type": "boolean"
|
|
},
|
|
"version": {
|
|
"type": "integer"
|
|
},
|
|
"guild_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"mute_scheduled_events": {
|
|
"type": "boolean"
|
|
},
|
|
"hide_muted_channels": {
|
|
"type": "boolean"
|
|
},
|
|
"notify_highlights": {
|
|
"type": "integer",
|
|
"const": 0
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_overrides",
|
|
"flags",
|
|
"guild_id",
|
|
"hide_muted_channels",
|
|
"message_notifications",
|
|
"mobile_push",
|
|
"mute_config",
|
|
"mute_scheduled_events",
|
|
"muted",
|
|
"notify_highlights",
|
|
"suppress_everyone",
|
|
"suppress_roles",
|
|
"version"
|
|
]
|
|
},
|
|
"ChannelOverride": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_id",
|
|
"message_notifications",
|
|
"mute_config",
|
|
"muted"
|
|
]
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"Webhook": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/WebhookType"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"token": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"application": {
|
|
"$ref": "#/definitions/Application"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"source_guild_id": {
|
|
"type": "string"
|
|
},
|
|
"source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"source_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"source_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"application",
|
|
"application_id",
|
|
"avatar",
|
|
"channel",
|
|
"channel_id",
|
|
"id",
|
|
"name",
|
|
"source_channel",
|
|
"source_channel_id",
|
|
"type",
|
|
"url",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"WebhookType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3
|
|
]
|
|
},
|
|
"Application": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"summary": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"type": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true
|
|
},
|
|
"hook": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"bot_public": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"bot_require_code_grant": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"verify_key": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"redirect_uris": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"rpc_application_state": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"store_application_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"verification_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"interactions_endpoint_url": {
|
|
"type": "string"
|
|
},
|
|
"integration_public": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"integration_require_code_grant": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"discoverability_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"discovery_eligibility_flags": {
|
|
"type": "integer",
|
|
"default": 2240
|
|
},
|
|
"bot": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"tags": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"cover_image": {
|
|
"type": "string"
|
|
},
|
|
"install_params": {
|
|
"type": "object",
|
|
"properties": {
|
|
"scopes": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"permissions": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"permissions",
|
|
"scopes"
|
|
]
|
|
},
|
|
"terms_of_service_url": {
|
|
"type": "string"
|
|
},
|
|
"privacy_policy_url": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"custom_install_url": {
|
|
"type": "string"
|
|
},
|
|
"team": {
|
|
"$ref": "#/definitions/Team"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"description",
|
|
"discoverability_state",
|
|
"discovery_eligibility_flags",
|
|
"flags",
|
|
"hook",
|
|
"id",
|
|
"integration_public",
|
|
"integration_require_code_grant",
|
|
"name",
|
|
"owner",
|
|
"redirect_uris",
|
|
"rpc_application_state",
|
|
"store_application_state",
|
|
"summary",
|
|
"verification_state",
|
|
"verify_key"
|
|
]
|
|
},
|
|
"Team": {
|
|
"type": "object",
|
|
"properties": {
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"members": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/TeamMember"
|
|
}
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"owner_user_id": {
|
|
"type": "string"
|
|
},
|
|
"owner_user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"members",
|
|
"name",
|
|
"owner_user",
|
|
"owner_user_id"
|
|
]
|
|
},
|
|
"TeamMember": {
|
|
"type": "object",
|
|
"properties": {
|
|
"membership_state": {
|
|
"$ref": "#/definitions/TeamMemberState"
|
|
},
|
|
"permissions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"role": {
|
|
"$ref": "#/definitions/TeamMemberRole"
|
|
},
|
|
"team_id": {
|
|
"type": "string"
|
|
},
|
|
"team": {
|
|
"$ref": "#/definitions/Team"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"membership_state",
|
|
"permissions",
|
|
"role",
|
|
"team",
|
|
"team_id",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"TeamMemberState": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"TeamMemberRole": {
|
|
"type": "string",
|
|
"enum": [
|
|
"admin",
|
|
"developer",
|
|
"read_only"
|
|
]
|
|
},
|
|
"Sticker": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"available": {
|
|
"type": "boolean"
|
|
},
|
|
"tags": {
|
|
"type": "string"
|
|
},
|
|
"pack_id": {
|
|
"type": "string"
|
|
},
|
|
"pack": {
|
|
"$ref": "#/definitions/StickerPack"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/StickerType"
|
|
},
|
|
"format_type": {
|
|
"$ref": "#/definitions/StickerFormatType"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"format_type",
|
|
"id",
|
|
"name",
|
|
"pack",
|
|
"type"
|
|
]
|
|
},
|
|
"StickerPack": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"banner_asset_id": {
|
|
"type": "string"
|
|
},
|
|
"stickers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"cover_sticker_id": {
|
|
"type": "string"
|
|
},
|
|
"cover_sticker": {
|
|
"$ref": "#/definitions/Sticker"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"stickers"
|
|
]
|
|
},
|
|
"StickerType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"StickerFormatType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4
|
|
]
|
|
},
|
|
"Attachment": {
|
|
"type": "object",
|
|
"properties": {
|
|
"filename": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "integer"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
},
|
|
"content_type": {
|
|
"type": "string"
|
|
},
|
|
"message_id": {
|
|
"type": "string"
|
|
},
|
|
"message": {
|
|
"$ref": "#/definitions/Message"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"filename",
|
|
"id",
|
|
"message",
|
|
"message_id",
|
|
"proxy_url",
|
|
"size",
|
|
"url"
|
|
]
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"Reaction": {
|
|
"type": "object",
|
|
"properties": {
|
|
"count": {
|
|
"type": "integer"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"user_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"count",
|
|
"emoji",
|
|
"user_ids"
|
|
]
|
|
},
|
|
"PartialEmoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name"
|
|
]
|
|
},
|
|
"MessageType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
16,
|
|
19,
|
|
20,
|
|
41,
|
|
42,
|
|
43,
|
|
50,
|
|
63,
|
|
255
|
|
]
|
|
},
|
|
"InteractionType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5
|
|
]
|
|
},
|
|
"ApplicationCommandType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4
|
|
]
|
|
},
|
|
"ActionRowComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.ActionRow"
|
|
},
|
|
"components": {
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/ButtonComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/SelectMenuComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/StringSelectMenuComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/TextInputComponent"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"components",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.ActionRow": {
|
|
"type": "number",
|
|
"const": 1
|
|
},
|
|
"ButtonComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.Button"
|
|
},
|
|
"style": {
|
|
"$ref": "#/definitions/ButtonStyle"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"sku_id": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"style",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.Button": {
|
|
"type": "number",
|
|
"const": 2
|
|
},
|
|
"ButtonStyle": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6
|
|
]
|
|
},
|
|
"SelectMenuComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": [
|
|
3,
|
|
5,
|
|
6,
|
|
7,
|
|
8
|
|
],
|
|
"type": "number"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_types": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
},
|
|
"default_values": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuDefaultOption"
|
|
}
|
|
},
|
|
"min_values": {
|
|
"type": "integer"
|
|
},
|
|
"max_values": {
|
|
"type": "integer"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"type"
|
|
]
|
|
},
|
|
"SelectMenuDefaultOption": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"channel",
|
|
"role",
|
|
"user"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"type"
|
|
]
|
|
},
|
|
"StringSelectMenuComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.StringSelect"
|
|
},
|
|
"options": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuOption"
|
|
}
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_types": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
},
|
|
"default_values": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuDefaultOption"
|
|
}
|
|
},
|
|
"min_values": {
|
|
"type": "integer"
|
|
},
|
|
"max_values": {
|
|
"type": "integer"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"options",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.StringSelect": {
|
|
"type": "number",
|
|
"const": 3
|
|
},
|
|
"SelectMenuOption": {
|
|
"type": "object",
|
|
"properties": {
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"default": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"label",
|
|
"value"
|
|
]
|
|
},
|
|
"TextInputComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.TextInput"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"style": {
|
|
"$ref": "#/definitions/TextInputStyle"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"min_length": {
|
|
"type": "integer"
|
|
},
|
|
"max_length": {
|
|
"type": "integer"
|
|
},
|
|
"required": {
|
|
"type": "boolean"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"label",
|
|
"style",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.TextInput": {
|
|
"type": "number",
|
|
"const": 4
|
|
},
|
|
"TextInputStyle": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"Poll": {
|
|
"type": "object",
|
|
"properties": {
|
|
"question": {
|
|
"$ref": "#/definitions/PollMedia"
|
|
},
|
|
"answers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/PollAnswer"
|
|
}
|
|
},
|
|
"expiry": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"allow_multiselect": {
|
|
"type": "boolean"
|
|
},
|
|
"results": {
|
|
"$ref": "#/definitions/PollResult"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"allow_multiselect",
|
|
"answers",
|
|
"expiry",
|
|
"question"
|
|
]
|
|
},
|
|
"PollMedia": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"PollAnswer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"answer_id": {
|
|
"type": "string"
|
|
},
|
|
"poll_media": {
|
|
"$ref": "#/definitions/PollMedia"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"poll_media"
|
|
]
|
|
},
|
|
"PollResult": {
|
|
"type": "object",
|
|
"properties": {
|
|
"is_finalized": {
|
|
"type": "boolean"
|
|
},
|
|
"answer_counts": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/PollAnswerCount"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"answer_counts",
|
|
"is_finalized"
|
|
]
|
|
},
|
|
"PollAnswerCount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"count": {
|
|
"type": "integer"
|
|
},
|
|
"me_voted": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"count",
|
|
"id",
|
|
"me_voted"
|
|
]
|
|
},
|
|
"VoiceState": {
|
|
"type": "object",
|
|
"properties": {
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"member": {
|
|
"$ref": "#/definitions/Member"
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
},
|
|
"token": {
|
|
"type": "string"
|
|
},
|
|
"deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"mute": {
|
|
"type": "boolean"
|
|
},
|
|
"self_deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"self_mute": {
|
|
"type": "boolean"
|
|
},
|
|
"self_stream": {
|
|
"type": "boolean"
|
|
},
|
|
"self_video": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress": {
|
|
"type": "boolean"
|
|
},
|
|
"request_to_speak_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"deaf",
|
|
"guild_id",
|
|
"id",
|
|
"member",
|
|
"mute",
|
|
"self_deaf",
|
|
"self_mute",
|
|
"self_video",
|
|
"session_id",
|
|
"suppress",
|
|
"token",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"ReadState": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"public_ack": {
|
|
"type": "string"
|
|
},
|
|
"notifications_cursor": {
|
|
"type": "string"
|
|
},
|
|
"last_pin_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"mention_count": {
|
|
"type": "integer"
|
|
},
|
|
"manual": {
|
|
"type": "boolean"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"id",
|
|
"last_message_id",
|
|
"manual",
|
|
"mention_count",
|
|
"notifications_cursor",
|
|
"public_ack",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Ban": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"executor_id": {
|
|
"type": "string"
|
|
},
|
|
"executor": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"ip": {
|
|
"type": "string"
|
|
},
|
|
"reason": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"executor",
|
|
"executor_id",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"ip",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Template": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"usage_count": {
|
|
"type": "integer"
|
|
},
|
|
"creator_id": {
|
|
"type": "string"
|
|
},
|
|
"creator": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"updated_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"source_guild_id": {
|
|
"type": "string"
|
|
},
|
|
"source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"serialized_source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"code",
|
|
"created_at",
|
|
"creator",
|
|
"creator_id",
|
|
"id",
|
|
"name",
|
|
"serialized_source_guild",
|
|
"source_guild",
|
|
"source_guild_id",
|
|
"updated_at"
|
|
]
|
|
},
|
|
"Emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"animated": {
|
|
"type": "boolean"
|
|
},
|
|
"available": {
|
|
"type": "boolean"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"managed": {
|
|
"type": "boolean"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"require_colons": {
|
|
"type": "boolean"
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"groups": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"available",
|
|
"groups",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"managed",
|
|
"name",
|
|
"require_colons",
|
|
"roles",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"GuildWelcomeScreen": {
|
|
"type": "object",
|
|
"properties": {
|
|
"enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"welcome_channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"emoji_id": {
|
|
"type": "string"
|
|
},
|
|
"emoji_name": {
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_id",
|
|
"description"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"description",
|
|
"enabled",
|
|
"welcome_channels"
|
|
]
|
|
},
|
|
"RoleColors": {
|
|
"type": "object",
|
|
"properties": {
|
|
"primary_color": {
|
|
"type": "integer"
|
|
},
|
|
"secondary_color": {
|
|
"type": "integer"
|
|
},
|
|
"tertiary_color": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"primary_color"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"APIStickerArray": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
},
|
|
"definitions": {
|
|
"Sticker": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"available": {
|
|
"type": "boolean"
|
|
},
|
|
"tags": {
|
|
"type": "string"
|
|
},
|
|
"pack_id": {
|
|
"type": "string"
|
|
},
|
|
"pack": {
|
|
"$ref": "#/definitions/StickerPack"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/StickerType"
|
|
},
|
|
"format_type": {
|
|
"$ref": "#/definitions/StickerFormatType"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"format_type",
|
|
"id",
|
|
"name",
|
|
"pack",
|
|
"type"
|
|
]
|
|
},
|
|
"StickerPack": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"banner_asset_id": {
|
|
"type": "string"
|
|
},
|
|
"stickers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"cover_sticker_id": {
|
|
"type": "string"
|
|
},
|
|
"cover_sticker": {
|
|
"$ref": "#/definitions/Sticker"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"stickers"
|
|
]
|
|
},
|
|
"Guild": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"afk_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"afk_timeout": {
|
|
"type": "integer"
|
|
},
|
|
"bans": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Ban"
|
|
}
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"default_message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"discovery_splash": {
|
|
"type": "string"
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer"
|
|
},
|
|
"features": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"primary_category_id": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"large": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"max_members": {
|
|
"type": "integer"
|
|
},
|
|
"max_presences": {
|
|
"type": "integer"
|
|
},
|
|
"max_video_channel_users": {
|
|
"type": "integer"
|
|
},
|
|
"member_count": {
|
|
"type": "integer"
|
|
},
|
|
"presence_count": {
|
|
"type": "integer"
|
|
},
|
|
"members": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Member"
|
|
}
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Channel"
|
|
}
|
|
},
|
|
"template_id": {
|
|
"type": "string"
|
|
},
|
|
"template": {
|
|
"$ref": "#/definitions/Template"
|
|
},
|
|
"emojis": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Emoji"
|
|
}
|
|
},
|
|
"stickers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"invites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Invite"
|
|
}
|
|
},
|
|
"voice_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/VoiceState"
|
|
}
|
|
},
|
|
"webhooks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Webhook"
|
|
}
|
|
},
|
|
"mfa_level": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"owner_id": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"preferred_locale": {
|
|
"type": "string"
|
|
},
|
|
"premium_subscription_count": {
|
|
"type": "integer"
|
|
},
|
|
"premium_tier": {
|
|
"type": "integer"
|
|
},
|
|
"public_updates_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"public_updates_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"rules_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"rules_channel": {
|
|
"type": "string"
|
|
},
|
|
"region": {
|
|
"type": "string"
|
|
},
|
|
"splash": {
|
|
"type": "string"
|
|
},
|
|
"system_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"system_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"system_channel_flags": {
|
|
"type": "integer"
|
|
},
|
|
"unavailable": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"verification_level": {
|
|
"type": "integer"
|
|
},
|
|
"welcome_screen": {
|
|
"$ref": "#/definitions/GuildWelcomeScreen",
|
|
"description": "DEPRECATED: Look at the new Guild onboarding screens."
|
|
},
|
|
"widget_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"widget_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"widget_enabled": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"nsfw_level": {
|
|
"type": "integer"
|
|
},
|
|
"nsfw": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"parent": {
|
|
"type": "string"
|
|
},
|
|
"permissions": {
|
|
"type": "integer"
|
|
},
|
|
"premium_progress_bar_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"channel_ordering": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bans",
|
|
"channel_ordering",
|
|
"channels",
|
|
"emojis",
|
|
"features",
|
|
"id",
|
|
"invites",
|
|
"members",
|
|
"name",
|
|
"nsfw",
|
|
"premium_progress_bar_enabled",
|
|
"public_updates_channel_id",
|
|
"roles",
|
|
"stickers",
|
|
"template",
|
|
"unavailable",
|
|
"voice_states",
|
|
"webhooks",
|
|
"welcome_screen",
|
|
"widget_enabled"
|
|
]
|
|
},
|
|
"Channel": {
|
|
"type": "object",
|
|
"properties": {
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ChannelType"
|
|
},
|
|
"recipients": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Recipient"
|
|
}
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"parent_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"parent": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"owner_id": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"last_pin_timestamp": {
|
|
"type": "integer"
|
|
},
|
|
"default_auto_archive_duration": {
|
|
"type": "integer"
|
|
},
|
|
"permission_overwrites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwrite"
|
|
}
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
},
|
|
"bitrate": {
|
|
"type": "integer"
|
|
},
|
|
"user_limit": {
|
|
"type": "integer"
|
|
},
|
|
"nsfw": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"topic": {
|
|
"type": "string"
|
|
},
|
|
"invites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Invite"
|
|
}
|
|
},
|
|
"retention_policy_id": {
|
|
"type": "string"
|
|
},
|
|
"messages": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Message"
|
|
}
|
|
},
|
|
"voice_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/VoiceState"
|
|
}
|
|
},
|
|
"read_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ReadState"
|
|
}
|
|
},
|
|
"webhooks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Webhook"
|
|
}
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"position": {
|
|
"description": "Must be calculated Channel.calculatePosition",
|
|
"type": "integer"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"created_at",
|
|
"flags",
|
|
"id",
|
|
"nsfw",
|
|
"owner",
|
|
"parent_id",
|
|
"position",
|
|
"type"
|
|
]
|
|
},
|
|
"ChannelType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
33,
|
|
34,
|
|
35,
|
|
64,
|
|
255
|
|
]
|
|
},
|
|
"Recipient": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"closed": {
|
|
"type": "boolean"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"closed",
|
|
"id",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"User": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"theme_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"phone": {
|
|
"type": "string"
|
|
},
|
|
"desktop": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"mobile": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"premium": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_type": {
|
|
"type": "integer"
|
|
},
|
|
"bot": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"bio": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"system": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"nsfw_allowed": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"mfa_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"webauthn_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"totp_secret": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"totp_last_ticket": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"deleted": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"email": {
|
|
"type": "string"
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"public_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"purchased_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"premium_usage_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"rights": {
|
|
"type": "string"
|
|
},
|
|
"sessions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Session"
|
|
}
|
|
},
|
|
"relationships": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Relationship"
|
|
}
|
|
},
|
|
"connected_accounts": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ConnectedAccount"
|
|
}
|
|
},
|
|
"data": {
|
|
"type": "object",
|
|
"properties": {
|
|
"valid_tokens_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"hash": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"valid_tokens_since"
|
|
]
|
|
},
|
|
"fingerprints": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"settings": {
|
|
"$ref": "#/definitions/UserSettings"
|
|
},
|
|
"extended_settings": {
|
|
"type": "string",
|
|
"default": "{}"
|
|
},
|
|
"security_keys": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SecurityKey"
|
|
}
|
|
},
|
|
"badge_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"connected_accounts",
|
|
"created_at",
|
|
"data",
|
|
"deleted",
|
|
"desktop",
|
|
"disabled",
|
|
"discriminator",
|
|
"extended_settings",
|
|
"fingerprints",
|
|
"flags",
|
|
"id",
|
|
"mfa_enabled",
|
|
"mobile",
|
|
"nsfw_allowed",
|
|
"premium",
|
|
"premium_since",
|
|
"premium_type",
|
|
"premium_usage_flags",
|
|
"public_flags",
|
|
"purchased_flags",
|
|
"relationships",
|
|
"rights",
|
|
"security_keys",
|
|
"sessions",
|
|
"system",
|
|
"username",
|
|
"verified",
|
|
"webauthn_enabled"
|
|
]
|
|
},
|
|
"Session": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"client_info": {
|
|
"type": "object",
|
|
"properties": {
|
|
"client": {
|
|
"type": "string"
|
|
},
|
|
"os": {
|
|
"type": "string"
|
|
},
|
|
"version": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"client",
|
|
"os",
|
|
"version"
|
|
]
|
|
},
|
|
"client_status": {
|
|
"$ref": "#/definitions/ClientStatus"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"activities",
|
|
"client_info",
|
|
"client_status",
|
|
"id",
|
|
"session_id",
|
|
"status",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
]
|
|
},
|
|
"ClientStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"desktop": {
|
|
"type": "string"
|
|
},
|
|
"mobile": {
|
|
"type": "string"
|
|
},
|
|
"web": {
|
|
"type": "string"
|
|
},
|
|
"embedded": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Relationship": {
|
|
"type": "object",
|
|
"properties": {
|
|
"from_id": {
|
|
"type": "string"
|
|
},
|
|
"from": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"to_id": {
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"nickname": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/RelationshipType"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"from",
|
|
"from_id",
|
|
"id",
|
|
"to",
|
|
"to_id",
|
|
"type"
|
|
]
|
|
},
|
|
"RelationshipType": {
|
|
"type": "number",
|
|
"enum": [
|
|
4,
|
|
3,
|
|
2,
|
|
1
|
|
]
|
|
},
|
|
"ConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"external_id": {
|
|
"type": "string"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"friend_sync": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"revoked": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"show_activity": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"visibility": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"integrations": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"metadata_": {},
|
|
"metadata_visibility": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"two_way_link": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"token_data": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/ConnectedAccountTokenData"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"external_id",
|
|
"id",
|
|
"name",
|
|
"type",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"ConnectedAccountTokenData": {
|
|
"type": "object",
|
|
"properties": {
|
|
"access_token": {
|
|
"type": "string"
|
|
},
|
|
"token_type": {
|
|
"type": "string"
|
|
},
|
|
"scope": {
|
|
"type": "string"
|
|
},
|
|
"refresh_token": {
|
|
"type": "string"
|
|
},
|
|
"expires_in": {
|
|
"type": "integer"
|
|
},
|
|
"expires_at": {
|
|
"type": "integer"
|
|
},
|
|
"fetched_at": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"access_token",
|
|
"fetched_at"
|
|
]
|
|
},
|
|
"UserSettings": {
|
|
"type": "object",
|
|
"properties": {
|
|
"index": {
|
|
"type": "string"
|
|
},
|
|
"afk_timeout": {
|
|
"type": "integer",
|
|
"default": 3600
|
|
},
|
|
"allow_accessibility_detection": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"animate_emoji": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"animate_stickers": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"contact_sync_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"convert_emoticons": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"custom_status": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/CustomStatus"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"default_guilds_restricted": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"detect_platform_accounts": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"developer_mode": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"disable_games_tab": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"enable_tts_command": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"friend_discovery_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"friend_source_flags": {
|
|
"$ref": "#/definitions/FriendSourceFlags"
|
|
},
|
|
"gateway_connected": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"gif_auto_play": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"guild_folders": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/GuildFolder"
|
|
},
|
|
"default": []
|
|
},
|
|
"guild_positions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"inline_attachment_media": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"inline_embed_media": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"locale": {
|
|
"type": "string",
|
|
"default": "en-US"
|
|
},
|
|
"message_display_compact": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"native_phone_integration_enabled": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"render_embeds": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"render_reactions": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"restricted_guilds": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"show_current_game": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string",
|
|
"default": "online"
|
|
},
|
|
"stream_notifications_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"theme": {
|
|
"enum": [
|
|
"dark",
|
|
"light"
|
|
],
|
|
"type": "string",
|
|
"default": "dark"
|
|
},
|
|
"timezone_offset": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"view_nsfw_guilds": {
|
|
"type": "boolean",
|
|
"default": true
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk_timeout",
|
|
"allow_accessibility_detection",
|
|
"animate_emoji",
|
|
"animate_stickers",
|
|
"contact_sync_enabled",
|
|
"convert_emoticons",
|
|
"custom_status",
|
|
"default_guilds_restricted",
|
|
"detect_platform_accounts",
|
|
"developer_mode",
|
|
"disable_games_tab",
|
|
"enable_tts_command",
|
|
"explicit_content_filter",
|
|
"friend_discovery_flags",
|
|
"friend_source_flags",
|
|
"gateway_connected",
|
|
"gif_auto_play",
|
|
"guild_folders",
|
|
"guild_positions",
|
|
"index",
|
|
"inline_attachment_media",
|
|
"inline_embed_media",
|
|
"locale",
|
|
"message_display_compact",
|
|
"native_phone_integration_enabled",
|
|
"render_embeds",
|
|
"render_reactions",
|
|
"restricted_guilds",
|
|
"show_current_game",
|
|
"status",
|
|
"stream_notifications_enabled",
|
|
"theme",
|
|
"timezone_offset",
|
|
"view_nsfw_guilds"
|
|
]
|
|
},
|
|
"CustomStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"emoji_id": {
|
|
"type": "string"
|
|
},
|
|
"emoji_name": {
|
|
"type": "string"
|
|
},
|
|
"expires_at": {
|
|
"type": "integer"
|
|
},
|
|
"text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"FriendSourceFlags": {
|
|
"type": "object",
|
|
"properties": {
|
|
"all": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"all"
|
|
]
|
|
},
|
|
"GuildFolder": {
|
|
"type": "object",
|
|
"properties": {
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"guild_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"color",
|
|
"guild_ids",
|
|
"id",
|
|
"name"
|
|
]
|
|
},
|
|
"SecurityKey": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"key_id": {
|
|
"type": "string"
|
|
},
|
|
"public_key": {
|
|
"type": "string"
|
|
},
|
|
"counter": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"counter",
|
|
"id",
|
|
"key_id",
|
|
"name",
|
|
"public_key",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"ChannelPermissionOverwrite": {
|
|
"type": "object",
|
|
"properties": {
|
|
"allow": {
|
|
"type": "string"
|
|
},
|
|
"deny": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"allow",
|
|
"deny",
|
|
"id",
|
|
"type"
|
|
]
|
|
},
|
|
"ChannelPermissionOverwriteType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"Invite": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "string"
|
|
},
|
|
"temporary": {
|
|
"type": "boolean"
|
|
},
|
|
"uses": {
|
|
"type": "integer"
|
|
},
|
|
"max_uses": {
|
|
"type": "integer"
|
|
},
|
|
"max_age": {
|
|
"type": "integer"
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"expires_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"inviter_id": {
|
|
"type": "string"
|
|
},
|
|
"inviter": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"target_user_id": {
|
|
"type": "string"
|
|
},
|
|
"target_user": {
|
|
"type": "string"
|
|
},
|
|
"target_user_type": {
|
|
"type": "integer"
|
|
},
|
|
"vanity_url": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"code",
|
|
"created_at",
|
|
"flags",
|
|
"guild",
|
|
"guild_id",
|
|
"inviter",
|
|
"max_age",
|
|
"max_uses",
|
|
"target_user_id",
|
|
"temporary",
|
|
"uses"
|
|
]
|
|
},
|
|
"Message": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"author_id": {
|
|
"type": "string"
|
|
},
|
|
"author": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"member_id": {
|
|
"type": "string"
|
|
},
|
|
"member": {
|
|
"$ref": "#/definitions/Member"
|
|
},
|
|
"webhook_id": {
|
|
"type": "string"
|
|
},
|
|
"webhook": {
|
|
"$ref": "#/definitions/Webhook"
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"application": {
|
|
"$ref": "#/definitions/Application"
|
|
},
|
|
"content": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"edited_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"tts": {
|
|
"type": "boolean"
|
|
},
|
|
"mention_everyone": {
|
|
"type": "boolean"
|
|
},
|
|
"mentions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/User"
|
|
}
|
|
},
|
|
"mention_roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"mention_channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Channel"
|
|
}
|
|
},
|
|
"sticker_items": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"attachments": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Attachment"
|
|
}
|
|
},
|
|
"embeds": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Embed"
|
|
}
|
|
},
|
|
"reactions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Reaction"
|
|
}
|
|
},
|
|
"nonce": {
|
|
"type": "string"
|
|
},
|
|
"pinned_at": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"pinned": {
|
|
"type": "boolean"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/MessageType"
|
|
},
|
|
"activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "integer"
|
|
},
|
|
"party_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"party_id",
|
|
"type"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"message_reference": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"message_id"
|
|
]
|
|
},
|
|
"referenced_message": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/Message"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"interaction": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/InteractionType"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"type"
|
|
]
|
|
},
|
|
"interaction_metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/InteractionType"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"authorizing_integration_owners": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"command_type": {
|
|
"$ref": "#/definitions/ApplicationCommandType"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"authorizing_integration_owners",
|
|
"command_type",
|
|
"id",
|
|
"name",
|
|
"type",
|
|
"user_id"
|
|
]
|
|
},
|
|
"components": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ActionRowComponent"
|
|
}
|
|
},
|
|
"poll": {
|
|
"$ref": "#/definitions/Poll"
|
|
},
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"embeds",
|
|
"flags",
|
|
"id",
|
|
"mention_channels",
|
|
"mention_roles",
|
|
"mentions",
|
|
"pinned",
|
|
"reactions",
|
|
"timestamp",
|
|
"type"
|
|
]
|
|
},
|
|
"Member": {
|
|
"type": "object",
|
|
"properties": {
|
|
"index": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"nick": {
|
|
"type": "string"
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"joined_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"premium_since": {
|
|
"type": "integer"
|
|
},
|
|
"deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"mute": {
|
|
"type": "boolean"
|
|
},
|
|
"pending": {
|
|
"type": "boolean"
|
|
},
|
|
"settings": {
|
|
"$ref": "#/definitions/UserGuildSettings"
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"joined_by": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"theme_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"communication_disabled_until": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"banner",
|
|
"bio",
|
|
"communication_disabled_until",
|
|
"deaf",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"index",
|
|
"joined_at",
|
|
"joined_by",
|
|
"mute",
|
|
"pending",
|
|
"roles",
|
|
"settings",
|
|
"user"
|
|
]
|
|
},
|
|
"Role": {
|
|
"type": "object",
|
|
"properties": {
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"hoist": {
|
|
"type": "boolean"
|
|
},
|
|
"managed": {
|
|
"type": "boolean"
|
|
},
|
|
"mentionable": {
|
|
"type": "boolean"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"permissions": {
|
|
"type": "string"
|
|
},
|
|
"position": {
|
|
"type": "integer"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"unicode_emoji": {
|
|
"type": "string"
|
|
},
|
|
"tags": {
|
|
"type": "object",
|
|
"properties": {
|
|
"bot_id": {
|
|
"type": "string"
|
|
},
|
|
"integration_id": {
|
|
"type": "string"
|
|
},
|
|
"premium_subscriber": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"colors": {
|
|
"$ref": "#/definitions/RoleColors"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"color",
|
|
"colors",
|
|
"flags",
|
|
"guild",
|
|
"guild_id",
|
|
"hoist",
|
|
"id",
|
|
"managed",
|
|
"mentionable",
|
|
"name",
|
|
"permissions",
|
|
"position"
|
|
]
|
|
},
|
|
"RoleColors": {
|
|
"type": "object",
|
|
"properties": {
|
|
"primary_color": {
|
|
"type": "integer"
|
|
},
|
|
"secondary_color": {
|
|
"type": "integer"
|
|
},
|
|
"tertiary_color": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"primary_color"
|
|
]
|
|
},
|
|
"UserGuildSettings": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_overrides": {
|
|
"anyOf": [
|
|
{
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"$ref": "#/definitions/ChannelOverride"
|
|
}
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mobile_push": {
|
|
"type": "boolean"
|
|
},
|
|
"mute_config": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress_everyone": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress_roles": {
|
|
"type": "boolean"
|
|
},
|
|
"version": {
|
|
"type": "integer"
|
|
},
|
|
"guild_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"mute_scheduled_events": {
|
|
"type": "boolean"
|
|
},
|
|
"hide_muted_channels": {
|
|
"type": "boolean"
|
|
},
|
|
"notify_highlights": {
|
|
"type": "integer",
|
|
"const": 0
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_overrides",
|
|
"flags",
|
|
"guild_id",
|
|
"hide_muted_channels",
|
|
"message_notifications",
|
|
"mobile_push",
|
|
"mute_config",
|
|
"mute_scheduled_events",
|
|
"muted",
|
|
"notify_highlights",
|
|
"suppress_everyone",
|
|
"suppress_roles",
|
|
"version"
|
|
]
|
|
},
|
|
"ChannelOverride": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_id",
|
|
"message_notifications",
|
|
"mute_config",
|
|
"muted"
|
|
]
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"Webhook": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/WebhookType"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"token": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"application": {
|
|
"$ref": "#/definitions/Application"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"source_guild_id": {
|
|
"type": "string"
|
|
},
|
|
"source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"source_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"source_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"application",
|
|
"application_id",
|
|
"avatar",
|
|
"channel",
|
|
"channel_id",
|
|
"id",
|
|
"name",
|
|
"source_channel",
|
|
"source_channel_id",
|
|
"type",
|
|
"url",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"WebhookType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3
|
|
]
|
|
},
|
|
"Application": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"summary": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"type": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true
|
|
},
|
|
"hook": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"bot_public": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"bot_require_code_grant": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"verify_key": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"redirect_uris": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"rpc_application_state": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"store_application_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"verification_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"interactions_endpoint_url": {
|
|
"type": "string"
|
|
},
|
|
"integration_public": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"integration_require_code_grant": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"discoverability_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"discovery_eligibility_flags": {
|
|
"type": "integer",
|
|
"default": 2240
|
|
},
|
|
"bot": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"tags": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"cover_image": {
|
|
"type": "string"
|
|
},
|
|
"install_params": {
|
|
"type": "object",
|
|
"properties": {
|
|
"scopes": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"permissions": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"permissions",
|
|
"scopes"
|
|
]
|
|
},
|
|
"terms_of_service_url": {
|
|
"type": "string"
|
|
},
|
|
"privacy_policy_url": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"custom_install_url": {
|
|
"type": "string"
|
|
},
|
|
"team": {
|
|
"$ref": "#/definitions/Team"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"description",
|
|
"discoverability_state",
|
|
"discovery_eligibility_flags",
|
|
"flags",
|
|
"hook",
|
|
"id",
|
|
"integration_public",
|
|
"integration_require_code_grant",
|
|
"name",
|
|
"owner",
|
|
"redirect_uris",
|
|
"rpc_application_state",
|
|
"store_application_state",
|
|
"summary",
|
|
"verification_state",
|
|
"verify_key"
|
|
]
|
|
},
|
|
"Team": {
|
|
"type": "object",
|
|
"properties": {
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"members": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/TeamMember"
|
|
}
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"owner_user_id": {
|
|
"type": "string"
|
|
},
|
|
"owner_user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"members",
|
|
"name",
|
|
"owner_user",
|
|
"owner_user_id"
|
|
]
|
|
},
|
|
"TeamMember": {
|
|
"type": "object",
|
|
"properties": {
|
|
"membership_state": {
|
|
"$ref": "#/definitions/TeamMemberState"
|
|
},
|
|
"permissions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"role": {
|
|
"$ref": "#/definitions/TeamMemberRole"
|
|
},
|
|
"team_id": {
|
|
"type": "string"
|
|
},
|
|
"team": {
|
|
"$ref": "#/definitions/Team"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"membership_state",
|
|
"permissions",
|
|
"role",
|
|
"team",
|
|
"team_id",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"TeamMemberState": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"TeamMemberRole": {
|
|
"type": "string",
|
|
"enum": [
|
|
"admin",
|
|
"developer",
|
|
"read_only"
|
|
]
|
|
},
|
|
"Attachment": {
|
|
"type": "object",
|
|
"properties": {
|
|
"filename": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "integer"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
},
|
|
"content_type": {
|
|
"type": "string"
|
|
},
|
|
"message_id": {
|
|
"type": "string"
|
|
},
|
|
"message": {
|
|
"$ref": "#/definitions/Message"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"filename",
|
|
"id",
|
|
"message",
|
|
"message_id",
|
|
"proxy_url",
|
|
"size",
|
|
"url"
|
|
]
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"Reaction": {
|
|
"type": "object",
|
|
"properties": {
|
|
"count": {
|
|
"type": "integer"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"user_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"count",
|
|
"emoji",
|
|
"user_ids"
|
|
]
|
|
},
|
|
"PartialEmoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name"
|
|
]
|
|
},
|
|
"MessageType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
16,
|
|
19,
|
|
20,
|
|
41,
|
|
42,
|
|
43,
|
|
50,
|
|
63,
|
|
255
|
|
]
|
|
},
|
|
"InteractionType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5
|
|
]
|
|
},
|
|
"ApplicationCommandType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4
|
|
]
|
|
},
|
|
"ActionRowComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.ActionRow"
|
|
},
|
|
"components": {
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/ButtonComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/SelectMenuComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/StringSelectMenuComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/TextInputComponent"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"components",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.ActionRow": {
|
|
"type": "number",
|
|
"const": 1
|
|
},
|
|
"ButtonComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.Button"
|
|
},
|
|
"style": {
|
|
"$ref": "#/definitions/ButtonStyle"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"sku_id": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"style",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.Button": {
|
|
"type": "number",
|
|
"const": 2
|
|
},
|
|
"ButtonStyle": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6
|
|
]
|
|
},
|
|
"SelectMenuComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": [
|
|
3,
|
|
5,
|
|
6,
|
|
7,
|
|
8
|
|
],
|
|
"type": "number"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_types": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
},
|
|
"default_values": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuDefaultOption"
|
|
}
|
|
},
|
|
"min_values": {
|
|
"type": "integer"
|
|
},
|
|
"max_values": {
|
|
"type": "integer"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"type"
|
|
]
|
|
},
|
|
"SelectMenuDefaultOption": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"channel",
|
|
"role",
|
|
"user"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"type"
|
|
]
|
|
},
|
|
"StringSelectMenuComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.StringSelect"
|
|
},
|
|
"options": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuOption"
|
|
}
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_types": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
},
|
|
"default_values": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuDefaultOption"
|
|
}
|
|
},
|
|
"min_values": {
|
|
"type": "integer"
|
|
},
|
|
"max_values": {
|
|
"type": "integer"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"options",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.StringSelect": {
|
|
"type": "number",
|
|
"const": 3
|
|
},
|
|
"SelectMenuOption": {
|
|
"type": "object",
|
|
"properties": {
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"default": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"label",
|
|
"value"
|
|
]
|
|
},
|
|
"TextInputComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.TextInput"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"style": {
|
|
"$ref": "#/definitions/TextInputStyle"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"min_length": {
|
|
"type": "integer"
|
|
},
|
|
"max_length": {
|
|
"type": "integer"
|
|
},
|
|
"required": {
|
|
"type": "boolean"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"label",
|
|
"style",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.TextInput": {
|
|
"type": "number",
|
|
"const": 4
|
|
},
|
|
"TextInputStyle": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"Poll": {
|
|
"type": "object",
|
|
"properties": {
|
|
"question": {
|
|
"$ref": "#/definitions/PollMedia"
|
|
},
|
|
"answers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/PollAnswer"
|
|
}
|
|
},
|
|
"expiry": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"allow_multiselect": {
|
|
"type": "boolean"
|
|
},
|
|
"results": {
|
|
"$ref": "#/definitions/PollResult"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"allow_multiselect",
|
|
"answers",
|
|
"expiry",
|
|
"question"
|
|
]
|
|
},
|
|
"PollMedia": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"PollAnswer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"answer_id": {
|
|
"type": "string"
|
|
},
|
|
"poll_media": {
|
|
"$ref": "#/definitions/PollMedia"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"poll_media"
|
|
]
|
|
},
|
|
"PollResult": {
|
|
"type": "object",
|
|
"properties": {
|
|
"is_finalized": {
|
|
"type": "boolean"
|
|
},
|
|
"answer_counts": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/PollAnswerCount"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"answer_counts",
|
|
"is_finalized"
|
|
]
|
|
},
|
|
"PollAnswerCount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"count": {
|
|
"type": "integer"
|
|
},
|
|
"me_voted": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"count",
|
|
"id",
|
|
"me_voted"
|
|
]
|
|
},
|
|
"VoiceState": {
|
|
"type": "object",
|
|
"properties": {
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"member": {
|
|
"$ref": "#/definitions/Member"
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
},
|
|
"token": {
|
|
"type": "string"
|
|
},
|
|
"deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"mute": {
|
|
"type": "boolean"
|
|
},
|
|
"self_deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"self_mute": {
|
|
"type": "boolean"
|
|
},
|
|
"self_stream": {
|
|
"type": "boolean"
|
|
},
|
|
"self_video": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress": {
|
|
"type": "boolean"
|
|
},
|
|
"request_to_speak_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"deaf",
|
|
"guild_id",
|
|
"id",
|
|
"member",
|
|
"mute",
|
|
"self_deaf",
|
|
"self_mute",
|
|
"self_video",
|
|
"session_id",
|
|
"suppress",
|
|
"token",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"ReadState": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"public_ack": {
|
|
"type": "string"
|
|
},
|
|
"notifications_cursor": {
|
|
"type": "string"
|
|
},
|
|
"last_pin_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"mention_count": {
|
|
"type": "integer"
|
|
},
|
|
"manual": {
|
|
"type": "boolean"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"id",
|
|
"last_message_id",
|
|
"manual",
|
|
"mention_count",
|
|
"notifications_cursor",
|
|
"public_ack",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Ban": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"executor_id": {
|
|
"type": "string"
|
|
},
|
|
"executor": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"ip": {
|
|
"type": "string"
|
|
},
|
|
"reason": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"executor",
|
|
"executor_id",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"ip",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Template": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"usage_count": {
|
|
"type": "integer"
|
|
},
|
|
"creator_id": {
|
|
"type": "string"
|
|
},
|
|
"creator": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"updated_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"source_guild_id": {
|
|
"type": "string"
|
|
},
|
|
"source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"serialized_source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"code",
|
|
"created_at",
|
|
"creator",
|
|
"creator_id",
|
|
"id",
|
|
"name",
|
|
"serialized_source_guild",
|
|
"source_guild",
|
|
"source_guild_id",
|
|
"updated_at"
|
|
]
|
|
},
|
|
"Emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"animated": {
|
|
"type": "boolean"
|
|
},
|
|
"available": {
|
|
"type": "boolean"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"managed": {
|
|
"type": "boolean"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"require_colons": {
|
|
"type": "boolean"
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"groups": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"available",
|
|
"groups",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"managed",
|
|
"name",
|
|
"require_colons",
|
|
"roles",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"GuildWelcomeScreen": {
|
|
"type": "object",
|
|
"properties": {
|
|
"enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"welcome_channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"emoji_id": {
|
|
"type": "string"
|
|
},
|
|
"emoji_name": {
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_id",
|
|
"description"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"description",
|
|
"enabled",
|
|
"welcome_channels"
|
|
]
|
|
},
|
|
"StickerType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"StickerFormatType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"APITemplateArray": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Template"
|
|
},
|
|
"definitions": {
|
|
"Template": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"usage_count": {
|
|
"type": "integer"
|
|
},
|
|
"creator_id": {
|
|
"type": "string"
|
|
},
|
|
"creator": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"updated_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"source_guild_id": {
|
|
"type": "string"
|
|
},
|
|
"source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"serialized_source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"code",
|
|
"created_at",
|
|
"creator",
|
|
"creator_id",
|
|
"id",
|
|
"name",
|
|
"serialized_source_guild",
|
|
"source_guild",
|
|
"source_guild_id",
|
|
"updated_at"
|
|
]
|
|
},
|
|
"User": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"theme_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"phone": {
|
|
"type": "string"
|
|
},
|
|
"desktop": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"mobile": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"premium": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_type": {
|
|
"type": "integer"
|
|
},
|
|
"bot": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"bio": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"system": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"nsfw_allowed": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"mfa_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"webauthn_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"totp_secret": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"totp_last_ticket": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"deleted": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"email": {
|
|
"type": "string"
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"public_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"purchased_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"premium_usage_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"rights": {
|
|
"type": "string"
|
|
},
|
|
"sessions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Session"
|
|
}
|
|
},
|
|
"relationships": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Relationship"
|
|
}
|
|
},
|
|
"connected_accounts": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ConnectedAccount"
|
|
}
|
|
},
|
|
"data": {
|
|
"type": "object",
|
|
"properties": {
|
|
"valid_tokens_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"hash": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"valid_tokens_since"
|
|
]
|
|
},
|
|
"fingerprints": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"settings": {
|
|
"$ref": "#/definitions/UserSettings"
|
|
},
|
|
"extended_settings": {
|
|
"type": "string",
|
|
"default": "{}"
|
|
},
|
|
"security_keys": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SecurityKey"
|
|
}
|
|
},
|
|
"badge_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"connected_accounts",
|
|
"created_at",
|
|
"data",
|
|
"deleted",
|
|
"desktop",
|
|
"disabled",
|
|
"discriminator",
|
|
"extended_settings",
|
|
"fingerprints",
|
|
"flags",
|
|
"id",
|
|
"mfa_enabled",
|
|
"mobile",
|
|
"nsfw_allowed",
|
|
"premium",
|
|
"premium_since",
|
|
"premium_type",
|
|
"premium_usage_flags",
|
|
"public_flags",
|
|
"purchased_flags",
|
|
"relationships",
|
|
"rights",
|
|
"security_keys",
|
|
"sessions",
|
|
"system",
|
|
"username",
|
|
"verified",
|
|
"webauthn_enabled"
|
|
]
|
|
},
|
|
"Session": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"client_info": {
|
|
"type": "object",
|
|
"properties": {
|
|
"client": {
|
|
"type": "string"
|
|
},
|
|
"os": {
|
|
"type": "string"
|
|
},
|
|
"version": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"client",
|
|
"os",
|
|
"version"
|
|
]
|
|
},
|
|
"client_status": {
|
|
"$ref": "#/definitions/ClientStatus"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"activities",
|
|
"client_info",
|
|
"client_status",
|
|
"id",
|
|
"session_id",
|
|
"status",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
]
|
|
},
|
|
"ClientStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"desktop": {
|
|
"type": "string"
|
|
},
|
|
"mobile": {
|
|
"type": "string"
|
|
},
|
|
"web": {
|
|
"type": "string"
|
|
},
|
|
"embedded": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Relationship": {
|
|
"type": "object",
|
|
"properties": {
|
|
"from_id": {
|
|
"type": "string"
|
|
},
|
|
"from": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"to_id": {
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"nickname": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/RelationshipType"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"from",
|
|
"from_id",
|
|
"id",
|
|
"to",
|
|
"to_id",
|
|
"type"
|
|
]
|
|
},
|
|
"RelationshipType": {
|
|
"type": "number",
|
|
"enum": [
|
|
4,
|
|
3,
|
|
2,
|
|
1
|
|
]
|
|
},
|
|
"ConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"external_id": {
|
|
"type": "string"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"friend_sync": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"revoked": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"show_activity": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"visibility": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"integrations": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"metadata_": {},
|
|
"metadata_visibility": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"two_way_link": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"token_data": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/ConnectedAccountTokenData"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"external_id",
|
|
"id",
|
|
"name",
|
|
"type",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"ConnectedAccountTokenData": {
|
|
"type": "object",
|
|
"properties": {
|
|
"access_token": {
|
|
"type": "string"
|
|
},
|
|
"token_type": {
|
|
"type": "string"
|
|
},
|
|
"scope": {
|
|
"type": "string"
|
|
},
|
|
"refresh_token": {
|
|
"type": "string"
|
|
},
|
|
"expires_in": {
|
|
"type": "integer"
|
|
},
|
|
"expires_at": {
|
|
"type": "integer"
|
|
},
|
|
"fetched_at": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"access_token",
|
|
"fetched_at"
|
|
]
|
|
},
|
|
"UserSettings": {
|
|
"type": "object",
|
|
"properties": {
|
|
"index": {
|
|
"type": "string"
|
|
},
|
|
"afk_timeout": {
|
|
"type": "integer",
|
|
"default": 3600
|
|
},
|
|
"allow_accessibility_detection": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"animate_emoji": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"animate_stickers": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"contact_sync_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"convert_emoticons": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"custom_status": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/CustomStatus"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"default_guilds_restricted": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"detect_platform_accounts": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"developer_mode": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"disable_games_tab": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"enable_tts_command": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"friend_discovery_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"friend_source_flags": {
|
|
"$ref": "#/definitions/FriendSourceFlags"
|
|
},
|
|
"gateway_connected": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"gif_auto_play": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"guild_folders": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/GuildFolder"
|
|
},
|
|
"default": []
|
|
},
|
|
"guild_positions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"inline_attachment_media": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"inline_embed_media": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"locale": {
|
|
"type": "string",
|
|
"default": "en-US"
|
|
},
|
|
"message_display_compact": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"native_phone_integration_enabled": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"render_embeds": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"render_reactions": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"restricted_guilds": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"show_current_game": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string",
|
|
"default": "online"
|
|
},
|
|
"stream_notifications_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"theme": {
|
|
"enum": [
|
|
"dark",
|
|
"light"
|
|
],
|
|
"type": "string",
|
|
"default": "dark"
|
|
},
|
|
"timezone_offset": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"view_nsfw_guilds": {
|
|
"type": "boolean",
|
|
"default": true
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk_timeout",
|
|
"allow_accessibility_detection",
|
|
"animate_emoji",
|
|
"animate_stickers",
|
|
"contact_sync_enabled",
|
|
"convert_emoticons",
|
|
"custom_status",
|
|
"default_guilds_restricted",
|
|
"detect_platform_accounts",
|
|
"developer_mode",
|
|
"disable_games_tab",
|
|
"enable_tts_command",
|
|
"explicit_content_filter",
|
|
"friend_discovery_flags",
|
|
"friend_source_flags",
|
|
"gateway_connected",
|
|
"gif_auto_play",
|
|
"guild_folders",
|
|
"guild_positions",
|
|
"index",
|
|
"inline_attachment_media",
|
|
"inline_embed_media",
|
|
"locale",
|
|
"message_display_compact",
|
|
"native_phone_integration_enabled",
|
|
"render_embeds",
|
|
"render_reactions",
|
|
"restricted_guilds",
|
|
"show_current_game",
|
|
"status",
|
|
"stream_notifications_enabled",
|
|
"theme",
|
|
"timezone_offset",
|
|
"view_nsfw_guilds"
|
|
]
|
|
},
|
|
"CustomStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"emoji_id": {
|
|
"type": "string"
|
|
},
|
|
"emoji_name": {
|
|
"type": "string"
|
|
},
|
|
"expires_at": {
|
|
"type": "integer"
|
|
},
|
|
"text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"FriendSourceFlags": {
|
|
"type": "object",
|
|
"properties": {
|
|
"all": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"all"
|
|
]
|
|
},
|
|
"GuildFolder": {
|
|
"type": "object",
|
|
"properties": {
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"guild_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"color",
|
|
"guild_ids",
|
|
"id",
|
|
"name"
|
|
]
|
|
},
|
|
"SecurityKey": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"key_id": {
|
|
"type": "string"
|
|
},
|
|
"public_key": {
|
|
"type": "string"
|
|
},
|
|
"counter": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"counter",
|
|
"id",
|
|
"key_id",
|
|
"name",
|
|
"public_key",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Guild": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"afk_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"afk_timeout": {
|
|
"type": "integer"
|
|
},
|
|
"bans": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Ban"
|
|
}
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"default_message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"discovery_splash": {
|
|
"type": "string"
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer"
|
|
},
|
|
"features": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"primary_category_id": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"large": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"max_members": {
|
|
"type": "integer"
|
|
},
|
|
"max_presences": {
|
|
"type": "integer"
|
|
},
|
|
"max_video_channel_users": {
|
|
"type": "integer"
|
|
},
|
|
"member_count": {
|
|
"type": "integer"
|
|
},
|
|
"presence_count": {
|
|
"type": "integer"
|
|
},
|
|
"members": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Member"
|
|
}
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Channel"
|
|
}
|
|
},
|
|
"template_id": {
|
|
"type": "string"
|
|
},
|
|
"template": {
|
|
"$ref": "#/definitions/Template"
|
|
},
|
|
"emojis": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Emoji"
|
|
}
|
|
},
|
|
"stickers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"invites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Invite"
|
|
}
|
|
},
|
|
"voice_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/VoiceState"
|
|
}
|
|
},
|
|
"webhooks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Webhook"
|
|
}
|
|
},
|
|
"mfa_level": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"owner_id": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"preferred_locale": {
|
|
"type": "string"
|
|
},
|
|
"premium_subscription_count": {
|
|
"type": "integer"
|
|
},
|
|
"premium_tier": {
|
|
"type": "integer"
|
|
},
|
|
"public_updates_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"public_updates_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"rules_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"rules_channel": {
|
|
"type": "string"
|
|
},
|
|
"region": {
|
|
"type": "string"
|
|
},
|
|
"splash": {
|
|
"type": "string"
|
|
},
|
|
"system_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"system_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"system_channel_flags": {
|
|
"type": "integer"
|
|
},
|
|
"unavailable": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"verification_level": {
|
|
"type": "integer"
|
|
},
|
|
"welcome_screen": {
|
|
"$ref": "#/definitions/GuildWelcomeScreen",
|
|
"description": "DEPRECATED: Look at the new Guild onboarding screens."
|
|
},
|
|
"widget_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"widget_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"widget_enabled": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"nsfw_level": {
|
|
"type": "integer"
|
|
},
|
|
"nsfw": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"parent": {
|
|
"type": "string"
|
|
},
|
|
"permissions": {
|
|
"type": "integer"
|
|
},
|
|
"premium_progress_bar_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"channel_ordering": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bans",
|
|
"channel_ordering",
|
|
"channels",
|
|
"emojis",
|
|
"features",
|
|
"id",
|
|
"invites",
|
|
"members",
|
|
"name",
|
|
"nsfw",
|
|
"premium_progress_bar_enabled",
|
|
"public_updates_channel_id",
|
|
"roles",
|
|
"stickers",
|
|
"template",
|
|
"unavailable",
|
|
"voice_states",
|
|
"webhooks",
|
|
"welcome_screen",
|
|
"widget_enabled"
|
|
]
|
|
},
|
|
"Channel": {
|
|
"type": "object",
|
|
"properties": {
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ChannelType"
|
|
},
|
|
"recipients": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Recipient"
|
|
}
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"parent_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"parent": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"owner_id": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"last_pin_timestamp": {
|
|
"type": "integer"
|
|
},
|
|
"default_auto_archive_duration": {
|
|
"type": "integer"
|
|
},
|
|
"permission_overwrites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwrite"
|
|
}
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
},
|
|
"bitrate": {
|
|
"type": "integer"
|
|
},
|
|
"user_limit": {
|
|
"type": "integer"
|
|
},
|
|
"nsfw": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"topic": {
|
|
"type": "string"
|
|
},
|
|
"invites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Invite"
|
|
}
|
|
},
|
|
"retention_policy_id": {
|
|
"type": "string"
|
|
},
|
|
"messages": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Message"
|
|
}
|
|
},
|
|
"voice_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/VoiceState"
|
|
}
|
|
},
|
|
"read_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ReadState"
|
|
}
|
|
},
|
|
"webhooks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Webhook"
|
|
}
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"position": {
|
|
"description": "Must be calculated Channel.calculatePosition",
|
|
"type": "integer"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"created_at",
|
|
"flags",
|
|
"id",
|
|
"nsfw",
|
|
"owner",
|
|
"parent_id",
|
|
"position",
|
|
"type"
|
|
]
|
|
},
|
|
"ChannelType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
33,
|
|
34,
|
|
35,
|
|
64,
|
|
255
|
|
]
|
|
},
|
|
"Recipient": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"closed": {
|
|
"type": "boolean"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"closed",
|
|
"id",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"ChannelPermissionOverwrite": {
|
|
"type": "object",
|
|
"properties": {
|
|
"allow": {
|
|
"type": "string"
|
|
},
|
|
"deny": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"allow",
|
|
"deny",
|
|
"id",
|
|
"type"
|
|
]
|
|
},
|
|
"ChannelPermissionOverwriteType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"Invite": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "string"
|
|
},
|
|
"temporary": {
|
|
"type": "boolean"
|
|
},
|
|
"uses": {
|
|
"type": "integer"
|
|
},
|
|
"max_uses": {
|
|
"type": "integer"
|
|
},
|
|
"max_age": {
|
|
"type": "integer"
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"expires_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"inviter_id": {
|
|
"type": "string"
|
|
},
|
|
"inviter": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"target_user_id": {
|
|
"type": "string"
|
|
},
|
|
"target_user": {
|
|
"type": "string"
|
|
},
|
|
"target_user_type": {
|
|
"type": "integer"
|
|
},
|
|
"vanity_url": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"code",
|
|
"created_at",
|
|
"flags",
|
|
"guild",
|
|
"guild_id",
|
|
"inviter",
|
|
"max_age",
|
|
"max_uses",
|
|
"target_user_id",
|
|
"temporary",
|
|
"uses"
|
|
]
|
|
},
|
|
"Message": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"author_id": {
|
|
"type": "string"
|
|
},
|
|
"author": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"member_id": {
|
|
"type": "string"
|
|
},
|
|
"member": {
|
|
"$ref": "#/definitions/Member"
|
|
},
|
|
"webhook_id": {
|
|
"type": "string"
|
|
},
|
|
"webhook": {
|
|
"$ref": "#/definitions/Webhook"
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"application": {
|
|
"$ref": "#/definitions/Application"
|
|
},
|
|
"content": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"edited_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"tts": {
|
|
"type": "boolean"
|
|
},
|
|
"mention_everyone": {
|
|
"type": "boolean"
|
|
},
|
|
"mentions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/User"
|
|
}
|
|
},
|
|
"mention_roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"mention_channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Channel"
|
|
}
|
|
},
|
|
"sticker_items": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"attachments": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Attachment"
|
|
}
|
|
},
|
|
"embeds": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Embed"
|
|
}
|
|
},
|
|
"reactions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Reaction"
|
|
}
|
|
},
|
|
"nonce": {
|
|
"type": "string"
|
|
},
|
|
"pinned_at": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"pinned": {
|
|
"type": "boolean"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/MessageType"
|
|
},
|
|
"activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "integer"
|
|
},
|
|
"party_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"party_id",
|
|
"type"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"message_reference": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"message_id"
|
|
]
|
|
},
|
|
"referenced_message": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/Message"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"interaction": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/InteractionType"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"type"
|
|
]
|
|
},
|
|
"interaction_metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/InteractionType"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"authorizing_integration_owners": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"command_type": {
|
|
"$ref": "#/definitions/ApplicationCommandType"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"authorizing_integration_owners",
|
|
"command_type",
|
|
"id",
|
|
"name",
|
|
"type",
|
|
"user_id"
|
|
]
|
|
},
|
|
"components": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ActionRowComponent"
|
|
}
|
|
},
|
|
"poll": {
|
|
"$ref": "#/definitions/Poll"
|
|
},
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"embeds",
|
|
"flags",
|
|
"id",
|
|
"mention_channels",
|
|
"mention_roles",
|
|
"mentions",
|
|
"pinned",
|
|
"reactions",
|
|
"timestamp",
|
|
"type"
|
|
]
|
|
},
|
|
"Member": {
|
|
"type": "object",
|
|
"properties": {
|
|
"index": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"nick": {
|
|
"type": "string"
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"joined_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"premium_since": {
|
|
"type": "integer"
|
|
},
|
|
"deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"mute": {
|
|
"type": "boolean"
|
|
},
|
|
"pending": {
|
|
"type": "boolean"
|
|
},
|
|
"settings": {
|
|
"$ref": "#/definitions/UserGuildSettings"
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"joined_by": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"theme_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"communication_disabled_until": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"banner",
|
|
"bio",
|
|
"communication_disabled_until",
|
|
"deaf",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"index",
|
|
"joined_at",
|
|
"joined_by",
|
|
"mute",
|
|
"pending",
|
|
"roles",
|
|
"settings",
|
|
"user"
|
|
]
|
|
},
|
|
"Role": {
|
|
"type": "object",
|
|
"properties": {
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"hoist": {
|
|
"type": "boolean"
|
|
},
|
|
"managed": {
|
|
"type": "boolean"
|
|
},
|
|
"mentionable": {
|
|
"type": "boolean"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"permissions": {
|
|
"type": "string"
|
|
},
|
|
"position": {
|
|
"type": "integer"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"unicode_emoji": {
|
|
"type": "string"
|
|
},
|
|
"tags": {
|
|
"type": "object",
|
|
"properties": {
|
|
"bot_id": {
|
|
"type": "string"
|
|
},
|
|
"integration_id": {
|
|
"type": "string"
|
|
},
|
|
"premium_subscriber": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"colors": {
|
|
"$ref": "#/definitions/RoleColors"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"color",
|
|
"colors",
|
|
"flags",
|
|
"guild",
|
|
"guild_id",
|
|
"hoist",
|
|
"id",
|
|
"managed",
|
|
"mentionable",
|
|
"name",
|
|
"permissions",
|
|
"position"
|
|
]
|
|
},
|
|
"RoleColors": {
|
|
"type": "object",
|
|
"properties": {
|
|
"primary_color": {
|
|
"type": "integer"
|
|
},
|
|
"secondary_color": {
|
|
"type": "integer"
|
|
},
|
|
"tertiary_color": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"primary_color"
|
|
]
|
|
},
|
|
"UserGuildSettings": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_overrides": {
|
|
"anyOf": [
|
|
{
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"$ref": "#/definitions/ChannelOverride"
|
|
}
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mobile_push": {
|
|
"type": "boolean"
|
|
},
|
|
"mute_config": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress_everyone": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress_roles": {
|
|
"type": "boolean"
|
|
},
|
|
"version": {
|
|
"type": "integer"
|
|
},
|
|
"guild_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"mute_scheduled_events": {
|
|
"type": "boolean"
|
|
},
|
|
"hide_muted_channels": {
|
|
"type": "boolean"
|
|
},
|
|
"notify_highlights": {
|
|
"type": "integer",
|
|
"const": 0
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_overrides",
|
|
"flags",
|
|
"guild_id",
|
|
"hide_muted_channels",
|
|
"message_notifications",
|
|
"mobile_push",
|
|
"mute_config",
|
|
"mute_scheduled_events",
|
|
"muted",
|
|
"notify_highlights",
|
|
"suppress_everyone",
|
|
"suppress_roles",
|
|
"version"
|
|
]
|
|
},
|
|
"ChannelOverride": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_id",
|
|
"message_notifications",
|
|
"mute_config",
|
|
"muted"
|
|
]
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"Webhook": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/WebhookType"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"token": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"application": {
|
|
"$ref": "#/definitions/Application"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"source_guild_id": {
|
|
"type": "string"
|
|
},
|
|
"source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"source_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"source_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"application",
|
|
"application_id",
|
|
"avatar",
|
|
"channel",
|
|
"channel_id",
|
|
"id",
|
|
"name",
|
|
"source_channel",
|
|
"source_channel_id",
|
|
"type",
|
|
"url",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"WebhookType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3
|
|
]
|
|
},
|
|
"Application": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"summary": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"type": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true
|
|
},
|
|
"hook": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"bot_public": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"bot_require_code_grant": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"verify_key": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"redirect_uris": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"rpc_application_state": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"store_application_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"verification_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"interactions_endpoint_url": {
|
|
"type": "string"
|
|
},
|
|
"integration_public": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"integration_require_code_grant": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"discoverability_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"discovery_eligibility_flags": {
|
|
"type": "integer",
|
|
"default": 2240
|
|
},
|
|
"bot": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"tags": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"cover_image": {
|
|
"type": "string"
|
|
},
|
|
"install_params": {
|
|
"type": "object",
|
|
"properties": {
|
|
"scopes": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"permissions": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"permissions",
|
|
"scopes"
|
|
]
|
|
},
|
|
"terms_of_service_url": {
|
|
"type": "string"
|
|
},
|
|
"privacy_policy_url": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"custom_install_url": {
|
|
"type": "string"
|
|
},
|
|
"team": {
|
|
"$ref": "#/definitions/Team"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"description",
|
|
"discoverability_state",
|
|
"discovery_eligibility_flags",
|
|
"flags",
|
|
"hook",
|
|
"id",
|
|
"integration_public",
|
|
"integration_require_code_grant",
|
|
"name",
|
|
"owner",
|
|
"redirect_uris",
|
|
"rpc_application_state",
|
|
"store_application_state",
|
|
"summary",
|
|
"verification_state",
|
|
"verify_key"
|
|
]
|
|
},
|
|
"Team": {
|
|
"type": "object",
|
|
"properties": {
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"members": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/TeamMember"
|
|
}
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"owner_user_id": {
|
|
"type": "string"
|
|
},
|
|
"owner_user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"members",
|
|
"name",
|
|
"owner_user",
|
|
"owner_user_id"
|
|
]
|
|
},
|
|
"TeamMember": {
|
|
"type": "object",
|
|
"properties": {
|
|
"membership_state": {
|
|
"$ref": "#/definitions/TeamMemberState"
|
|
},
|
|
"permissions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"role": {
|
|
"$ref": "#/definitions/TeamMemberRole"
|
|
},
|
|
"team_id": {
|
|
"type": "string"
|
|
},
|
|
"team": {
|
|
"$ref": "#/definitions/Team"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"membership_state",
|
|
"permissions",
|
|
"role",
|
|
"team",
|
|
"team_id",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"TeamMemberState": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"TeamMemberRole": {
|
|
"type": "string",
|
|
"enum": [
|
|
"admin",
|
|
"developer",
|
|
"read_only"
|
|
]
|
|
},
|
|
"Sticker": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"available": {
|
|
"type": "boolean"
|
|
},
|
|
"tags": {
|
|
"type": "string"
|
|
},
|
|
"pack_id": {
|
|
"type": "string"
|
|
},
|
|
"pack": {
|
|
"$ref": "#/definitions/StickerPack"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/StickerType"
|
|
},
|
|
"format_type": {
|
|
"$ref": "#/definitions/StickerFormatType"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"format_type",
|
|
"id",
|
|
"name",
|
|
"pack",
|
|
"type"
|
|
]
|
|
},
|
|
"StickerPack": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"banner_asset_id": {
|
|
"type": "string"
|
|
},
|
|
"stickers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"cover_sticker_id": {
|
|
"type": "string"
|
|
},
|
|
"cover_sticker": {
|
|
"$ref": "#/definitions/Sticker"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"stickers"
|
|
]
|
|
},
|
|
"StickerType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"StickerFormatType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4
|
|
]
|
|
},
|
|
"Attachment": {
|
|
"type": "object",
|
|
"properties": {
|
|
"filename": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "integer"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
},
|
|
"content_type": {
|
|
"type": "string"
|
|
},
|
|
"message_id": {
|
|
"type": "string"
|
|
},
|
|
"message": {
|
|
"$ref": "#/definitions/Message"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"filename",
|
|
"id",
|
|
"message",
|
|
"message_id",
|
|
"proxy_url",
|
|
"size",
|
|
"url"
|
|
]
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"Reaction": {
|
|
"type": "object",
|
|
"properties": {
|
|
"count": {
|
|
"type": "integer"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"user_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"count",
|
|
"emoji",
|
|
"user_ids"
|
|
]
|
|
},
|
|
"PartialEmoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name"
|
|
]
|
|
},
|
|
"MessageType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
16,
|
|
19,
|
|
20,
|
|
41,
|
|
42,
|
|
43,
|
|
50,
|
|
63,
|
|
255
|
|
]
|
|
},
|
|
"InteractionType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5
|
|
]
|
|
},
|
|
"ApplicationCommandType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4
|
|
]
|
|
},
|
|
"ActionRowComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.ActionRow"
|
|
},
|
|
"components": {
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/ButtonComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/SelectMenuComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/StringSelectMenuComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/TextInputComponent"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"components",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.ActionRow": {
|
|
"type": "number",
|
|
"const": 1
|
|
},
|
|
"ButtonComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.Button"
|
|
},
|
|
"style": {
|
|
"$ref": "#/definitions/ButtonStyle"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"sku_id": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"style",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.Button": {
|
|
"type": "number",
|
|
"const": 2
|
|
},
|
|
"ButtonStyle": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6
|
|
]
|
|
},
|
|
"SelectMenuComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": [
|
|
3,
|
|
5,
|
|
6,
|
|
7,
|
|
8
|
|
],
|
|
"type": "number"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_types": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
},
|
|
"default_values": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuDefaultOption"
|
|
}
|
|
},
|
|
"min_values": {
|
|
"type": "integer"
|
|
},
|
|
"max_values": {
|
|
"type": "integer"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"type"
|
|
]
|
|
},
|
|
"SelectMenuDefaultOption": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"channel",
|
|
"role",
|
|
"user"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"type"
|
|
]
|
|
},
|
|
"StringSelectMenuComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.StringSelect"
|
|
},
|
|
"options": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuOption"
|
|
}
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_types": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
},
|
|
"default_values": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuDefaultOption"
|
|
}
|
|
},
|
|
"min_values": {
|
|
"type": "integer"
|
|
},
|
|
"max_values": {
|
|
"type": "integer"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"options",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.StringSelect": {
|
|
"type": "number",
|
|
"const": 3
|
|
},
|
|
"SelectMenuOption": {
|
|
"type": "object",
|
|
"properties": {
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"default": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"label",
|
|
"value"
|
|
]
|
|
},
|
|
"TextInputComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.TextInput"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"style": {
|
|
"$ref": "#/definitions/TextInputStyle"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"min_length": {
|
|
"type": "integer"
|
|
},
|
|
"max_length": {
|
|
"type": "integer"
|
|
},
|
|
"required": {
|
|
"type": "boolean"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"label",
|
|
"style",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.TextInput": {
|
|
"type": "number",
|
|
"const": 4
|
|
},
|
|
"TextInputStyle": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"Poll": {
|
|
"type": "object",
|
|
"properties": {
|
|
"question": {
|
|
"$ref": "#/definitions/PollMedia"
|
|
},
|
|
"answers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/PollAnswer"
|
|
}
|
|
},
|
|
"expiry": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"allow_multiselect": {
|
|
"type": "boolean"
|
|
},
|
|
"results": {
|
|
"$ref": "#/definitions/PollResult"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"allow_multiselect",
|
|
"answers",
|
|
"expiry",
|
|
"question"
|
|
]
|
|
},
|
|
"PollMedia": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"PollAnswer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"answer_id": {
|
|
"type": "string"
|
|
},
|
|
"poll_media": {
|
|
"$ref": "#/definitions/PollMedia"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"poll_media"
|
|
]
|
|
},
|
|
"PollResult": {
|
|
"type": "object",
|
|
"properties": {
|
|
"is_finalized": {
|
|
"type": "boolean"
|
|
},
|
|
"answer_counts": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/PollAnswerCount"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"answer_counts",
|
|
"is_finalized"
|
|
]
|
|
},
|
|
"PollAnswerCount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"count": {
|
|
"type": "integer"
|
|
},
|
|
"me_voted": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"count",
|
|
"id",
|
|
"me_voted"
|
|
]
|
|
},
|
|
"VoiceState": {
|
|
"type": "object",
|
|
"properties": {
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"member": {
|
|
"$ref": "#/definitions/Member"
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
},
|
|
"token": {
|
|
"type": "string"
|
|
},
|
|
"deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"mute": {
|
|
"type": "boolean"
|
|
},
|
|
"self_deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"self_mute": {
|
|
"type": "boolean"
|
|
},
|
|
"self_stream": {
|
|
"type": "boolean"
|
|
},
|
|
"self_video": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress": {
|
|
"type": "boolean"
|
|
},
|
|
"request_to_speak_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"deaf",
|
|
"guild_id",
|
|
"id",
|
|
"member",
|
|
"mute",
|
|
"self_deaf",
|
|
"self_mute",
|
|
"self_video",
|
|
"session_id",
|
|
"suppress",
|
|
"token",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"ReadState": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"public_ack": {
|
|
"type": "string"
|
|
},
|
|
"notifications_cursor": {
|
|
"type": "string"
|
|
},
|
|
"last_pin_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"mention_count": {
|
|
"type": "integer"
|
|
},
|
|
"manual": {
|
|
"type": "boolean"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"id",
|
|
"last_message_id",
|
|
"manual",
|
|
"mention_count",
|
|
"notifications_cursor",
|
|
"public_ack",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Ban": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"executor_id": {
|
|
"type": "string"
|
|
},
|
|
"executor": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"ip": {
|
|
"type": "string"
|
|
},
|
|
"reason": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"executor",
|
|
"executor_id",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"ip",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"animated": {
|
|
"type": "boolean"
|
|
},
|
|
"available": {
|
|
"type": "boolean"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"managed": {
|
|
"type": "boolean"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"require_colons": {
|
|
"type": "boolean"
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"groups": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"available",
|
|
"groups",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"managed",
|
|
"name",
|
|
"require_colons",
|
|
"roles",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"GuildWelcomeScreen": {
|
|
"type": "object",
|
|
"properties": {
|
|
"enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"welcome_channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"emoji_id": {
|
|
"type": "string"
|
|
},
|
|
"emoji_name": {
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_id",
|
|
"description"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"description",
|
|
"enabled",
|
|
"welcome_channels"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"APIGuildVoiceRegion": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/GuildVoiceRegion"
|
|
},
|
|
"definitions": {
|
|
"GuildVoiceRegion": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"custom": {
|
|
"type": "boolean"
|
|
},
|
|
"deprecated": {
|
|
"type": "boolean"
|
|
},
|
|
"optimal": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom",
|
|
"deprecated",
|
|
"id",
|
|
"name",
|
|
"optimal"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"APILimitsConfiguration": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user": {
|
|
"$ref": "#/definitions/UserLimits"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/GuildLimits"
|
|
},
|
|
"message": {
|
|
"$ref": "#/definitions/MessageLimits"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/ChannelLimits"
|
|
},
|
|
"rate": {
|
|
"$ref": "#/definitions/RateLimits"
|
|
},
|
|
"absoluteRate": {
|
|
"$ref": "#/definitions/GlobalRateLimits"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"absoluteRate",
|
|
"channel",
|
|
"guild",
|
|
"message",
|
|
"rate",
|
|
"user"
|
|
],
|
|
"definitions": {
|
|
"UserLimits": {
|
|
"type": "object",
|
|
"properties": {
|
|
"maxGuilds": {
|
|
"type": "integer",
|
|
"default": 1048576
|
|
},
|
|
"maxUsername": {
|
|
"type": "integer",
|
|
"default": 32
|
|
},
|
|
"maxFriends": {
|
|
"type": "integer",
|
|
"default": 5000
|
|
},
|
|
"maxBio": {
|
|
"type": "integer",
|
|
"default": 190
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"maxBio",
|
|
"maxFriends",
|
|
"maxGuilds",
|
|
"maxUsername"
|
|
]
|
|
},
|
|
"GuildLimits": {
|
|
"type": "object",
|
|
"properties": {
|
|
"maxRoles": {
|
|
"type": "integer",
|
|
"default": 1000
|
|
},
|
|
"maxEmojis": {
|
|
"type": "integer",
|
|
"default": 2000
|
|
},
|
|
"maxStickers": {
|
|
"type": "integer",
|
|
"default": 500
|
|
},
|
|
"maxMembers": {
|
|
"type": "integer",
|
|
"default": 25000000
|
|
},
|
|
"maxChannels": {
|
|
"type": "integer",
|
|
"default": 65535
|
|
},
|
|
"maxBulkBanUsers": {
|
|
"type": "integer",
|
|
"default": 200
|
|
},
|
|
"maxChannelsInCategory": {
|
|
"type": "integer",
|
|
"default": 65535
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"maxBulkBanUsers",
|
|
"maxChannels",
|
|
"maxChannelsInCategory",
|
|
"maxEmojis",
|
|
"maxMembers",
|
|
"maxRoles",
|
|
"maxStickers"
|
|
]
|
|
},
|
|
"MessageLimits": {
|
|
"type": "object",
|
|
"properties": {
|
|
"maxCharacters": {
|
|
"type": "integer",
|
|
"default": 1048576
|
|
},
|
|
"maxTTSCharacters": {
|
|
"type": "integer",
|
|
"default": 160
|
|
},
|
|
"maxReactions": {
|
|
"type": "integer",
|
|
"default": 2048
|
|
},
|
|
"maxAttachmentSize": {
|
|
"type": "integer",
|
|
"default": 1073741824
|
|
},
|
|
"maxBulkDelete": {
|
|
"type": "integer",
|
|
"default": 1000
|
|
},
|
|
"maxEmbedDownloadSize": {
|
|
"type": "integer",
|
|
"default": 5242880
|
|
},
|
|
"maxPreloadCount": {
|
|
"type": "integer",
|
|
"default": 100
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"maxAttachmentSize",
|
|
"maxBulkDelete",
|
|
"maxCharacters",
|
|
"maxEmbedDownloadSize",
|
|
"maxPreloadCount",
|
|
"maxReactions",
|
|
"maxTTSCharacters"
|
|
]
|
|
},
|
|
"ChannelLimits": {
|
|
"type": "object",
|
|
"properties": {
|
|
"maxPins": {
|
|
"type": "integer",
|
|
"default": 500
|
|
},
|
|
"maxTopic": {
|
|
"type": "integer",
|
|
"default": 1024
|
|
},
|
|
"maxWebhooks": {
|
|
"type": "integer",
|
|
"default": 100
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"maxPins",
|
|
"maxTopic",
|
|
"maxWebhooks"
|
|
]
|
|
},
|
|
"RateLimits": {
|
|
"type": "object",
|
|
"properties": {
|
|
"enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"ip": {
|
|
"$ref": "#/definitions/RateLimitOptions"
|
|
},
|
|
"global": {
|
|
"$ref": "#/definitions/RateLimitOptions"
|
|
},
|
|
"error": {
|
|
"$ref": "#/definitions/RateLimitOptions"
|
|
},
|
|
"routes": {
|
|
"$ref": "#/definitions/RouteRateLimit"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"enabled",
|
|
"error",
|
|
"global",
|
|
"ip",
|
|
"routes"
|
|
]
|
|
},
|
|
"RateLimitOptions": {
|
|
"type": "object",
|
|
"properties": {
|
|
"bot": {
|
|
"type": "integer"
|
|
},
|
|
"count": {
|
|
"type": "integer"
|
|
},
|
|
"window": {
|
|
"type": "integer"
|
|
},
|
|
"onyIp": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"count",
|
|
"window"
|
|
]
|
|
},
|
|
"RouteRateLimit": {
|
|
"type": "object",
|
|
"properties": {
|
|
"guild": {
|
|
"$ref": "#/definitions/RateLimitOptions"
|
|
},
|
|
"webhook": {
|
|
"$ref": "#/definitions/RateLimitOptions"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/RateLimitOptions"
|
|
},
|
|
"auth": {
|
|
"$ref": "#/definitions/AuthRateLimit"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"auth",
|
|
"channel",
|
|
"guild",
|
|
"webhook"
|
|
]
|
|
},
|
|
"AuthRateLimit": {
|
|
"type": "object",
|
|
"properties": {
|
|
"login": {
|
|
"$ref": "#/definitions/RateLimitOptions"
|
|
},
|
|
"register": {
|
|
"$ref": "#/definitions/RateLimitOptions"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"login",
|
|
"register"
|
|
]
|
|
},
|
|
"GlobalRateLimits": {
|
|
"type": "object",
|
|
"properties": {
|
|
"register": {
|
|
"$ref": "#/definitions/GlobalRateLimit"
|
|
},
|
|
"sendMessage": {
|
|
"$ref": "#/definitions/GlobalRateLimit"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"register",
|
|
"sendMessage"
|
|
]
|
|
},
|
|
"GlobalRateLimit": {
|
|
"type": "object",
|
|
"properties": {
|
|
"limit": {
|
|
"type": "integer",
|
|
"default": 100
|
|
},
|
|
"window": {
|
|
"type": "integer",
|
|
"default": 3600000
|
|
},
|
|
"enabled": {
|
|
"type": "boolean",
|
|
"default": true
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"enabled",
|
|
"limit",
|
|
"window"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"APIStickerPackArray": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/StickerPack"
|
|
},
|
|
"definitions": {
|
|
"StickerPack": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"banner_asset_id": {
|
|
"type": "string"
|
|
},
|
|
"stickers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"cover_sticker_id": {
|
|
"type": "string"
|
|
},
|
|
"cover_sticker": {
|
|
"$ref": "#/definitions/Sticker"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"stickers"
|
|
]
|
|
},
|
|
"Sticker": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"available": {
|
|
"type": "boolean"
|
|
},
|
|
"tags": {
|
|
"type": "string"
|
|
},
|
|
"pack_id": {
|
|
"type": "string"
|
|
},
|
|
"pack": {
|
|
"$ref": "#/definitions/StickerPack"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/StickerType"
|
|
},
|
|
"format_type": {
|
|
"$ref": "#/definitions/StickerFormatType"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"format_type",
|
|
"id",
|
|
"name",
|
|
"pack",
|
|
"type"
|
|
]
|
|
},
|
|
"Guild": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"afk_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"afk_timeout": {
|
|
"type": "integer"
|
|
},
|
|
"bans": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Ban"
|
|
}
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"default_message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"discovery_splash": {
|
|
"type": "string"
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer"
|
|
},
|
|
"features": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"primary_category_id": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"large": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"max_members": {
|
|
"type": "integer"
|
|
},
|
|
"max_presences": {
|
|
"type": "integer"
|
|
},
|
|
"max_video_channel_users": {
|
|
"type": "integer"
|
|
},
|
|
"member_count": {
|
|
"type": "integer"
|
|
},
|
|
"presence_count": {
|
|
"type": "integer"
|
|
},
|
|
"members": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Member"
|
|
}
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Channel"
|
|
}
|
|
},
|
|
"template_id": {
|
|
"type": "string"
|
|
},
|
|
"template": {
|
|
"$ref": "#/definitions/Template"
|
|
},
|
|
"emojis": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Emoji"
|
|
}
|
|
},
|
|
"stickers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"invites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Invite"
|
|
}
|
|
},
|
|
"voice_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/VoiceState"
|
|
}
|
|
},
|
|
"webhooks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Webhook"
|
|
}
|
|
},
|
|
"mfa_level": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"owner_id": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"preferred_locale": {
|
|
"type": "string"
|
|
},
|
|
"premium_subscription_count": {
|
|
"type": "integer"
|
|
},
|
|
"premium_tier": {
|
|
"type": "integer"
|
|
},
|
|
"public_updates_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"public_updates_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"rules_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"rules_channel": {
|
|
"type": "string"
|
|
},
|
|
"region": {
|
|
"type": "string"
|
|
},
|
|
"splash": {
|
|
"type": "string"
|
|
},
|
|
"system_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"system_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"system_channel_flags": {
|
|
"type": "integer"
|
|
},
|
|
"unavailable": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"verification_level": {
|
|
"type": "integer"
|
|
},
|
|
"welcome_screen": {
|
|
"$ref": "#/definitions/GuildWelcomeScreen",
|
|
"description": "DEPRECATED: Look at the new Guild onboarding screens."
|
|
},
|
|
"widget_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"widget_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"widget_enabled": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"nsfw_level": {
|
|
"type": "integer"
|
|
},
|
|
"nsfw": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"parent": {
|
|
"type": "string"
|
|
},
|
|
"permissions": {
|
|
"type": "integer"
|
|
},
|
|
"premium_progress_bar_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"channel_ordering": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bans",
|
|
"channel_ordering",
|
|
"channels",
|
|
"emojis",
|
|
"features",
|
|
"id",
|
|
"invites",
|
|
"members",
|
|
"name",
|
|
"nsfw",
|
|
"premium_progress_bar_enabled",
|
|
"public_updates_channel_id",
|
|
"roles",
|
|
"stickers",
|
|
"template",
|
|
"unavailable",
|
|
"voice_states",
|
|
"webhooks",
|
|
"welcome_screen",
|
|
"widget_enabled"
|
|
]
|
|
},
|
|
"Channel": {
|
|
"type": "object",
|
|
"properties": {
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ChannelType"
|
|
},
|
|
"recipients": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Recipient"
|
|
}
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"parent_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"parent": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"owner_id": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"last_pin_timestamp": {
|
|
"type": "integer"
|
|
},
|
|
"default_auto_archive_duration": {
|
|
"type": "integer"
|
|
},
|
|
"permission_overwrites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwrite"
|
|
}
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
},
|
|
"bitrate": {
|
|
"type": "integer"
|
|
},
|
|
"user_limit": {
|
|
"type": "integer"
|
|
},
|
|
"nsfw": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"topic": {
|
|
"type": "string"
|
|
},
|
|
"invites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Invite"
|
|
}
|
|
},
|
|
"retention_policy_id": {
|
|
"type": "string"
|
|
},
|
|
"messages": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Message"
|
|
}
|
|
},
|
|
"voice_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/VoiceState"
|
|
}
|
|
},
|
|
"read_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ReadState"
|
|
}
|
|
},
|
|
"webhooks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Webhook"
|
|
}
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"position": {
|
|
"description": "Must be calculated Channel.calculatePosition",
|
|
"type": "integer"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"created_at",
|
|
"flags",
|
|
"id",
|
|
"nsfw",
|
|
"owner",
|
|
"parent_id",
|
|
"position",
|
|
"type"
|
|
]
|
|
},
|
|
"ChannelType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
33,
|
|
34,
|
|
35,
|
|
64,
|
|
255
|
|
]
|
|
},
|
|
"Recipient": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"closed": {
|
|
"type": "boolean"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"closed",
|
|
"id",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"User": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"theme_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"phone": {
|
|
"type": "string"
|
|
},
|
|
"desktop": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"mobile": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"premium": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_type": {
|
|
"type": "integer"
|
|
},
|
|
"bot": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"bio": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"system": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"nsfw_allowed": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"mfa_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"webauthn_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"totp_secret": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"totp_last_ticket": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"deleted": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"email": {
|
|
"type": "string"
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"public_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"purchased_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"premium_usage_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"rights": {
|
|
"type": "string"
|
|
},
|
|
"sessions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Session"
|
|
}
|
|
},
|
|
"relationships": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Relationship"
|
|
}
|
|
},
|
|
"connected_accounts": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ConnectedAccount"
|
|
}
|
|
},
|
|
"data": {
|
|
"type": "object",
|
|
"properties": {
|
|
"valid_tokens_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"hash": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"valid_tokens_since"
|
|
]
|
|
},
|
|
"fingerprints": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"settings": {
|
|
"$ref": "#/definitions/UserSettings"
|
|
},
|
|
"extended_settings": {
|
|
"type": "string",
|
|
"default": "{}"
|
|
},
|
|
"security_keys": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SecurityKey"
|
|
}
|
|
},
|
|
"badge_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"connected_accounts",
|
|
"created_at",
|
|
"data",
|
|
"deleted",
|
|
"desktop",
|
|
"disabled",
|
|
"discriminator",
|
|
"extended_settings",
|
|
"fingerprints",
|
|
"flags",
|
|
"id",
|
|
"mfa_enabled",
|
|
"mobile",
|
|
"nsfw_allowed",
|
|
"premium",
|
|
"premium_since",
|
|
"premium_type",
|
|
"premium_usage_flags",
|
|
"public_flags",
|
|
"purchased_flags",
|
|
"relationships",
|
|
"rights",
|
|
"security_keys",
|
|
"sessions",
|
|
"system",
|
|
"username",
|
|
"verified",
|
|
"webauthn_enabled"
|
|
]
|
|
},
|
|
"Session": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"client_info": {
|
|
"type": "object",
|
|
"properties": {
|
|
"client": {
|
|
"type": "string"
|
|
},
|
|
"os": {
|
|
"type": "string"
|
|
},
|
|
"version": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"client",
|
|
"os",
|
|
"version"
|
|
]
|
|
},
|
|
"client_status": {
|
|
"$ref": "#/definitions/ClientStatus"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"activities",
|
|
"client_info",
|
|
"client_status",
|
|
"id",
|
|
"session_id",
|
|
"status",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
]
|
|
},
|
|
"ClientStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"desktop": {
|
|
"type": "string"
|
|
},
|
|
"mobile": {
|
|
"type": "string"
|
|
},
|
|
"web": {
|
|
"type": "string"
|
|
},
|
|
"embedded": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Relationship": {
|
|
"type": "object",
|
|
"properties": {
|
|
"from_id": {
|
|
"type": "string"
|
|
},
|
|
"from": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"to_id": {
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"nickname": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/RelationshipType"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"from",
|
|
"from_id",
|
|
"id",
|
|
"to",
|
|
"to_id",
|
|
"type"
|
|
]
|
|
},
|
|
"RelationshipType": {
|
|
"type": "number",
|
|
"enum": [
|
|
4,
|
|
3,
|
|
2,
|
|
1
|
|
]
|
|
},
|
|
"ConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"external_id": {
|
|
"type": "string"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"friend_sync": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"revoked": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"show_activity": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"visibility": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"integrations": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"metadata_": {},
|
|
"metadata_visibility": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"two_way_link": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"token_data": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/ConnectedAccountTokenData"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"external_id",
|
|
"id",
|
|
"name",
|
|
"type",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"ConnectedAccountTokenData": {
|
|
"type": "object",
|
|
"properties": {
|
|
"access_token": {
|
|
"type": "string"
|
|
},
|
|
"token_type": {
|
|
"type": "string"
|
|
},
|
|
"scope": {
|
|
"type": "string"
|
|
},
|
|
"refresh_token": {
|
|
"type": "string"
|
|
},
|
|
"expires_in": {
|
|
"type": "integer"
|
|
},
|
|
"expires_at": {
|
|
"type": "integer"
|
|
},
|
|
"fetched_at": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"access_token",
|
|
"fetched_at"
|
|
]
|
|
},
|
|
"UserSettings": {
|
|
"type": "object",
|
|
"properties": {
|
|
"index": {
|
|
"type": "string"
|
|
},
|
|
"afk_timeout": {
|
|
"type": "integer",
|
|
"default": 3600
|
|
},
|
|
"allow_accessibility_detection": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"animate_emoji": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"animate_stickers": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"contact_sync_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"convert_emoticons": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"custom_status": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/CustomStatus"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"default_guilds_restricted": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"detect_platform_accounts": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"developer_mode": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"disable_games_tab": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"enable_tts_command": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"friend_discovery_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"friend_source_flags": {
|
|
"$ref": "#/definitions/FriendSourceFlags"
|
|
},
|
|
"gateway_connected": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"gif_auto_play": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"guild_folders": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/GuildFolder"
|
|
},
|
|
"default": []
|
|
},
|
|
"guild_positions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"inline_attachment_media": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"inline_embed_media": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"locale": {
|
|
"type": "string",
|
|
"default": "en-US"
|
|
},
|
|
"message_display_compact": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"native_phone_integration_enabled": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"render_embeds": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"render_reactions": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"restricted_guilds": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"show_current_game": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string",
|
|
"default": "online"
|
|
},
|
|
"stream_notifications_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"theme": {
|
|
"enum": [
|
|
"dark",
|
|
"light"
|
|
],
|
|
"type": "string",
|
|
"default": "dark"
|
|
},
|
|
"timezone_offset": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"view_nsfw_guilds": {
|
|
"type": "boolean",
|
|
"default": true
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk_timeout",
|
|
"allow_accessibility_detection",
|
|
"animate_emoji",
|
|
"animate_stickers",
|
|
"contact_sync_enabled",
|
|
"convert_emoticons",
|
|
"custom_status",
|
|
"default_guilds_restricted",
|
|
"detect_platform_accounts",
|
|
"developer_mode",
|
|
"disable_games_tab",
|
|
"enable_tts_command",
|
|
"explicit_content_filter",
|
|
"friend_discovery_flags",
|
|
"friend_source_flags",
|
|
"gateway_connected",
|
|
"gif_auto_play",
|
|
"guild_folders",
|
|
"guild_positions",
|
|
"index",
|
|
"inline_attachment_media",
|
|
"inline_embed_media",
|
|
"locale",
|
|
"message_display_compact",
|
|
"native_phone_integration_enabled",
|
|
"render_embeds",
|
|
"render_reactions",
|
|
"restricted_guilds",
|
|
"show_current_game",
|
|
"status",
|
|
"stream_notifications_enabled",
|
|
"theme",
|
|
"timezone_offset",
|
|
"view_nsfw_guilds"
|
|
]
|
|
},
|
|
"CustomStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"emoji_id": {
|
|
"type": "string"
|
|
},
|
|
"emoji_name": {
|
|
"type": "string"
|
|
},
|
|
"expires_at": {
|
|
"type": "integer"
|
|
},
|
|
"text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"FriendSourceFlags": {
|
|
"type": "object",
|
|
"properties": {
|
|
"all": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"all"
|
|
]
|
|
},
|
|
"GuildFolder": {
|
|
"type": "object",
|
|
"properties": {
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"guild_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"color",
|
|
"guild_ids",
|
|
"id",
|
|
"name"
|
|
]
|
|
},
|
|
"SecurityKey": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"key_id": {
|
|
"type": "string"
|
|
},
|
|
"public_key": {
|
|
"type": "string"
|
|
},
|
|
"counter": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"counter",
|
|
"id",
|
|
"key_id",
|
|
"name",
|
|
"public_key",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"ChannelPermissionOverwrite": {
|
|
"type": "object",
|
|
"properties": {
|
|
"allow": {
|
|
"type": "string"
|
|
},
|
|
"deny": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"allow",
|
|
"deny",
|
|
"id",
|
|
"type"
|
|
]
|
|
},
|
|
"ChannelPermissionOverwriteType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"Invite": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "string"
|
|
},
|
|
"temporary": {
|
|
"type": "boolean"
|
|
},
|
|
"uses": {
|
|
"type": "integer"
|
|
},
|
|
"max_uses": {
|
|
"type": "integer"
|
|
},
|
|
"max_age": {
|
|
"type": "integer"
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"expires_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"inviter_id": {
|
|
"type": "string"
|
|
},
|
|
"inviter": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"target_user_id": {
|
|
"type": "string"
|
|
},
|
|
"target_user": {
|
|
"type": "string"
|
|
},
|
|
"target_user_type": {
|
|
"type": "integer"
|
|
},
|
|
"vanity_url": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"code",
|
|
"created_at",
|
|
"flags",
|
|
"guild",
|
|
"guild_id",
|
|
"inviter",
|
|
"max_age",
|
|
"max_uses",
|
|
"target_user_id",
|
|
"temporary",
|
|
"uses"
|
|
]
|
|
},
|
|
"Message": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"author_id": {
|
|
"type": "string"
|
|
},
|
|
"author": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"member_id": {
|
|
"type": "string"
|
|
},
|
|
"member": {
|
|
"$ref": "#/definitions/Member"
|
|
},
|
|
"webhook_id": {
|
|
"type": "string"
|
|
},
|
|
"webhook": {
|
|
"$ref": "#/definitions/Webhook"
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"application": {
|
|
"$ref": "#/definitions/Application"
|
|
},
|
|
"content": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"edited_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"tts": {
|
|
"type": "boolean"
|
|
},
|
|
"mention_everyone": {
|
|
"type": "boolean"
|
|
},
|
|
"mentions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/User"
|
|
}
|
|
},
|
|
"mention_roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"mention_channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Channel"
|
|
}
|
|
},
|
|
"sticker_items": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"attachments": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Attachment"
|
|
}
|
|
},
|
|
"embeds": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Embed"
|
|
}
|
|
},
|
|
"reactions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Reaction"
|
|
}
|
|
},
|
|
"nonce": {
|
|
"type": "string"
|
|
},
|
|
"pinned_at": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"pinned": {
|
|
"type": "boolean"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/MessageType"
|
|
},
|
|
"activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "integer"
|
|
},
|
|
"party_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"party_id",
|
|
"type"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"message_reference": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"message_id"
|
|
]
|
|
},
|
|
"referenced_message": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/Message"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"interaction": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/InteractionType"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"type"
|
|
]
|
|
},
|
|
"interaction_metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/InteractionType"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"authorizing_integration_owners": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"command_type": {
|
|
"$ref": "#/definitions/ApplicationCommandType"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"authorizing_integration_owners",
|
|
"command_type",
|
|
"id",
|
|
"name",
|
|
"type",
|
|
"user_id"
|
|
]
|
|
},
|
|
"components": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ActionRowComponent"
|
|
}
|
|
},
|
|
"poll": {
|
|
"$ref": "#/definitions/Poll"
|
|
},
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"embeds",
|
|
"flags",
|
|
"id",
|
|
"mention_channels",
|
|
"mention_roles",
|
|
"mentions",
|
|
"pinned",
|
|
"reactions",
|
|
"timestamp",
|
|
"type"
|
|
]
|
|
},
|
|
"Member": {
|
|
"type": "object",
|
|
"properties": {
|
|
"index": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"nick": {
|
|
"type": "string"
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"joined_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"premium_since": {
|
|
"type": "integer"
|
|
},
|
|
"deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"mute": {
|
|
"type": "boolean"
|
|
},
|
|
"pending": {
|
|
"type": "boolean"
|
|
},
|
|
"settings": {
|
|
"$ref": "#/definitions/UserGuildSettings"
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"joined_by": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"theme_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"communication_disabled_until": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"banner",
|
|
"bio",
|
|
"communication_disabled_until",
|
|
"deaf",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"index",
|
|
"joined_at",
|
|
"joined_by",
|
|
"mute",
|
|
"pending",
|
|
"roles",
|
|
"settings",
|
|
"user"
|
|
]
|
|
},
|
|
"Role": {
|
|
"type": "object",
|
|
"properties": {
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"hoist": {
|
|
"type": "boolean"
|
|
},
|
|
"managed": {
|
|
"type": "boolean"
|
|
},
|
|
"mentionable": {
|
|
"type": "boolean"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"permissions": {
|
|
"type": "string"
|
|
},
|
|
"position": {
|
|
"type": "integer"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"unicode_emoji": {
|
|
"type": "string"
|
|
},
|
|
"tags": {
|
|
"type": "object",
|
|
"properties": {
|
|
"bot_id": {
|
|
"type": "string"
|
|
},
|
|
"integration_id": {
|
|
"type": "string"
|
|
},
|
|
"premium_subscriber": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"colors": {
|
|
"$ref": "#/definitions/RoleColors"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"color",
|
|
"colors",
|
|
"flags",
|
|
"guild",
|
|
"guild_id",
|
|
"hoist",
|
|
"id",
|
|
"managed",
|
|
"mentionable",
|
|
"name",
|
|
"permissions",
|
|
"position"
|
|
]
|
|
},
|
|
"RoleColors": {
|
|
"type": "object",
|
|
"properties": {
|
|
"primary_color": {
|
|
"type": "integer"
|
|
},
|
|
"secondary_color": {
|
|
"type": "integer"
|
|
},
|
|
"tertiary_color": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"primary_color"
|
|
]
|
|
},
|
|
"UserGuildSettings": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_overrides": {
|
|
"anyOf": [
|
|
{
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"$ref": "#/definitions/ChannelOverride"
|
|
}
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mobile_push": {
|
|
"type": "boolean"
|
|
},
|
|
"mute_config": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress_everyone": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress_roles": {
|
|
"type": "boolean"
|
|
},
|
|
"version": {
|
|
"type": "integer"
|
|
},
|
|
"guild_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"mute_scheduled_events": {
|
|
"type": "boolean"
|
|
},
|
|
"hide_muted_channels": {
|
|
"type": "boolean"
|
|
},
|
|
"notify_highlights": {
|
|
"type": "integer",
|
|
"const": 0
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_overrides",
|
|
"flags",
|
|
"guild_id",
|
|
"hide_muted_channels",
|
|
"message_notifications",
|
|
"mobile_push",
|
|
"mute_config",
|
|
"mute_scheduled_events",
|
|
"muted",
|
|
"notify_highlights",
|
|
"suppress_everyone",
|
|
"suppress_roles",
|
|
"version"
|
|
]
|
|
},
|
|
"ChannelOverride": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_id",
|
|
"message_notifications",
|
|
"mute_config",
|
|
"muted"
|
|
]
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"Webhook": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/WebhookType"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"token": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"application": {
|
|
"$ref": "#/definitions/Application"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"source_guild_id": {
|
|
"type": "string"
|
|
},
|
|
"source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"source_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"source_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"application",
|
|
"application_id",
|
|
"avatar",
|
|
"channel",
|
|
"channel_id",
|
|
"id",
|
|
"name",
|
|
"source_channel",
|
|
"source_channel_id",
|
|
"type",
|
|
"url",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"WebhookType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3
|
|
]
|
|
},
|
|
"Application": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"summary": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"type": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true
|
|
},
|
|
"hook": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"bot_public": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"bot_require_code_grant": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"verify_key": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"redirect_uris": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"rpc_application_state": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"store_application_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"verification_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"interactions_endpoint_url": {
|
|
"type": "string"
|
|
},
|
|
"integration_public": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"integration_require_code_grant": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"discoverability_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"discovery_eligibility_flags": {
|
|
"type": "integer",
|
|
"default": 2240
|
|
},
|
|
"bot": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"tags": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"cover_image": {
|
|
"type": "string"
|
|
},
|
|
"install_params": {
|
|
"type": "object",
|
|
"properties": {
|
|
"scopes": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"permissions": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"permissions",
|
|
"scopes"
|
|
]
|
|
},
|
|
"terms_of_service_url": {
|
|
"type": "string"
|
|
},
|
|
"privacy_policy_url": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"custom_install_url": {
|
|
"type": "string"
|
|
},
|
|
"team": {
|
|
"$ref": "#/definitions/Team"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"description",
|
|
"discoverability_state",
|
|
"discovery_eligibility_flags",
|
|
"flags",
|
|
"hook",
|
|
"id",
|
|
"integration_public",
|
|
"integration_require_code_grant",
|
|
"name",
|
|
"owner",
|
|
"redirect_uris",
|
|
"rpc_application_state",
|
|
"store_application_state",
|
|
"summary",
|
|
"verification_state",
|
|
"verify_key"
|
|
]
|
|
},
|
|
"Team": {
|
|
"type": "object",
|
|
"properties": {
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"members": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/TeamMember"
|
|
}
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"owner_user_id": {
|
|
"type": "string"
|
|
},
|
|
"owner_user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"members",
|
|
"name",
|
|
"owner_user",
|
|
"owner_user_id"
|
|
]
|
|
},
|
|
"TeamMember": {
|
|
"type": "object",
|
|
"properties": {
|
|
"membership_state": {
|
|
"$ref": "#/definitions/TeamMemberState"
|
|
},
|
|
"permissions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"role": {
|
|
"$ref": "#/definitions/TeamMemberRole"
|
|
},
|
|
"team_id": {
|
|
"type": "string"
|
|
},
|
|
"team": {
|
|
"$ref": "#/definitions/Team"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"membership_state",
|
|
"permissions",
|
|
"role",
|
|
"team",
|
|
"team_id",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"TeamMemberState": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"TeamMemberRole": {
|
|
"type": "string",
|
|
"enum": [
|
|
"admin",
|
|
"developer",
|
|
"read_only"
|
|
]
|
|
},
|
|
"Attachment": {
|
|
"type": "object",
|
|
"properties": {
|
|
"filename": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "integer"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
},
|
|
"content_type": {
|
|
"type": "string"
|
|
},
|
|
"message_id": {
|
|
"type": "string"
|
|
},
|
|
"message": {
|
|
"$ref": "#/definitions/Message"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"filename",
|
|
"id",
|
|
"message",
|
|
"message_id",
|
|
"proxy_url",
|
|
"size",
|
|
"url"
|
|
]
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"Reaction": {
|
|
"type": "object",
|
|
"properties": {
|
|
"count": {
|
|
"type": "integer"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"user_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"count",
|
|
"emoji",
|
|
"user_ids"
|
|
]
|
|
},
|
|
"PartialEmoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name"
|
|
]
|
|
},
|
|
"MessageType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
16,
|
|
19,
|
|
20,
|
|
41,
|
|
42,
|
|
43,
|
|
50,
|
|
63,
|
|
255
|
|
]
|
|
},
|
|
"InteractionType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5
|
|
]
|
|
},
|
|
"ApplicationCommandType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4
|
|
]
|
|
},
|
|
"ActionRowComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.ActionRow"
|
|
},
|
|
"components": {
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/ButtonComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/SelectMenuComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/StringSelectMenuComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/TextInputComponent"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"components",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.ActionRow": {
|
|
"type": "number",
|
|
"const": 1
|
|
},
|
|
"ButtonComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.Button"
|
|
},
|
|
"style": {
|
|
"$ref": "#/definitions/ButtonStyle"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"sku_id": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"style",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.Button": {
|
|
"type": "number",
|
|
"const": 2
|
|
},
|
|
"ButtonStyle": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6
|
|
]
|
|
},
|
|
"SelectMenuComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": [
|
|
3,
|
|
5,
|
|
6,
|
|
7,
|
|
8
|
|
],
|
|
"type": "number"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_types": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
},
|
|
"default_values": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuDefaultOption"
|
|
}
|
|
},
|
|
"min_values": {
|
|
"type": "integer"
|
|
},
|
|
"max_values": {
|
|
"type": "integer"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"type"
|
|
]
|
|
},
|
|
"SelectMenuDefaultOption": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"channel",
|
|
"role",
|
|
"user"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"type"
|
|
]
|
|
},
|
|
"StringSelectMenuComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.StringSelect"
|
|
},
|
|
"options": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuOption"
|
|
}
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_types": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
},
|
|
"default_values": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuDefaultOption"
|
|
}
|
|
},
|
|
"min_values": {
|
|
"type": "integer"
|
|
},
|
|
"max_values": {
|
|
"type": "integer"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"options",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.StringSelect": {
|
|
"type": "number",
|
|
"const": 3
|
|
},
|
|
"SelectMenuOption": {
|
|
"type": "object",
|
|
"properties": {
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"default": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"label",
|
|
"value"
|
|
]
|
|
},
|
|
"TextInputComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.TextInput"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"style": {
|
|
"$ref": "#/definitions/TextInputStyle"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"min_length": {
|
|
"type": "integer"
|
|
},
|
|
"max_length": {
|
|
"type": "integer"
|
|
},
|
|
"required": {
|
|
"type": "boolean"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"label",
|
|
"style",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.TextInput": {
|
|
"type": "number",
|
|
"const": 4
|
|
},
|
|
"TextInputStyle": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"Poll": {
|
|
"type": "object",
|
|
"properties": {
|
|
"question": {
|
|
"$ref": "#/definitions/PollMedia"
|
|
},
|
|
"answers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/PollAnswer"
|
|
}
|
|
},
|
|
"expiry": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"allow_multiselect": {
|
|
"type": "boolean"
|
|
},
|
|
"results": {
|
|
"$ref": "#/definitions/PollResult"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"allow_multiselect",
|
|
"answers",
|
|
"expiry",
|
|
"question"
|
|
]
|
|
},
|
|
"PollMedia": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"PollAnswer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"answer_id": {
|
|
"type": "string"
|
|
},
|
|
"poll_media": {
|
|
"$ref": "#/definitions/PollMedia"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"poll_media"
|
|
]
|
|
},
|
|
"PollResult": {
|
|
"type": "object",
|
|
"properties": {
|
|
"is_finalized": {
|
|
"type": "boolean"
|
|
},
|
|
"answer_counts": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/PollAnswerCount"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"answer_counts",
|
|
"is_finalized"
|
|
]
|
|
},
|
|
"PollAnswerCount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"count": {
|
|
"type": "integer"
|
|
},
|
|
"me_voted": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"count",
|
|
"id",
|
|
"me_voted"
|
|
]
|
|
},
|
|
"VoiceState": {
|
|
"type": "object",
|
|
"properties": {
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"member": {
|
|
"$ref": "#/definitions/Member"
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
},
|
|
"token": {
|
|
"type": "string"
|
|
},
|
|
"deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"mute": {
|
|
"type": "boolean"
|
|
},
|
|
"self_deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"self_mute": {
|
|
"type": "boolean"
|
|
},
|
|
"self_stream": {
|
|
"type": "boolean"
|
|
},
|
|
"self_video": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress": {
|
|
"type": "boolean"
|
|
},
|
|
"request_to_speak_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"deaf",
|
|
"guild_id",
|
|
"id",
|
|
"member",
|
|
"mute",
|
|
"self_deaf",
|
|
"self_mute",
|
|
"self_video",
|
|
"session_id",
|
|
"suppress",
|
|
"token",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"ReadState": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"public_ack": {
|
|
"type": "string"
|
|
},
|
|
"notifications_cursor": {
|
|
"type": "string"
|
|
},
|
|
"last_pin_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"mention_count": {
|
|
"type": "integer"
|
|
},
|
|
"manual": {
|
|
"type": "boolean"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"id",
|
|
"last_message_id",
|
|
"manual",
|
|
"mention_count",
|
|
"notifications_cursor",
|
|
"public_ack",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Ban": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"executor_id": {
|
|
"type": "string"
|
|
},
|
|
"executor": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"ip": {
|
|
"type": "string"
|
|
},
|
|
"reason": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"executor",
|
|
"executor_id",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"ip",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Template": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"usage_count": {
|
|
"type": "integer"
|
|
},
|
|
"creator_id": {
|
|
"type": "string"
|
|
},
|
|
"creator": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"updated_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"source_guild_id": {
|
|
"type": "string"
|
|
},
|
|
"source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"serialized_source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"code",
|
|
"created_at",
|
|
"creator",
|
|
"creator_id",
|
|
"id",
|
|
"name",
|
|
"serialized_source_guild",
|
|
"source_guild",
|
|
"source_guild_id",
|
|
"updated_at"
|
|
]
|
|
},
|
|
"Emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"animated": {
|
|
"type": "boolean"
|
|
},
|
|
"available": {
|
|
"type": "boolean"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"managed": {
|
|
"type": "boolean"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"require_colons": {
|
|
"type": "boolean"
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"groups": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"available",
|
|
"groups",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"managed",
|
|
"name",
|
|
"require_colons",
|
|
"roles",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"GuildWelcomeScreen": {
|
|
"type": "object",
|
|
"properties": {
|
|
"enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"welcome_channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"emoji_id": {
|
|
"type": "string"
|
|
},
|
|
"emoji_name": {
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_id",
|
|
"description"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"description",
|
|
"enabled",
|
|
"welcome_channels"
|
|
]
|
|
},
|
|
"StickerType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"StickerFormatType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"APIConnectionsConfiguration": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"UpdatesResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"pub_date": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"notes": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"notes",
|
|
"pub_date",
|
|
"url"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"UploadAttachmentResponseSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"attachments": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/UploadAttachmentResponse"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"attachments"
|
|
],
|
|
"definitions": {
|
|
"UploadAttachmentResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"upload_url": {
|
|
"type": "string"
|
|
},
|
|
"upload_filename": {
|
|
"type": "string"
|
|
},
|
|
"original_content_type": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"upload_filename",
|
|
"upload_url"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"UploadAttachmentResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"upload_url": {
|
|
"type": "string"
|
|
},
|
|
"upload_filename": {
|
|
"type": "string"
|
|
},
|
|
"original_content_type": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"upload_filename",
|
|
"upload_url"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"UserNoteResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"note": {
|
|
"type": "string"
|
|
},
|
|
"note_user_id": {
|
|
"type": "string"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"note",
|
|
"note_user_id",
|
|
"user_id"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"UserProfileResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user": {
|
|
"$ref": "#/definitions/PublicUser"
|
|
},
|
|
"connected_accounts": {
|
|
"$ref": "#/definitions/PublicConnectedAccount"
|
|
},
|
|
"premium_guild_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"mutual_guilds": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"nick": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id"
|
|
]
|
|
}
|
|
},
|
|
"premium_type": {
|
|
"type": "integer"
|
|
},
|
|
"profile_themes_experiment_bucket": {
|
|
"type": "integer"
|
|
},
|
|
"user_profile": {
|
|
"$ref": "#/definitions/UserProfile"
|
|
},
|
|
"guild_member": {
|
|
"$ref": "#/definitions/PublicMember"
|
|
},
|
|
"guild_member_profile": {
|
|
"$ref": "#/definitions/PublicMemberProfile"
|
|
},
|
|
"badges": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Badge"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"badges",
|
|
"connected_accounts",
|
|
"mutual_guilds",
|
|
"premium_type",
|
|
"profile_themes_experiment_bucket",
|
|
"user",
|
|
"user_profile"
|
|
],
|
|
"definitions": {
|
|
"PublicUser": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```",
|
|
"type": "string"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_type": {
|
|
"type": "integer"
|
|
},
|
|
"theme_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"badge_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"discriminator",
|
|
"id",
|
|
"premium_since",
|
|
"premium_type",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
},
|
|
"PublicConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"type"
|
|
]
|
|
},
|
|
"UserProfile": {
|
|
"type": "object",
|
|
"properties": {
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"theme_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio"
|
|
]
|
|
},
|
|
"PublicMember": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"mute": {
|
|
"type": "boolean"
|
|
},
|
|
"deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"nick": {
|
|
"type": "string"
|
|
},
|
|
"joined_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"pending": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_since": {
|
|
"type": "integer"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/PublicUser"
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"deaf",
|
|
"guild_id",
|
|
"id",
|
|
"joined_at",
|
|
"mute",
|
|
"pending",
|
|
"roles",
|
|
"user"
|
|
]
|
|
},
|
|
"PublicMemberProfile": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"properties": {
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "null"
|
|
}
|
|
},
|
|
"required": [
|
|
"accent_color",
|
|
"banner",
|
|
"bio",
|
|
"guild_id"
|
|
]
|
|
},
|
|
"Badge": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"link": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"description",
|
|
"icon",
|
|
"id"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"UserRelationsResponse": {
|
|
"type": "array",
|
|
"items": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"discriminator",
|
|
"id",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"UserRelationshipsResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/RelationshipType"
|
|
},
|
|
"nickname": {
|
|
"type": "null"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/PublicUser"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"nickname",
|
|
"type",
|
|
"user"
|
|
],
|
|
"definitions": {
|
|
"RelationshipType": {
|
|
"type": "number",
|
|
"enum": [
|
|
4,
|
|
3,
|
|
2,
|
|
1
|
|
]
|
|
},
|
|
"PublicUser": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```",
|
|
"type": "string"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_type": {
|
|
"type": "integer"
|
|
},
|
|
"theme_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"badge_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"discriminator",
|
|
"id",
|
|
"premium_since",
|
|
"premium_type",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"WebAuthnCreateResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"name"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"WebhookCreateResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"hook": {
|
|
"$ref": "#/definitions/Webhook"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"hook",
|
|
"user"
|
|
],
|
|
"definitions": {
|
|
"User": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"theme_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"phone": {
|
|
"type": "string"
|
|
},
|
|
"desktop": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"mobile": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"premium": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_type": {
|
|
"type": "integer"
|
|
},
|
|
"bot": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"bio": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"system": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"nsfw_allowed": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"mfa_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"webauthn_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"totp_secret": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"totp_last_ticket": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"deleted": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"email": {
|
|
"type": "string"
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"public_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"purchased_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"premium_usage_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"rights": {
|
|
"type": "string"
|
|
},
|
|
"sessions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Session"
|
|
}
|
|
},
|
|
"relationships": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Relationship"
|
|
}
|
|
},
|
|
"connected_accounts": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ConnectedAccount"
|
|
}
|
|
},
|
|
"data": {
|
|
"type": "object",
|
|
"properties": {
|
|
"valid_tokens_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"hash": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"valid_tokens_since"
|
|
]
|
|
},
|
|
"fingerprints": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"settings": {
|
|
"$ref": "#/definitions/UserSettings"
|
|
},
|
|
"extended_settings": {
|
|
"type": "string",
|
|
"default": "{}"
|
|
},
|
|
"security_keys": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SecurityKey"
|
|
}
|
|
},
|
|
"badge_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"connected_accounts",
|
|
"created_at",
|
|
"data",
|
|
"deleted",
|
|
"desktop",
|
|
"disabled",
|
|
"discriminator",
|
|
"extended_settings",
|
|
"fingerprints",
|
|
"flags",
|
|
"id",
|
|
"mfa_enabled",
|
|
"mobile",
|
|
"nsfw_allowed",
|
|
"premium",
|
|
"premium_since",
|
|
"premium_type",
|
|
"premium_usage_flags",
|
|
"public_flags",
|
|
"purchased_flags",
|
|
"relationships",
|
|
"rights",
|
|
"security_keys",
|
|
"sessions",
|
|
"system",
|
|
"username",
|
|
"verified",
|
|
"webauthn_enabled"
|
|
]
|
|
},
|
|
"Session": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"client_info": {
|
|
"type": "object",
|
|
"properties": {
|
|
"client": {
|
|
"type": "string"
|
|
},
|
|
"os": {
|
|
"type": "string"
|
|
},
|
|
"version": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"client",
|
|
"os",
|
|
"version"
|
|
]
|
|
},
|
|
"client_status": {
|
|
"$ref": "#/definitions/ClientStatus"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"activities",
|
|
"client_info",
|
|
"client_status",
|
|
"id",
|
|
"session_id",
|
|
"status",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
]
|
|
},
|
|
"ClientStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"desktop": {
|
|
"type": "string"
|
|
},
|
|
"mobile": {
|
|
"type": "string"
|
|
},
|
|
"web": {
|
|
"type": "string"
|
|
},
|
|
"embedded": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Relationship": {
|
|
"type": "object",
|
|
"properties": {
|
|
"from_id": {
|
|
"type": "string"
|
|
},
|
|
"from": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"to_id": {
|
|
"type": "string"
|
|
},
|
|
"to": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"nickname": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/RelationshipType"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"from",
|
|
"from_id",
|
|
"id",
|
|
"to",
|
|
"to_id",
|
|
"type"
|
|
]
|
|
},
|
|
"RelationshipType": {
|
|
"type": "number",
|
|
"enum": [
|
|
4,
|
|
3,
|
|
2,
|
|
1
|
|
]
|
|
},
|
|
"ConnectedAccount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"external_id": {
|
|
"type": "string"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"friend_sync": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"revoked": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"show_activity": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"visibility": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"integrations": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"metadata_": {},
|
|
"metadata_visibility": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"two_way_link": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"token_data": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/ConnectedAccountTokenData"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"external_id",
|
|
"id",
|
|
"name",
|
|
"type",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"ConnectedAccountTokenData": {
|
|
"type": "object",
|
|
"properties": {
|
|
"access_token": {
|
|
"type": "string"
|
|
},
|
|
"token_type": {
|
|
"type": "string"
|
|
},
|
|
"scope": {
|
|
"type": "string"
|
|
},
|
|
"refresh_token": {
|
|
"type": "string"
|
|
},
|
|
"expires_in": {
|
|
"type": "integer"
|
|
},
|
|
"expires_at": {
|
|
"type": "integer"
|
|
},
|
|
"fetched_at": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"access_token",
|
|
"fetched_at"
|
|
]
|
|
},
|
|
"UserSettings": {
|
|
"type": "object",
|
|
"properties": {
|
|
"index": {
|
|
"type": "string"
|
|
},
|
|
"afk_timeout": {
|
|
"type": "integer",
|
|
"default": 3600
|
|
},
|
|
"allow_accessibility_detection": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"animate_emoji": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"animate_stickers": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"contact_sync_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"convert_emoticons": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"custom_status": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/CustomStatus"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"default_guilds_restricted": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"detect_platform_accounts": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"developer_mode": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"disable_games_tab": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"enable_tts_command": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"friend_discovery_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"friend_source_flags": {
|
|
"$ref": "#/definitions/FriendSourceFlags"
|
|
},
|
|
"gateway_connected": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"gif_auto_play": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"guild_folders": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/GuildFolder"
|
|
},
|
|
"default": []
|
|
},
|
|
"guild_positions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"inline_attachment_media": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"inline_embed_media": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"locale": {
|
|
"type": "string",
|
|
"default": "en-US"
|
|
},
|
|
"message_display_compact": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"native_phone_integration_enabled": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"render_embeds": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"render_reactions": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"restricted_guilds": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"show_current_game": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string",
|
|
"default": "online"
|
|
},
|
|
"stream_notifications_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"theme": {
|
|
"enum": [
|
|
"dark",
|
|
"light"
|
|
],
|
|
"type": "string",
|
|
"default": "dark"
|
|
},
|
|
"timezone_offset": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"view_nsfw_guilds": {
|
|
"type": "boolean",
|
|
"default": true
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk_timeout",
|
|
"allow_accessibility_detection",
|
|
"animate_emoji",
|
|
"animate_stickers",
|
|
"contact_sync_enabled",
|
|
"convert_emoticons",
|
|
"custom_status",
|
|
"default_guilds_restricted",
|
|
"detect_platform_accounts",
|
|
"developer_mode",
|
|
"disable_games_tab",
|
|
"enable_tts_command",
|
|
"explicit_content_filter",
|
|
"friend_discovery_flags",
|
|
"friend_source_flags",
|
|
"gateway_connected",
|
|
"gif_auto_play",
|
|
"guild_folders",
|
|
"guild_positions",
|
|
"index",
|
|
"inline_attachment_media",
|
|
"inline_embed_media",
|
|
"locale",
|
|
"message_display_compact",
|
|
"native_phone_integration_enabled",
|
|
"render_embeds",
|
|
"render_reactions",
|
|
"restricted_guilds",
|
|
"show_current_game",
|
|
"status",
|
|
"stream_notifications_enabled",
|
|
"theme",
|
|
"timezone_offset",
|
|
"view_nsfw_guilds"
|
|
]
|
|
},
|
|
"CustomStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"emoji_id": {
|
|
"type": "string"
|
|
},
|
|
"emoji_name": {
|
|
"type": "string"
|
|
},
|
|
"expires_at": {
|
|
"type": "integer"
|
|
},
|
|
"text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"FriendSourceFlags": {
|
|
"type": "object",
|
|
"properties": {
|
|
"all": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"all"
|
|
]
|
|
},
|
|
"GuildFolder": {
|
|
"type": "object",
|
|
"properties": {
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"guild_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"color",
|
|
"guild_ids",
|
|
"id",
|
|
"name"
|
|
]
|
|
},
|
|
"SecurityKey": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"key_id": {
|
|
"type": "string"
|
|
},
|
|
"public_key": {
|
|
"type": "string"
|
|
},
|
|
"counter": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"counter",
|
|
"id",
|
|
"key_id",
|
|
"name",
|
|
"public_key",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Webhook": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/WebhookType"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"token": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"application": {
|
|
"$ref": "#/definitions/Application"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"source_guild_id": {
|
|
"type": "string"
|
|
},
|
|
"source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"source_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"source_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"application",
|
|
"application_id",
|
|
"avatar",
|
|
"channel",
|
|
"channel_id",
|
|
"id",
|
|
"name",
|
|
"source_channel",
|
|
"source_channel_id",
|
|
"type",
|
|
"url",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"WebhookType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3
|
|
]
|
|
},
|
|
"Guild": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"afk_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"afk_timeout": {
|
|
"type": "integer"
|
|
},
|
|
"bans": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Ban"
|
|
}
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"default_message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"discovery_splash": {
|
|
"type": "string"
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer"
|
|
},
|
|
"features": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"primary_category_id": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"large": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"max_members": {
|
|
"type": "integer"
|
|
},
|
|
"max_presences": {
|
|
"type": "integer"
|
|
},
|
|
"max_video_channel_users": {
|
|
"type": "integer"
|
|
},
|
|
"member_count": {
|
|
"type": "integer"
|
|
},
|
|
"presence_count": {
|
|
"type": "integer"
|
|
},
|
|
"members": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Member"
|
|
}
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Channel"
|
|
}
|
|
},
|
|
"template_id": {
|
|
"type": "string"
|
|
},
|
|
"template": {
|
|
"$ref": "#/definitions/Template"
|
|
},
|
|
"emojis": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Emoji"
|
|
}
|
|
},
|
|
"stickers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"invites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Invite"
|
|
}
|
|
},
|
|
"voice_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/VoiceState"
|
|
}
|
|
},
|
|
"webhooks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Webhook"
|
|
}
|
|
},
|
|
"mfa_level": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"owner_id": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"preferred_locale": {
|
|
"type": "string"
|
|
},
|
|
"premium_subscription_count": {
|
|
"type": "integer"
|
|
},
|
|
"premium_tier": {
|
|
"type": "integer"
|
|
},
|
|
"public_updates_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"public_updates_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"rules_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"rules_channel": {
|
|
"type": "string"
|
|
},
|
|
"region": {
|
|
"type": "string"
|
|
},
|
|
"splash": {
|
|
"type": "string"
|
|
},
|
|
"system_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"system_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"system_channel_flags": {
|
|
"type": "integer"
|
|
},
|
|
"unavailable": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"verification_level": {
|
|
"type": "integer"
|
|
},
|
|
"welcome_screen": {
|
|
"$ref": "#/definitions/GuildWelcomeScreen",
|
|
"description": "DEPRECATED: Look at the new Guild onboarding screens."
|
|
},
|
|
"widget_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"widget_channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"widget_enabled": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"nsfw_level": {
|
|
"type": "integer"
|
|
},
|
|
"nsfw": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"parent": {
|
|
"type": "string"
|
|
},
|
|
"permissions": {
|
|
"type": "integer"
|
|
},
|
|
"premium_progress_bar_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"channel_ordering": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bans",
|
|
"channel_ordering",
|
|
"channels",
|
|
"emojis",
|
|
"features",
|
|
"id",
|
|
"invites",
|
|
"members",
|
|
"name",
|
|
"nsfw",
|
|
"premium_progress_bar_enabled",
|
|
"public_updates_channel_id",
|
|
"roles",
|
|
"stickers",
|
|
"template",
|
|
"unavailable",
|
|
"voice_states",
|
|
"webhooks",
|
|
"welcome_screen",
|
|
"widget_enabled"
|
|
]
|
|
},
|
|
"Channel": {
|
|
"type": "object",
|
|
"properties": {
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ChannelType"
|
|
},
|
|
"recipients": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Recipient"
|
|
}
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"parent_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"parent": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"owner_id": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"last_pin_timestamp": {
|
|
"type": "integer"
|
|
},
|
|
"default_auto_archive_duration": {
|
|
"type": "integer"
|
|
},
|
|
"permission_overwrites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwrite"
|
|
}
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
},
|
|
"bitrate": {
|
|
"type": "integer"
|
|
},
|
|
"user_limit": {
|
|
"type": "integer"
|
|
},
|
|
"nsfw": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"topic": {
|
|
"type": "string"
|
|
},
|
|
"invites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Invite"
|
|
}
|
|
},
|
|
"retention_policy_id": {
|
|
"type": "string"
|
|
},
|
|
"messages": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Message"
|
|
}
|
|
},
|
|
"voice_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/VoiceState"
|
|
}
|
|
},
|
|
"read_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ReadState"
|
|
}
|
|
},
|
|
"webhooks": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Webhook"
|
|
}
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"position": {
|
|
"description": "Must be calculated Channel.calculatePosition",
|
|
"type": "integer"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"created_at",
|
|
"flags",
|
|
"id",
|
|
"nsfw",
|
|
"owner",
|
|
"parent_id",
|
|
"position",
|
|
"type"
|
|
]
|
|
},
|
|
"ChannelType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
33,
|
|
34,
|
|
35,
|
|
64,
|
|
255
|
|
]
|
|
},
|
|
"Recipient": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"closed": {
|
|
"type": "boolean"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"closed",
|
|
"id",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"ChannelPermissionOverwrite": {
|
|
"type": "object",
|
|
"properties": {
|
|
"allow": {
|
|
"type": "string"
|
|
},
|
|
"deny": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"allow",
|
|
"deny",
|
|
"id",
|
|
"type"
|
|
]
|
|
},
|
|
"ChannelPermissionOverwriteType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"Invite": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "string"
|
|
},
|
|
"temporary": {
|
|
"type": "boolean"
|
|
},
|
|
"uses": {
|
|
"type": "integer"
|
|
},
|
|
"max_uses": {
|
|
"type": "integer"
|
|
},
|
|
"max_age": {
|
|
"type": "integer"
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"expires_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"inviter_id": {
|
|
"type": "string"
|
|
},
|
|
"inviter": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"target_user_id": {
|
|
"type": "string"
|
|
},
|
|
"target_user": {
|
|
"type": "string"
|
|
},
|
|
"target_user_type": {
|
|
"type": "integer"
|
|
},
|
|
"vanity_url": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"code",
|
|
"created_at",
|
|
"flags",
|
|
"guild",
|
|
"guild_id",
|
|
"inviter",
|
|
"max_age",
|
|
"max_uses",
|
|
"target_user_id",
|
|
"temporary",
|
|
"uses"
|
|
]
|
|
},
|
|
"Message": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"author_id": {
|
|
"type": "string"
|
|
},
|
|
"author": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"member_id": {
|
|
"type": "string"
|
|
},
|
|
"member": {
|
|
"$ref": "#/definitions/Member"
|
|
},
|
|
"webhook_id": {
|
|
"type": "string"
|
|
},
|
|
"webhook": {
|
|
"$ref": "#/definitions/Webhook"
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"application": {
|
|
"$ref": "#/definitions/Application"
|
|
},
|
|
"content": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"edited_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"tts": {
|
|
"type": "boolean"
|
|
},
|
|
"mention_everyone": {
|
|
"type": "boolean"
|
|
},
|
|
"mentions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/User"
|
|
}
|
|
},
|
|
"mention_roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"mention_channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Channel"
|
|
}
|
|
},
|
|
"sticker_items": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"attachments": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Attachment"
|
|
}
|
|
},
|
|
"embeds": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Embed"
|
|
}
|
|
},
|
|
"reactions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Reaction"
|
|
}
|
|
},
|
|
"nonce": {
|
|
"type": "string"
|
|
},
|
|
"pinned_at": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"pinned": {
|
|
"type": "boolean"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/MessageType"
|
|
},
|
|
"activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "integer"
|
|
},
|
|
"party_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"party_id",
|
|
"type"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"message_reference": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"message_id"
|
|
]
|
|
},
|
|
"referenced_message": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/Message"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"interaction": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/InteractionType"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"type"
|
|
]
|
|
},
|
|
"interaction_metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/InteractionType"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"authorizing_integration_owners": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"command_type": {
|
|
"$ref": "#/definitions/ApplicationCommandType"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"authorizing_integration_owners",
|
|
"command_type",
|
|
"id",
|
|
"name",
|
|
"type",
|
|
"user_id"
|
|
]
|
|
},
|
|
"components": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ActionRowComponent"
|
|
}
|
|
},
|
|
"poll": {
|
|
"$ref": "#/definitions/Poll"
|
|
},
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"embeds",
|
|
"flags",
|
|
"id",
|
|
"mention_channels",
|
|
"mention_roles",
|
|
"mentions",
|
|
"pinned",
|
|
"reactions",
|
|
"timestamp",
|
|
"type"
|
|
]
|
|
},
|
|
"Member": {
|
|
"type": "object",
|
|
"properties": {
|
|
"index": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"nick": {
|
|
"type": "string"
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Role"
|
|
}
|
|
},
|
|
"joined_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"premium_since": {
|
|
"type": "integer"
|
|
},
|
|
"deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"mute": {
|
|
"type": "boolean"
|
|
},
|
|
"pending": {
|
|
"type": "boolean"
|
|
},
|
|
"settings": {
|
|
"$ref": "#/definitions/UserGuildSettings"
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"joined_by": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"theme_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"communication_disabled_until": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"banner",
|
|
"bio",
|
|
"communication_disabled_until",
|
|
"deaf",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"index",
|
|
"joined_at",
|
|
"joined_by",
|
|
"mute",
|
|
"pending",
|
|
"roles",
|
|
"settings",
|
|
"user"
|
|
]
|
|
},
|
|
"Role": {
|
|
"type": "object",
|
|
"properties": {
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"hoist": {
|
|
"type": "boolean"
|
|
},
|
|
"managed": {
|
|
"type": "boolean"
|
|
},
|
|
"mentionable": {
|
|
"type": "boolean"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"permissions": {
|
|
"type": "string"
|
|
},
|
|
"position": {
|
|
"type": "integer"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"unicode_emoji": {
|
|
"type": "string"
|
|
},
|
|
"tags": {
|
|
"type": "object",
|
|
"properties": {
|
|
"bot_id": {
|
|
"type": "string"
|
|
},
|
|
"integration_id": {
|
|
"type": "string"
|
|
},
|
|
"premium_subscriber": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"colors": {
|
|
"$ref": "#/definitions/RoleColors"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"color",
|
|
"colors",
|
|
"flags",
|
|
"guild",
|
|
"guild_id",
|
|
"hoist",
|
|
"id",
|
|
"managed",
|
|
"mentionable",
|
|
"name",
|
|
"permissions",
|
|
"position"
|
|
]
|
|
},
|
|
"RoleColors": {
|
|
"type": "object",
|
|
"properties": {
|
|
"primary_color": {
|
|
"type": "integer"
|
|
},
|
|
"secondary_color": {
|
|
"type": "integer"
|
|
},
|
|
"tertiary_color": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"primary_color"
|
|
]
|
|
},
|
|
"UserGuildSettings": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_overrides": {
|
|
"anyOf": [
|
|
{
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"$ref": "#/definitions/ChannelOverride"
|
|
}
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mobile_push": {
|
|
"type": "boolean"
|
|
},
|
|
"mute_config": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress_everyone": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress_roles": {
|
|
"type": "boolean"
|
|
},
|
|
"version": {
|
|
"type": "integer"
|
|
},
|
|
"guild_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"mute_scheduled_events": {
|
|
"type": "boolean"
|
|
},
|
|
"hide_muted_channels": {
|
|
"type": "boolean"
|
|
},
|
|
"notify_highlights": {
|
|
"type": "integer",
|
|
"const": 0
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_overrides",
|
|
"flags",
|
|
"guild_id",
|
|
"hide_muted_channels",
|
|
"message_notifications",
|
|
"mobile_push",
|
|
"mute_config",
|
|
"mute_scheduled_events",
|
|
"muted",
|
|
"notify_highlights",
|
|
"suppress_everyone",
|
|
"suppress_roles",
|
|
"version"
|
|
]
|
|
},
|
|
"ChannelOverride": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_id",
|
|
"message_notifications",
|
|
"mute_config",
|
|
"muted"
|
|
]
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
},
|
|
"Application": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"summary": {
|
|
"type": "string",
|
|
"default": ""
|
|
},
|
|
"type": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true
|
|
},
|
|
"hook": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"bot_public": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"bot_require_code_grant": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"verify_key": {
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"redirect_uris": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"rpc_application_state": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"store_application_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"verification_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"interactions_endpoint_url": {
|
|
"type": "string"
|
|
},
|
|
"integration_public": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"integration_require_code_grant": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"discoverability_state": {
|
|
"type": "integer",
|
|
"default": 1
|
|
},
|
|
"discovery_eligibility_flags": {
|
|
"type": "integer",
|
|
"default": 2240
|
|
},
|
|
"bot": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"tags": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"cover_image": {
|
|
"type": "string"
|
|
},
|
|
"install_params": {
|
|
"type": "object",
|
|
"properties": {
|
|
"scopes": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"permissions": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"permissions",
|
|
"scopes"
|
|
]
|
|
},
|
|
"terms_of_service_url": {
|
|
"type": "string"
|
|
},
|
|
"privacy_policy_url": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"custom_install_url": {
|
|
"type": "string"
|
|
},
|
|
"team": {
|
|
"$ref": "#/definitions/Team"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"description",
|
|
"discoverability_state",
|
|
"discovery_eligibility_flags",
|
|
"flags",
|
|
"hook",
|
|
"id",
|
|
"integration_public",
|
|
"integration_require_code_grant",
|
|
"name",
|
|
"owner",
|
|
"redirect_uris",
|
|
"rpc_application_state",
|
|
"store_application_state",
|
|
"summary",
|
|
"verification_state",
|
|
"verify_key"
|
|
]
|
|
},
|
|
"Team": {
|
|
"type": "object",
|
|
"properties": {
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"members": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/TeamMember"
|
|
}
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"owner_user_id": {
|
|
"type": "string"
|
|
},
|
|
"owner_user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"members",
|
|
"name",
|
|
"owner_user",
|
|
"owner_user_id"
|
|
]
|
|
},
|
|
"TeamMember": {
|
|
"type": "object",
|
|
"properties": {
|
|
"membership_state": {
|
|
"$ref": "#/definitions/TeamMemberState"
|
|
},
|
|
"permissions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"role": {
|
|
"$ref": "#/definitions/TeamMemberRole"
|
|
},
|
|
"team_id": {
|
|
"type": "string"
|
|
},
|
|
"team": {
|
|
"$ref": "#/definitions/Team"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"membership_state",
|
|
"permissions",
|
|
"role",
|
|
"team",
|
|
"team_id",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"TeamMemberState": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"TeamMemberRole": {
|
|
"type": "string",
|
|
"enum": [
|
|
"admin",
|
|
"developer",
|
|
"read_only"
|
|
]
|
|
},
|
|
"Sticker": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"available": {
|
|
"type": "boolean"
|
|
},
|
|
"tags": {
|
|
"type": "string"
|
|
},
|
|
"pack_id": {
|
|
"type": "string"
|
|
},
|
|
"pack": {
|
|
"$ref": "#/definitions/StickerPack"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/StickerType"
|
|
},
|
|
"format_type": {
|
|
"$ref": "#/definitions/StickerFormatType"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"format_type",
|
|
"id",
|
|
"name",
|
|
"pack",
|
|
"type"
|
|
]
|
|
},
|
|
"StickerPack": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"banner_asset_id": {
|
|
"type": "string"
|
|
},
|
|
"stickers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Sticker"
|
|
}
|
|
},
|
|
"cover_sticker_id": {
|
|
"type": "string"
|
|
},
|
|
"cover_sticker": {
|
|
"$ref": "#/definitions/Sticker"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"stickers"
|
|
]
|
|
},
|
|
"StickerType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"StickerFormatType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4
|
|
]
|
|
},
|
|
"Attachment": {
|
|
"type": "object",
|
|
"properties": {
|
|
"filename": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "integer"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
},
|
|
"content_type": {
|
|
"type": "string"
|
|
},
|
|
"message_id": {
|
|
"type": "string"
|
|
},
|
|
"message": {
|
|
"$ref": "#/definitions/Message"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"filename",
|
|
"id",
|
|
"message",
|
|
"message_id",
|
|
"proxy_url",
|
|
"size",
|
|
"url"
|
|
]
|
|
},
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"Reaction": {
|
|
"type": "object",
|
|
"properties": {
|
|
"count": {
|
|
"type": "integer"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"user_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"count",
|
|
"emoji",
|
|
"user_ids"
|
|
]
|
|
},
|
|
"PartialEmoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name"
|
|
]
|
|
},
|
|
"MessageType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8,
|
|
9,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
16,
|
|
19,
|
|
20,
|
|
41,
|
|
42,
|
|
43,
|
|
50,
|
|
63,
|
|
255
|
|
]
|
|
},
|
|
"InteractionType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5
|
|
]
|
|
},
|
|
"ApplicationCommandType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4
|
|
]
|
|
},
|
|
"ActionRowComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.ActionRow"
|
|
},
|
|
"components": {
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/ButtonComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/SelectMenuComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/StringSelectMenuComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/TextInputComponent"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"components",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.ActionRow": {
|
|
"type": "number",
|
|
"const": 1
|
|
},
|
|
"ButtonComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.Button"
|
|
},
|
|
"style": {
|
|
"$ref": "#/definitions/ButtonStyle"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"sku_id": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"style",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.Button": {
|
|
"type": "number",
|
|
"const": 2
|
|
},
|
|
"ButtonStyle": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6
|
|
]
|
|
},
|
|
"SelectMenuComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": [
|
|
3,
|
|
5,
|
|
6,
|
|
7,
|
|
8
|
|
],
|
|
"type": "number"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_types": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
},
|
|
"default_values": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuDefaultOption"
|
|
}
|
|
},
|
|
"min_values": {
|
|
"type": "integer"
|
|
},
|
|
"max_values": {
|
|
"type": "integer"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"type"
|
|
]
|
|
},
|
|
"SelectMenuDefaultOption": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"channel",
|
|
"role",
|
|
"user"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"type"
|
|
]
|
|
},
|
|
"StringSelectMenuComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.StringSelect"
|
|
},
|
|
"options": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuOption"
|
|
}
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_types": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
},
|
|
"default_values": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuDefaultOption"
|
|
}
|
|
},
|
|
"min_values": {
|
|
"type": "integer"
|
|
},
|
|
"max_values": {
|
|
"type": "integer"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"options",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.StringSelect": {
|
|
"type": "number",
|
|
"const": 3
|
|
},
|
|
"SelectMenuOption": {
|
|
"type": "object",
|
|
"properties": {
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"default": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"label",
|
|
"value"
|
|
]
|
|
},
|
|
"TextInputComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.TextInput"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"style": {
|
|
"$ref": "#/definitions/TextInputStyle"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"min_length": {
|
|
"type": "integer"
|
|
},
|
|
"max_length": {
|
|
"type": "integer"
|
|
},
|
|
"required": {
|
|
"type": "boolean"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"label",
|
|
"style",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.TextInput": {
|
|
"type": "number",
|
|
"const": 4
|
|
},
|
|
"TextInputStyle": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"Poll": {
|
|
"type": "object",
|
|
"properties": {
|
|
"question": {
|
|
"$ref": "#/definitions/PollMedia"
|
|
},
|
|
"answers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/PollAnswer"
|
|
}
|
|
},
|
|
"expiry": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"allow_multiselect": {
|
|
"type": "boolean"
|
|
},
|
|
"results": {
|
|
"$ref": "#/definitions/PollResult"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"allow_multiselect",
|
|
"answers",
|
|
"expiry",
|
|
"question"
|
|
]
|
|
},
|
|
"PollMedia": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"PollAnswer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"answer_id": {
|
|
"type": "string"
|
|
},
|
|
"poll_media": {
|
|
"$ref": "#/definitions/PollMedia"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"poll_media"
|
|
]
|
|
},
|
|
"PollResult": {
|
|
"type": "object",
|
|
"properties": {
|
|
"is_finalized": {
|
|
"type": "boolean"
|
|
},
|
|
"answer_counts": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/PollAnswerCount"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"answer_counts",
|
|
"is_finalized"
|
|
]
|
|
},
|
|
"PollAnswerCount": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"count": {
|
|
"type": "integer"
|
|
},
|
|
"me_voted": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"count",
|
|
"id",
|
|
"me_voted"
|
|
]
|
|
},
|
|
"VoiceState": {
|
|
"type": "object",
|
|
"properties": {
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"member": {
|
|
"$ref": "#/definitions/Member"
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
},
|
|
"token": {
|
|
"type": "string"
|
|
},
|
|
"deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"mute": {
|
|
"type": "boolean"
|
|
},
|
|
"self_deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"self_mute": {
|
|
"type": "boolean"
|
|
},
|
|
"self_stream": {
|
|
"type": "boolean"
|
|
},
|
|
"self_video": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress": {
|
|
"type": "boolean"
|
|
},
|
|
"request_to_speak_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"deaf",
|
|
"guild_id",
|
|
"id",
|
|
"member",
|
|
"mute",
|
|
"self_deaf",
|
|
"self_mute",
|
|
"self_video",
|
|
"session_id",
|
|
"suppress",
|
|
"token",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"ReadState": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"channel": {
|
|
"$ref": "#/definitions/Channel"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"last_message_id": {
|
|
"type": "string"
|
|
},
|
|
"public_ack": {
|
|
"type": "string"
|
|
},
|
|
"notifications_cursor": {
|
|
"type": "string"
|
|
},
|
|
"last_pin_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"mention_count": {
|
|
"type": "integer"
|
|
},
|
|
"manual": {
|
|
"type": "boolean"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel",
|
|
"channel_id",
|
|
"id",
|
|
"last_message_id",
|
|
"manual",
|
|
"mention_count",
|
|
"notifications_cursor",
|
|
"public_ack",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Ban": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"executor_id": {
|
|
"type": "string"
|
|
},
|
|
"executor": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"ip": {
|
|
"type": "string"
|
|
},
|
|
"reason": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"executor",
|
|
"executor_id",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"ip",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"Template": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"usage_count": {
|
|
"type": "integer"
|
|
},
|
|
"creator_id": {
|
|
"type": "string"
|
|
},
|
|
"creator": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"updated_at": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"source_guild_id": {
|
|
"type": "string"
|
|
},
|
|
"source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"serialized_source_guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"code",
|
|
"created_at",
|
|
"creator",
|
|
"creator_id",
|
|
"id",
|
|
"name",
|
|
"serialized_source_guild",
|
|
"source_guild",
|
|
"source_guild_id",
|
|
"updated_at"
|
|
]
|
|
},
|
|
"Emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"animated": {
|
|
"type": "boolean"
|
|
},
|
|
"available": {
|
|
"type": "boolean"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"guild": {
|
|
"$ref": "#/definitions/Guild"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/User"
|
|
},
|
|
"managed": {
|
|
"type": "boolean"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"require_colons": {
|
|
"type": "boolean"
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"groups": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"available",
|
|
"groups",
|
|
"guild",
|
|
"guild_id",
|
|
"id",
|
|
"managed",
|
|
"name",
|
|
"require_colons",
|
|
"roles",
|
|
"user",
|
|
"user_id"
|
|
]
|
|
},
|
|
"GuildWelcomeScreen": {
|
|
"type": "object",
|
|
"properties": {
|
|
"enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"welcome_channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"emoji_id": {
|
|
"type": "string"
|
|
},
|
|
"emoji_name": {
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_id",
|
|
"description"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"description",
|
|
"enabled",
|
|
"welcome_channels"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"AckBulkSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"read_states": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"message_id": {
|
|
"type": "string"
|
|
},
|
|
"read_state_type": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_id",
|
|
"message_id",
|
|
"read_state_type"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"read_states"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"ActivitySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"afk": {
|
|
"type": "boolean"
|
|
},
|
|
"status": {
|
|
"$ref": "#/definitions/Status"
|
|
},
|
|
"activities": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Activity"
|
|
}
|
|
},
|
|
"since": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"status"
|
|
],
|
|
"definitions": {
|
|
"Status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"Activity": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ActivityType"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"created_at": {
|
|
"type": "integer"
|
|
},
|
|
"timestamps": {
|
|
"type": "object",
|
|
"properties": {
|
|
"start": {
|
|
"type": "integer"
|
|
},
|
|
"end": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end",
|
|
"start"
|
|
]
|
|
},
|
|
"application_id": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"animated",
|
|
"name"
|
|
]
|
|
},
|
|
"party": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"assets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"large_image": {
|
|
"type": "string"
|
|
},
|
|
"large_text": {
|
|
"type": "string"
|
|
},
|
|
"small_image": {
|
|
"type": "string"
|
|
},
|
|
"small_text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"secrets": {
|
|
"type": "object",
|
|
"properties": {
|
|
"join": {
|
|
"type": "string"
|
|
},
|
|
"spectate": {
|
|
"type": "string"
|
|
},
|
|
"match": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"instance": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"sync_id": {
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object",
|
|
"properties": {
|
|
"context_uri": {
|
|
"type": "string"
|
|
},
|
|
"album_id": {
|
|
"type": "string"
|
|
},
|
|
"artist_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"album_id",
|
|
"artist_ids"
|
|
]
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"flags",
|
|
"name",
|
|
"session_id",
|
|
"type"
|
|
]
|
|
},
|
|
"ActivityType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2,
|
|
4,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"ApplicationAuthorizeSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"authorize": {
|
|
"type": "boolean"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"permissions": {
|
|
"type": "string"
|
|
},
|
|
"captcha_key": {
|
|
"type": "string"
|
|
},
|
|
"code": {
|
|
"minLength": 6,
|
|
"maxLength": 6,
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"authorize",
|
|
"guild_id",
|
|
"permissions"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"AutomodMentionSpamRuleSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"mention_total_limit": {
|
|
"type": "integer"
|
|
},
|
|
"mention_raid_protection_enabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"mention_raid_protection_enabled",
|
|
"mention_total_limit"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"AutomodSuspectedSpamRuleSchema": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"AutomodCommonlyFlaggedWordsRuleSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"allow_list": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
},
|
|
"presets": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "integer"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"allow_list",
|
|
"presets"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"AutomodCustomWordsRuleSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"allow_list": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
},
|
|
"keyword_filter": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
},
|
|
"regex_patterns": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"allow_list",
|
|
"keyword_filter",
|
|
"regex_patterns"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"AutomodRuleSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"creator_id": {
|
|
"type": "string"
|
|
},
|
|
"enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"event_type": {
|
|
"type": "integer"
|
|
},
|
|
"exempt_channels": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
},
|
|
"exempt_roles": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"position": {
|
|
"type": "integer"
|
|
},
|
|
"trigger_type": {
|
|
"type": "integer"
|
|
},
|
|
"trigger_metadata": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/AutomodMentionSpamRuleSchema"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/AutomodSuspectedSpamRuleSchema"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/AutomodCommonlyFlaggedWordsRuleSchema"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/AutomodCustomWordsRuleSchema"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"creator_id",
|
|
"enabled",
|
|
"event_type",
|
|
"exempt_channels",
|
|
"exempt_roles",
|
|
"guild_id",
|
|
"name",
|
|
"position",
|
|
"trigger_metadata",
|
|
"trigger_type"
|
|
],
|
|
"definitions": {
|
|
"AutomodMentionSpamRuleSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"mention_total_limit": {
|
|
"type": "integer"
|
|
},
|
|
"mention_raid_protection_enabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"mention_raid_protection_enabled",
|
|
"mention_total_limit"
|
|
]
|
|
},
|
|
"AutomodSuspectedSpamRuleSchema": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"AutomodCommonlyFlaggedWordsRuleSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"allow_list": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
},
|
|
"presets": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "integer"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"allow_list",
|
|
"presets"
|
|
]
|
|
},
|
|
"AutomodCustomWordsRuleSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"allow_list": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
},
|
|
"keyword_filter": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
},
|
|
"regex_patterns": {
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"allow_list",
|
|
"keyword_filter",
|
|
"regex_patterns"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"BackupCodesChallengeSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"password": {
|
|
"minLength": 1,
|
|
"maxLength": 72,
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"password"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"BanCreateSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"delete_message_seconds": {
|
|
"type": "string"
|
|
},
|
|
"delete_message_days": {
|
|
"type": "string"
|
|
},
|
|
"reason": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"BanModeratorSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"executor_id": {
|
|
"type": "string"
|
|
},
|
|
"reason": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"executor_id",
|
|
"guild_id",
|
|
"id",
|
|
"user_id"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"BanRegistrySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"executor_id": {
|
|
"type": "string"
|
|
},
|
|
"ip": {
|
|
"type": "string"
|
|
},
|
|
"reason": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"executor_id",
|
|
"guild_id",
|
|
"id",
|
|
"user_id"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"BotModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"username": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"BulkBanSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"delete_message_seconds": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"user_ids"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"BulkDeleteSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"messages": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"messages"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"ChannelModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"maxLength": 100,
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
2,
|
|
255,
|
|
3,
|
|
33,
|
|
34,
|
|
35,
|
|
4,
|
|
5,
|
|
6,
|
|
64,
|
|
7,
|
|
8,
|
|
9
|
|
],
|
|
"type": "number"
|
|
},
|
|
"topic": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"bitrate": {
|
|
"type": "integer"
|
|
},
|
|
"user_limit": {
|
|
"type": "integer"
|
|
},
|
|
"rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"position": {
|
|
"type": "integer"
|
|
},
|
|
"permission_overwrites": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
},
|
|
"allow": {
|
|
"type": "string"
|
|
},
|
|
"deny": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"allow",
|
|
"deny",
|
|
"id",
|
|
"type"
|
|
]
|
|
}
|
|
},
|
|
"parent_id": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"nsfw": {
|
|
"type": "boolean"
|
|
},
|
|
"rtc_region": {
|
|
"type": "string"
|
|
},
|
|
"default_auto_archive_duration": {
|
|
"type": "integer"
|
|
},
|
|
"default_reaction_emoji": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"definitions": {
|
|
"ChannelPermissionOverwriteType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"ChannelPermissionOverwriteSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"allow": {
|
|
"type": "string"
|
|
},
|
|
"deny": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"allow",
|
|
"deny",
|
|
"id",
|
|
"type"
|
|
],
|
|
"definitions": {
|
|
"ChannelPermissionOverwriteType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"ChannelReorderSchema": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"position": {
|
|
"type": "integer"
|
|
},
|
|
"lock_permissions": {
|
|
"type": "boolean"
|
|
},
|
|
"parent_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id"
|
|
]
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"CodesVerificationSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"key": {
|
|
"type": "string"
|
|
},
|
|
"nonce": {
|
|
"type": "string"
|
|
},
|
|
"regenerate": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"key",
|
|
"nonce"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"ConnectedAccountSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"external_id": {
|
|
"type": "string"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"token_data": {
|
|
"$ref": "#/definitions/ConnectedAccountTokenData"
|
|
},
|
|
"friend_sync": {
|
|
"type": "boolean"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"revoked": {
|
|
"type": "boolean"
|
|
},
|
|
"show_activity": {
|
|
"type": "integer"
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"verified": {
|
|
"type": "boolean"
|
|
},
|
|
"visibility": {
|
|
"type": "integer"
|
|
},
|
|
"integrations": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"metadata_": {},
|
|
"metadata_visibility": {
|
|
"type": "integer"
|
|
},
|
|
"two_way_link": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"external_id",
|
|
"name",
|
|
"type",
|
|
"user_id"
|
|
],
|
|
"definitions": {
|
|
"ConnectedAccountTokenData": {
|
|
"type": "object",
|
|
"properties": {
|
|
"access_token": {
|
|
"type": "string"
|
|
},
|
|
"token_type": {
|
|
"type": "string"
|
|
},
|
|
"scope": {
|
|
"type": "string"
|
|
},
|
|
"refresh_token": {
|
|
"type": "string"
|
|
},
|
|
"expires_in": {
|
|
"type": "integer"
|
|
},
|
|
"expires_at": {
|
|
"type": "integer"
|
|
},
|
|
"fetched_at": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"access_token",
|
|
"fetched_at"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"ConnectionCallbackSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "string"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"insecure": {
|
|
"type": "boolean"
|
|
},
|
|
"friend_sync": {
|
|
"type": "boolean"
|
|
},
|
|
"openid_params": {}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"friend_sync",
|
|
"insecure",
|
|
"state"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"ConnectionUpdateSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"visibility": {
|
|
"type": "boolean"
|
|
},
|
|
"show_activity": {
|
|
"type": "boolean"
|
|
},
|
|
"metadata_visibility": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"DmChannelCreateSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"recipients": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"recipients"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"EmailDomainLookupSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"allow_multiple_guilds": {
|
|
"type": "boolean"
|
|
},
|
|
"email": {
|
|
"type": "string"
|
|
},
|
|
"use_verification_code": {
|
|
"type": "boolean"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"allow_multiple_guilds",
|
|
"email",
|
|
"use_verification_code"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"EmailDomainLookupVerifyCodeSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"email": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"code": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"code",
|
|
"email",
|
|
"guild_id"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"EmojiCreateSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"image": {
|
|
"type": "string"
|
|
},
|
|
"require_colons": {
|
|
"type": [
|
|
"null",
|
|
"boolean"
|
|
]
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"image"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"EmojiModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"ForgotPasswordSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"login": {
|
|
"type": "string"
|
|
},
|
|
"captcha_key": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"login"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"GreetRequestSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"sticker_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"allowed_mentions": {
|
|
"$ref": "#/definitions/AllowedMentions"
|
|
},
|
|
"message_reference": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"fail_if_not_exists": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"message_id"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"sticker_ids"
|
|
],
|
|
"definitions": {
|
|
"AllowedMentions": {
|
|
"type": "object",
|
|
"properties": {
|
|
"parse": {
|
|
"type": "array",
|
|
"items": {
|
|
"enum": [
|
|
"everyone",
|
|
"roles",
|
|
"users"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"users": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"replied_user": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"GuildCreateSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"maxLength": 100,
|
|
"type": "string"
|
|
},
|
|
"region": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ChannelModifySchema"
|
|
}
|
|
},
|
|
"system_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"rules_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"guild_template_code": {
|
|
"type": "string"
|
|
},
|
|
"staff_only": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"definitions": {
|
|
"ChannelModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"maxLength": 100,
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
0,
|
|
1,
|
|
10,
|
|
11,
|
|
12,
|
|
13,
|
|
14,
|
|
15,
|
|
2,
|
|
255,
|
|
3,
|
|
33,
|
|
34,
|
|
35,
|
|
4,
|
|
5,
|
|
6,
|
|
64,
|
|
7,
|
|
8,
|
|
9
|
|
],
|
|
"type": "number"
|
|
},
|
|
"topic": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"bitrate": {
|
|
"type": "integer"
|
|
},
|
|
"user_limit": {
|
|
"type": "integer"
|
|
},
|
|
"rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"position": {
|
|
"type": "integer"
|
|
},
|
|
"permission_overwrites": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/ChannelPermissionOverwriteType"
|
|
},
|
|
"allow": {
|
|
"type": "string"
|
|
},
|
|
"deny": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"allow",
|
|
"deny",
|
|
"id",
|
|
"type"
|
|
]
|
|
}
|
|
},
|
|
"parent_id": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"nsfw": {
|
|
"type": "boolean"
|
|
},
|
|
"rtc_region": {
|
|
"type": "string"
|
|
},
|
|
"default_auto_archive_duration": {
|
|
"type": "integer"
|
|
},
|
|
"default_reaction_emoji": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"default_thread_rate_limit_per_user": {
|
|
"type": "integer"
|
|
},
|
|
"video_quality_mode": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ChannelPermissionOverwriteType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"GuildSubscriptionsBulkSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"subscriptions": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"$ref": "#/definitions/GuildSubscriptionSchema"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"subscriptions"
|
|
],
|
|
"definitions": {
|
|
"GuildSubscriptionSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channels": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"members": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"activities": {
|
|
"type": "boolean"
|
|
},
|
|
"threads": {
|
|
"type": "boolean"
|
|
},
|
|
"typing": {
|
|
"const": true,
|
|
"type": "boolean"
|
|
},
|
|
"member_updates": {
|
|
"type": "boolean"
|
|
},
|
|
"thread_member_lists": {
|
|
"type": "array",
|
|
"items": {}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"GuildSubscriptionSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channels": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"members": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"activities": {
|
|
"type": "boolean"
|
|
},
|
|
"threads": {
|
|
"type": "boolean"
|
|
},
|
|
"typing": {
|
|
"const": true,
|
|
"type": "boolean"
|
|
},
|
|
"member_updates": {
|
|
"type": "boolean"
|
|
},
|
|
"thread_member_lists": {
|
|
"type": "array",
|
|
"items": {}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"GuildTemplateCreateSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"GuildUpdateSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"banner": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"splash": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"features": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"verification_level": {
|
|
"type": "integer"
|
|
},
|
|
"default_message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"system_channel_flags": {
|
|
"type": "integer"
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer"
|
|
},
|
|
"public_updates_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"afk_timeout": {
|
|
"type": "integer"
|
|
},
|
|
"afk_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"preferred_locale": {
|
|
"type": "string"
|
|
},
|
|
"premium_progress_bar_enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"discovery_splash": {
|
|
"type": "string"
|
|
},
|
|
"safety_alerts_channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"name": {
|
|
"maxLength": 100,
|
|
"type": "string"
|
|
},
|
|
"region": {
|
|
"type": "string"
|
|
},
|
|
"icon": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"system_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"rules_channel_id": {
|
|
"type": "string"
|
|
},
|
|
"guild_template_code": {
|
|
"type": "string"
|
|
},
|
|
"staff_only": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"GuildUpdateWelcomeScreenSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"welcome_channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"emoji_id": {
|
|
"type": "string"
|
|
},
|
|
"emoji_name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_id",
|
|
"description"
|
|
]
|
|
}
|
|
},
|
|
"enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"HubWaitlistSignupSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"email": {
|
|
"type": "string"
|
|
},
|
|
"school": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"email",
|
|
"school"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"InviteCreateSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"target_user_id": {
|
|
"type": "string"
|
|
},
|
|
"target_type": {
|
|
"type": "string"
|
|
},
|
|
"validate": {
|
|
"type": "string"
|
|
},
|
|
"max_age": {
|
|
"type": "integer"
|
|
},
|
|
"max_uses": {
|
|
"type": "integer"
|
|
},
|
|
"temporary": {
|
|
"type": "boolean"
|
|
},
|
|
"unique": {
|
|
"type": "boolean"
|
|
},
|
|
"target_user": {
|
|
"type": "string"
|
|
},
|
|
"target_user_type": {
|
|
"type": "integer"
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"MFAResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"ticket": {
|
|
"type": "string"
|
|
},
|
|
"mfa": {
|
|
"type": "boolean",
|
|
"const": true
|
|
},
|
|
"sms": {
|
|
"type": "boolean",
|
|
"const": false
|
|
},
|
|
"token": {
|
|
"type": "null"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"mfa",
|
|
"sms",
|
|
"ticket",
|
|
"token"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"WebAuthnResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"webauthn": {
|
|
"type": "string"
|
|
},
|
|
"ticket": {
|
|
"type": "string"
|
|
},
|
|
"mfa": {
|
|
"type": "boolean",
|
|
"const": true
|
|
},
|
|
"sms": {
|
|
"type": "boolean",
|
|
"const": false
|
|
},
|
|
"token": {
|
|
"type": "null"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"mfa",
|
|
"sms",
|
|
"ticket",
|
|
"token",
|
|
"webauthn"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"LoginResponse": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/TokenResponse"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/MFAResponse"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/WebAuthnResponse"
|
|
}
|
|
],
|
|
"definitions": {
|
|
"TokenResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"token": {
|
|
"type": "string"
|
|
},
|
|
"user_settings": {
|
|
"$ref": "#/definitions/UserSettings"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"token",
|
|
"user_id",
|
|
"user_settings"
|
|
]
|
|
},
|
|
"UserSettings": {
|
|
"type": "object",
|
|
"properties": {
|
|
"index": {
|
|
"type": "string"
|
|
},
|
|
"afk_timeout": {
|
|
"type": "integer",
|
|
"default": 3600
|
|
},
|
|
"allow_accessibility_detection": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"animate_emoji": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"animate_stickers": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"contact_sync_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"convert_emoticons": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"custom_status": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/CustomStatus"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null
|
|
},
|
|
"default_guilds_restricted": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"detect_platform_accounts": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"developer_mode": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"disable_games_tab": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"enable_tts_command": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"explicit_content_filter": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"friend_discovery_flags": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"friend_source_flags": {
|
|
"$ref": "#/definitions/FriendSourceFlags"
|
|
},
|
|
"gateway_connected": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"gif_auto_play": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"guild_folders": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/GuildFolder"
|
|
},
|
|
"default": []
|
|
},
|
|
"guild_positions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"inline_attachment_media": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"inline_embed_media": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"locale": {
|
|
"type": "string",
|
|
"default": "en-US"
|
|
},
|
|
"message_display_compact": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"native_phone_integration_enabled": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"render_embeds": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"render_reactions": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"restricted_guilds": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": []
|
|
},
|
|
"show_current_game": {
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
"status": {
|
|
"enum": [
|
|
"dnd",
|
|
"idle",
|
|
"invisible",
|
|
"offline",
|
|
"online"
|
|
],
|
|
"type": "string",
|
|
"default": "online"
|
|
},
|
|
"stream_notifications_enabled": {
|
|
"type": "boolean",
|
|
"default": false
|
|
},
|
|
"theme": {
|
|
"enum": [
|
|
"dark",
|
|
"light"
|
|
],
|
|
"type": "string",
|
|
"default": "dark"
|
|
},
|
|
"timezone_offset": {
|
|
"type": "integer",
|
|
"default": 0
|
|
},
|
|
"view_nsfw_guilds": {
|
|
"type": "boolean",
|
|
"default": true
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"afk_timeout",
|
|
"allow_accessibility_detection",
|
|
"animate_emoji",
|
|
"animate_stickers",
|
|
"contact_sync_enabled",
|
|
"convert_emoticons",
|
|
"custom_status",
|
|
"default_guilds_restricted",
|
|
"detect_platform_accounts",
|
|
"developer_mode",
|
|
"disable_games_tab",
|
|
"enable_tts_command",
|
|
"explicit_content_filter",
|
|
"friend_discovery_flags",
|
|
"friend_source_flags",
|
|
"gateway_connected",
|
|
"gif_auto_play",
|
|
"guild_folders",
|
|
"guild_positions",
|
|
"index",
|
|
"inline_attachment_media",
|
|
"inline_embed_media",
|
|
"locale",
|
|
"message_display_compact",
|
|
"native_phone_integration_enabled",
|
|
"render_embeds",
|
|
"render_reactions",
|
|
"restricted_guilds",
|
|
"show_current_game",
|
|
"status",
|
|
"stream_notifications_enabled",
|
|
"theme",
|
|
"timezone_offset",
|
|
"view_nsfw_guilds"
|
|
]
|
|
},
|
|
"CustomStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"emoji_id": {
|
|
"type": "string"
|
|
},
|
|
"emoji_name": {
|
|
"type": "string"
|
|
},
|
|
"expires_at": {
|
|
"type": "integer"
|
|
},
|
|
"text": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"FriendSourceFlags": {
|
|
"type": "object",
|
|
"properties": {
|
|
"all": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"all"
|
|
]
|
|
},
|
|
"GuildFolder": {
|
|
"type": "object",
|
|
"properties": {
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"guild_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "integer"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"color",
|
|
"guild_ids",
|
|
"id",
|
|
"name"
|
|
]
|
|
},
|
|
"MFAResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"ticket": {
|
|
"type": "string"
|
|
},
|
|
"mfa": {
|
|
"type": "boolean",
|
|
"const": true
|
|
},
|
|
"sms": {
|
|
"type": "boolean",
|
|
"const": false
|
|
},
|
|
"token": {
|
|
"type": "null"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"mfa",
|
|
"sms",
|
|
"ticket",
|
|
"token"
|
|
]
|
|
},
|
|
"WebAuthnResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"webauthn": {
|
|
"type": "string"
|
|
},
|
|
"ticket": {
|
|
"type": "string"
|
|
},
|
|
"mfa": {
|
|
"type": "boolean",
|
|
"const": true
|
|
},
|
|
"sms": {
|
|
"type": "boolean",
|
|
"const": false
|
|
},
|
|
"token": {
|
|
"type": "null"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"mfa",
|
|
"sms",
|
|
"ticket",
|
|
"token",
|
|
"webauthn"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"LoginSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"login": {
|
|
"type": "string"
|
|
},
|
|
"password": {
|
|
"minLength": 1,
|
|
"maxLength": 72,
|
|
"type": "string"
|
|
},
|
|
"undelete": {
|
|
"type": "boolean"
|
|
},
|
|
"captcha_key": {
|
|
"type": "string"
|
|
},
|
|
"login_source": {
|
|
"type": "string"
|
|
},
|
|
"gift_code_sku_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"login",
|
|
"password"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"MemberChangeProfileSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"banner": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"nick": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"theme_colors": {
|
|
"items": [
|
|
{
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"type": "integer"
|
|
}
|
|
],
|
|
"type": "array",
|
|
"minItems": 2,
|
|
"maxItems": 2
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"MemberChangeSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"nick": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"MemberNickChangeSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"nick": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"nick"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"MessageAcknowledgeSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"manual": {
|
|
"type": "boolean"
|
|
},
|
|
"mention_count": {
|
|
"type": "integer"
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"last_viewed": {
|
|
"type": "integer"
|
|
},
|
|
"token": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"MessageCreateSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "integer"
|
|
},
|
|
"content": {
|
|
"type": "string"
|
|
},
|
|
"mobile_network_type": {
|
|
"type": "string"
|
|
},
|
|
"nonce": {
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"tts": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"embeds": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Embed"
|
|
}
|
|
},
|
|
"embed": {
|
|
"$ref": "#/definitions/Embed"
|
|
},
|
|
"allowed_mentions": {
|
|
"type": "object",
|
|
"properties": {
|
|
"parse": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"users": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"replied_user": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"message_reference": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"fail_if_not_exists": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"message_id"
|
|
]
|
|
},
|
|
"payload_json": {
|
|
"type": "string"
|
|
},
|
|
"file": {
|
|
"type": "object",
|
|
"properties": {
|
|
"filename": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"filename"
|
|
]
|
|
},
|
|
"attachments": {
|
|
"description": "TODO: we should create an interface for attachments\nTODO: OpenWAAO<-->attachment-style metadata conversion",
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"filename": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"filename",
|
|
"id"
|
|
]
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"filename": {
|
|
"type": "string"
|
|
},
|
|
"uploaded_filename": {
|
|
"type": "string"
|
|
},
|
|
"original_content_type": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"filename",
|
|
"uploaded_filename"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"sticker_ids": {
|
|
"anyOf": [
|
|
{
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"components": {
|
|
"anyOf": [
|
|
{
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ActionRowComponent"
|
|
}
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"poll": {
|
|
"$ref": "#/definitions/PollCreationSchema"
|
|
},
|
|
"enforce_nonce": {
|
|
"type": "boolean"
|
|
},
|
|
"applied_tags": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"thread_name": {
|
|
"type": "string"
|
|
},
|
|
"avatar_url": {
|
|
"type": "string"
|
|
},
|
|
"interaction": {
|
|
"$ref": "#/definitions/MessageInteractionSchema"
|
|
},
|
|
"interaction_metadata": {
|
|
"$ref": "#/definitions/MessageInteractionSchema"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"definitions": {
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ActionRowComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.ActionRow"
|
|
},
|
|
"components": {
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/ButtonComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/SelectMenuComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/StringSelectMenuComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/TextInputComponent"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"components",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.ActionRow": {
|
|
"type": "number",
|
|
"const": 1
|
|
},
|
|
"ButtonComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.Button"
|
|
},
|
|
"style": {
|
|
"$ref": "#/definitions/ButtonStyle"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"sku_id": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"style",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.Button": {
|
|
"type": "number",
|
|
"const": 2
|
|
},
|
|
"ButtonStyle": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6
|
|
]
|
|
},
|
|
"PartialEmoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name"
|
|
]
|
|
},
|
|
"SelectMenuComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": [
|
|
3,
|
|
5,
|
|
6,
|
|
7,
|
|
8
|
|
],
|
|
"type": "number"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_types": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
},
|
|
"default_values": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuDefaultOption"
|
|
}
|
|
},
|
|
"min_values": {
|
|
"type": "integer"
|
|
},
|
|
"max_values": {
|
|
"type": "integer"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"type"
|
|
]
|
|
},
|
|
"SelectMenuDefaultOption": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"channel",
|
|
"role",
|
|
"user"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"type"
|
|
]
|
|
},
|
|
"StringSelectMenuComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.StringSelect"
|
|
},
|
|
"options": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuOption"
|
|
}
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_types": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
},
|
|
"default_values": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuDefaultOption"
|
|
}
|
|
},
|
|
"min_values": {
|
|
"type": "integer"
|
|
},
|
|
"max_values": {
|
|
"type": "integer"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"options",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.StringSelect": {
|
|
"type": "number",
|
|
"const": 3
|
|
},
|
|
"SelectMenuOption": {
|
|
"type": "object",
|
|
"properties": {
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"default": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"label",
|
|
"value"
|
|
]
|
|
},
|
|
"TextInputComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.TextInput"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"style": {
|
|
"$ref": "#/definitions/TextInputStyle"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"min_length": {
|
|
"type": "integer"
|
|
},
|
|
"max_length": {
|
|
"type": "integer"
|
|
},
|
|
"required": {
|
|
"type": "boolean"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"label",
|
|
"style",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.TextInput": {
|
|
"type": "number",
|
|
"const": 4
|
|
},
|
|
"TextInputStyle": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"PollCreationSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"question": {
|
|
"$ref": "#/definitions/PollMedia"
|
|
},
|
|
"answers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/PollAnswer"
|
|
}
|
|
},
|
|
"duration": {
|
|
"type": "integer"
|
|
},
|
|
"allow_multiselect": {
|
|
"type": "boolean"
|
|
},
|
|
"layout_type": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"answers",
|
|
"question"
|
|
]
|
|
},
|
|
"PollMedia": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"PollAnswer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"answer_id": {
|
|
"type": "string"
|
|
},
|
|
"poll_media": {
|
|
"$ref": "#/definitions/PollMedia"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"poll_media"
|
|
]
|
|
},
|
|
"MessageInteractionSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/InteractionType"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"command_type": {
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4
|
|
],
|
|
"type": "number"
|
|
},
|
|
"ephemerality_reason": {
|
|
"type": "integer"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/PublicUser"
|
|
},
|
|
"authorizing_integration_owners": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true
|
|
},
|
|
"original_response_message_id": {
|
|
"description": "A container for useful snowflake-related methods.",
|
|
"$ref": "#/definitions/Snowflake"
|
|
},
|
|
"interacted_message_id": {
|
|
"description": "A container for useful snowflake-related methods.",
|
|
"$ref": "#/definitions/Snowflake"
|
|
},
|
|
"triggering_interaction_metadata": {
|
|
"$ref": "#/definitions/MessageInteractionSchema"
|
|
},
|
|
"target_user": {
|
|
"$ref": "#/definitions/PublicUser"
|
|
},
|
|
"target_message_id": {
|
|
"description": "A container for useful snowflake-related methods.",
|
|
"$ref": "#/definitions/Snowflake"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"type"
|
|
]
|
|
},
|
|
"InteractionType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5
|
|
]
|
|
},
|
|
"PublicUser": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```",
|
|
"type": "string"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_type": {
|
|
"type": "integer"
|
|
},
|
|
"theme_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"badge_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"discriminator",
|
|
"id",
|
|
"premium_since",
|
|
"premium_type",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
},
|
|
"Snowflake": {
|
|
"description": "A container for useful snowflake-related methods.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"PollCreationSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"question": {
|
|
"$ref": "#/definitions/PollMedia"
|
|
},
|
|
"answers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/PollAnswer"
|
|
}
|
|
},
|
|
"duration": {
|
|
"type": "integer"
|
|
},
|
|
"allow_multiselect": {
|
|
"type": "boolean"
|
|
},
|
|
"layout_type": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"answers",
|
|
"question"
|
|
],
|
|
"definitions": {
|
|
"PollMedia": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"PartialEmoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name"
|
|
]
|
|
},
|
|
"PollAnswer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"answer_id": {
|
|
"type": "string"
|
|
},
|
|
"poll_media": {
|
|
"$ref": "#/definitions/PollMedia"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"poll_media"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"MessageInteractionSchema": {
|
|
"$ref": "#/definitions/MessageInteractionSchema",
|
|
"definitions": {
|
|
"InteractionType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5
|
|
]
|
|
},
|
|
"PublicUser": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```",
|
|
"type": "string"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_type": {
|
|
"type": "integer"
|
|
},
|
|
"theme_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"badge_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"discriminator",
|
|
"id",
|
|
"premium_since",
|
|
"premium_type",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
},
|
|
"Snowflake": {
|
|
"description": "A container for useful snowflake-related methods.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"MessageInteractionSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/InteractionType"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"command_type": {
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4
|
|
],
|
|
"type": "number"
|
|
},
|
|
"ephemerality_reason": {
|
|
"type": "integer"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/PublicUser"
|
|
},
|
|
"authorizing_integration_owners": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true
|
|
},
|
|
"original_response_message_id": {
|
|
"description": "A container for useful snowflake-related methods.",
|
|
"$ref": "#/definitions/Snowflake"
|
|
},
|
|
"interacted_message_id": {
|
|
"description": "A container for useful snowflake-related methods.",
|
|
"$ref": "#/definitions/Snowflake"
|
|
},
|
|
"triggering_interaction_metadata": {
|
|
"$ref": "#/definitions/MessageInteractionSchema"
|
|
},
|
|
"target_user": {
|
|
"$ref": "#/definitions/PublicUser"
|
|
},
|
|
"target_message_id": {
|
|
"description": "A container for useful snowflake-related methods.",
|
|
"$ref": "#/definitions/Snowflake"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"type"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"MessageEditSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"embed": {
|
|
"$ref": "#/definitions/Embed"
|
|
},
|
|
"file": {
|
|
"type": "object",
|
|
"properties": {
|
|
"filename": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"filename"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"content": {
|
|
"type": "string"
|
|
},
|
|
"mobile_network_type": {
|
|
"type": "string"
|
|
},
|
|
"nonce": {
|
|
"type": "string"
|
|
},
|
|
"tts": {
|
|
"type": "boolean"
|
|
},
|
|
"embeds": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Embed"
|
|
}
|
|
},
|
|
"allowed_mentions": {
|
|
"type": "object",
|
|
"properties": {
|
|
"parse": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"users": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"replied_user": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"message_reference": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"fail_if_not_exists": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"message_id"
|
|
]
|
|
},
|
|
"payload_json": {
|
|
"type": "string"
|
|
},
|
|
"attachments": {
|
|
"description": "TODO: we should create an interface for attachments\nTODO: OpenWAAO<-->attachment-style metadata conversion",
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"filename": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"filename",
|
|
"id"
|
|
]
|
|
},
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"filename": {
|
|
"type": "string"
|
|
},
|
|
"uploaded_filename": {
|
|
"type": "string"
|
|
},
|
|
"original_content_type": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"filename",
|
|
"uploaded_filename"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"sticker_ids": {
|
|
"anyOf": [
|
|
{
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"components": {
|
|
"anyOf": [
|
|
{
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ActionRowComponent"
|
|
}
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"poll": {
|
|
"$ref": "#/definitions/PollCreationSchema"
|
|
},
|
|
"enforce_nonce": {
|
|
"type": "boolean"
|
|
},
|
|
"applied_tags": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"thread_name": {
|
|
"type": "string"
|
|
},
|
|
"avatar_url": {
|
|
"type": "string"
|
|
},
|
|
"interaction": {
|
|
"$ref": "#/definitions/MessageInteractionSchema"
|
|
},
|
|
"interaction_metadata": {
|
|
"$ref": "#/definitions/MessageInteractionSchema"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"definitions": {
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"ActionRowComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.ActionRow"
|
|
},
|
|
"components": {
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/ButtonComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/SelectMenuComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/StringSelectMenuComponent"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/TextInputComponent"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"components",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.ActionRow": {
|
|
"type": "number",
|
|
"const": 1
|
|
},
|
|
"ButtonComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.Button"
|
|
},
|
|
"style": {
|
|
"$ref": "#/definitions/ButtonStyle"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"sku_id": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"style",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.Button": {
|
|
"type": "number",
|
|
"const": 2
|
|
},
|
|
"ButtonStyle": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6
|
|
]
|
|
},
|
|
"PartialEmoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name"
|
|
]
|
|
},
|
|
"SelectMenuComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": [
|
|
3,
|
|
5,
|
|
6,
|
|
7,
|
|
8
|
|
],
|
|
"type": "number"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_types": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
},
|
|
"default_values": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuDefaultOption"
|
|
}
|
|
},
|
|
"min_values": {
|
|
"type": "integer"
|
|
},
|
|
"max_values": {
|
|
"type": "integer"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"type"
|
|
]
|
|
},
|
|
"SelectMenuDefaultOption": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"channel",
|
|
"role",
|
|
"user"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"type"
|
|
]
|
|
},
|
|
"StringSelectMenuComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.StringSelect"
|
|
},
|
|
"options": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuOption"
|
|
}
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_types": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
},
|
|
"default_values": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/SelectMenuDefaultOption"
|
|
}
|
|
},
|
|
"min_values": {
|
|
"type": "integer"
|
|
},
|
|
"max_values": {
|
|
"type": "integer"
|
|
},
|
|
"disabled": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"options",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.StringSelect": {
|
|
"type": "number",
|
|
"const": 3
|
|
},
|
|
"SelectMenuOption": {
|
|
"type": "object",
|
|
"properties": {
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
},
|
|
"default": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"label",
|
|
"value"
|
|
]
|
|
},
|
|
"TextInputComponent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/MessageComponentType.TextInput"
|
|
},
|
|
"custom_id": {
|
|
"type": "string"
|
|
},
|
|
"style": {
|
|
"$ref": "#/definitions/TextInputStyle"
|
|
},
|
|
"label": {
|
|
"type": "string"
|
|
},
|
|
"min_length": {
|
|
"type": "integer"
|
|
},
|
|
"max_length": {
|
|
"type": "integer"
|
|
},
|
|
"required": {
|
|
"type": "boolean"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"placeholder": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"custom_id",
|
|
"label",
|
|
"style",
|
|
"type"
|
|
]
|
|
},
|
|
"MessageComponentType.TextInput": {
|
|
"type": "number",
|
|
"const": 4
|
|
},
|
|
"TextInputStyle": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2
|
|
]
|
|
},
|
|
"PollCreationSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"question": {
|
|
"$ref": "#/definitions/PollMedia"
|
|
},
|
|
"answers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/PollAnswer"
|
|
}
|
|
},
|
|
"duration": {
|
|
"type": "integer"
|
|
},
|
|
"allow_multiselect": {
|
|
"type": "boolean"
|
|
},
|
|
"layout_type": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"answers",
|
|
"question"
|
|
]
|
|
},
|
|
"PollMedia": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"PollAnswer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"answer_id": {
|
|
"type": "string"
|
|
},
|
|
"poll_media": {
|
|
"$ref": "#/definitions/PollMedia"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"poll_media"
|
|
]
|
|
},
|
|
"MessageInteractionSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"$ref": "#/definitions/InteractionType"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"command_type": {
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4
|
|
],
|
|
"type": "number"
|
|
},
|
|
"ephemerality_reason": {
|
|
"type": "integer"
|
|
},
|
|
"user": {
|
|
"$ref": "#/definitions/PublicUser"
|
|
},
|
|
"authorizing_integration_owners": {
|
|
"type": "object",
|
|
"properties": {},
|
|
"additionalProperties": true
|
|
},
|
|
"original_response_message_id": {
|
|
"description": "A container for useful snowflake-related methods.",
|
|
"$ref": "#/definitions/Snowflake"
|
|
},
|
|
"interacted_message_id": {
|
|
"description": "A container for useful snowflake-related methods.",
|
|
"$ref": "#/definitions/Snowflake"
|
|
},
|
|
"triggering_interaction_metadata": {
|
|
"$ref": "#/definitions/MessageInteractionSchema"
|
|
},
|
|
"target_user": {
|
|
"$ref": "#/definitions/PublicUser"
|
|
},
|
|
"target_message_id": {
|
|
"description": "A container for useful snowflake-related methods.",
|
|
"$ref": "#/definitions/Snowflake"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"name",
|
|
"type"
|
|
]
|
|
},
|
|
"InteractionType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5
|
|
]
|
|
},
|
|
"PublicUser": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"description": "A Twitter-like snowflake, except the epoch is 2015-01-01T00:00:00.000Z\n```\nIf we have a snowflake '266241948824764416' we can represent it as binary:\n\n64 22 17 12 0\n 000000111011000111100001101001000101000000 00001 00000 000000000000\n number of ms since Discord epoch worker pid increment\n```",
|
|
"type": "string"
|
|
},
|
|
"premium_since": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"public_flags": {
|
|
"type": "integer"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": "string"
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"bot": {
|
|
"type": "boolean"
|
|
},
|
|
"premium_type": {
|
|
"type": "integer"
|
|
},
|
|
"theme_colors": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"badge_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"bio",
|
|
"bot",
|
|
"discriminator",
|
|
"id",
|
|
"premium_since",
|
|
"premium_type",
|
|
"public_flags",
|
|
"username"
|
|
]
|
|
},
|
|
"Snowflake": {
|
|
"description": "A container for useful snowflake-related methods.",
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"MfaCodesSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"password": {
|
|
"minLength": 1,
|
|
"maxLength": 72,
|
|
"type": "string"
|
|
},
|
|
"regenerate": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"password"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"ModifyGuildStickerSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"minLength": 2,
|
|
"maxLength": 30,
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"maxLength": 100,
|
|
"type": "string"
|
|
},
|
|
"tags": {
|
|
"maxLength": 200,
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"tags"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"PasswordResetSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"password": {
|
|
"minLength": 1,
|
|
"maxLength": 72,
|
|
"type": "string"
|
|
},
|
|
"token": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"password",
|
|
"token"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"PreloadMessagesRequestSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channels": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channels"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"PruneSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"days": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"days"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"PurgeSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"before": {
|
|
"type": "string"
|
|
},
|
|
"after": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"after",
|
|
"before"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"RefreshUrlsRequestSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"attachment_urls": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"attachment_urls"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"RegisterSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"minLength": 2,
|
|
"type": "string"
|
|
},
|
|
"password": {
|
|
"minLength": 1,
|
|
"maxLength": 72,
|
|
"type": "string"
|
|
},
|
|
"consent": {
|
|
"type": "boolean"
|
|
},
|
|
"email": {
|
|
"format": "email",
|
|
"type": "string"
|
|
},
|
|
"fingerprint": {
|
|
"type": "string"
|
|
},
|
|
"invite": {
|
|
"type": "string"
|
|
},
|
|
"date_of_birth": {
|
|
"type": "string"
|
|
},
|
|
"gift_code_sku_id": {
|
|
"type": "string"
|
|
},
|
|
"captcha_key": {
|
|
"type": "string"
|
|
},
|
|
"promotional_email_opt_in": {
|
|
"type": "boolean"
|
|
},
|
|
"unique_username_registration": {
|
|
"type": "boolean"
|
|
},
|
|
"global_name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"consent",
|
|
"username"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"RelationshipPostSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"discriminator": {
|
|
"type": "string"
|
|
},
|
|
"username": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"discriminator",
|
|
"username"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"RelationshipPutSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4
|
|
],
|
|
"type": "number"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"RequestGuildMembersSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"guild_id": {
|
|
"anyOf": [
|
|
{
|
|
"type": "array",
|
|
"items": [
|
|
{
|
|
"type": "string"
|
|
}
|
|
],
|
|
"minItems": 1,
|
|
"maxItems": 1
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"query": {
|
|
"type": "string"
|
|
},
|
|
"limit": {
|
|
"type": "integer"
|
|
},
|
|
"presences": {
|
|
"type": "boolean"
|
|
},
|
|
"user_ids": {
|
|
"anyOf": [
|
|
{
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"nonce": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"guild_id"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"RoleModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"permissions": {
|
|
"type": "string"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"hoist": {
|
|
"type": "boolean"
|
|
},
|
|
"mentionable": {
|
|
"type": "boolean"
|
|
},
|
|
"position": {
|
|
"type": "integer"
|
|
},
|
|
"icon": {
|
|
"type": "string"
|
|
},
|
|
"unicode_emoji": {
|
|
"type": "string"
|
|
},
|
|
"colors": {
|
|
"type": "object",
|
|
"properties": {
|
|
"primary_color": {
|
|
"type": "integer"
|
|
},
|
|
"secondary_color": {
|
|
"type": [
|
|
"null",
|
|
"integer"
|
|
]
|
|
},
|
|
"tertiary_color": {
|
|
"type": [
|
|
"null",
|
|
"integer"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"primary_color"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"RolePositionUpdateSchema": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"position": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"id",
|
|
"position"
|
|
]
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"SelectProtocolSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"protocol": {
|
|
"enum": [
|
|
"udp",
|
|
"webrtc"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"data": {
|
|
"anyOf": [
|
|
{
|
|
"type": "object",
|
|
"properties": {
|
|
"address": {
|
|
"type": "string"
|
|
},
|
|
"port": {
|
|
"type": "integer"
|
|
},
|
|
"mode": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"address",
|
|
"mode",
|
|
"port"
|
|
]
|
|
},
|
|
{
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"sdp": {
|
|
"type": "string"
|
|
},
|
|
"codecs": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"enum": [
|
|
"H264",
|
|
"VP8",
|
|
"VP9",
|
|
"opus"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"audio",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"priority": {
|
|
"type": "integer"
|
|
},
|
|
"payload_type": {
|
|
"type": "integer"
|
|
},
|
|
"rtx_payload_type": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"payload_type",
|
|
"priority",
|
|
"type"
|
|
]
|
|
}
|
|
},
|
|
"rtc_connection_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"data",
|
|
"protocol"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"SettingsProtoUpdateSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"settings": {
|
|
"type": "string"
|
|
},
|
|
"required_data_version": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"settings"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"SettingsProtoUpdateJsonSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"settings": {
|
|
"$ref": "#/definitions/JsonValue"
|
|
},
|
|
"required_data_version": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"settings"
|
|
],
|
|
"definitions": {
|
|
"JsonValue": {
|
|
"description": "Represents any possible JSON value:\n- number\n- string\n- boolean\n- null\n- object (with any JSON value as property)\n- array (with any JSON value as element)",
|
|
"anyOf": [
|
|
{
|
|
"description": "Represents a JSON object.",
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"$ref": "#/definitions/JsonValue"
|
|
}
|
|
},
|
|
{
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"patternProperties": {
|
|
"^[0-9]+$": {
|
|
"$ref": "#/definitions/JsonValue"
|
|
}
|
|
},
|
|
"properties": {
|
|
"length": {
|
|
"type": "integer"
|
|
},
|
|
"__@unscopables@700": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"patternProperties": {
|
|
"^[0-9]+$": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"properties": {
|
|
"length": {
|
|
"type": "boolean"
|
|
},
|
|
"toString": {
|
|
"type": "boolean"
|
|
},
|
|
"toLocaleString": {
|
|
"type": "boolean"
|
|
},
|
|
"pop": {
|
|
"type": "boolean"
|
|
},
|
|
"push": {
|
|
"type": "boolean"
|
|
},
|
|
"concat": {
|
|
"type": "boolean"
|
|
},
|
|
"join": {
|
|
"type": "boolean"
|
|
},
|
|
"reverse": {
|
|
"type": "boolean"
|
|
},
|
|
"shift": {
|
|
"type": "boolean"
|
|
},
|
|
"slice": {
|
|
"type": "boolean"
|
|
},
|
|
"sort": {
|
|
"type": "boolean"
|
|
},
|
|
"splice": {
|
|
"type": "boolean"
|
|
},
|
|
"unshift": {
|
|
"type": "boolean"
|
|
},
|
|
"indexOf": {
|
|
"type": "boolean"
|
|
},
|
|
"lastIndexOf": {
|
|
"type": "boolean"
|
|
},
|
|
"every": {
|
|
"type": "boolean"
|
|
},
|
|
"some": {
|
|
"type": "boolean"
|
|
},
|
|
"forEach": {
|
|
"type": "boolean"
|
|
},
|
|
"map": {
|
|
"type": "boolean"
|
|
},
|
|
"filter": {
|
|
"type": "boolean"
|
|
},
|
|
"reduce": {
|
|
"type": "boolean"
|
|
},
|
|
"reduceRight": {
|
|
"type": "boolean"
|
|
},
|
|
"find": {
|
|
"type": "boolean"
|
|
},
|
|
"findIndex": {
|
|
"type": "boolean"
|
|
},
|
|
"fill": {
|
|
"type": "boolean"
|
|
},
|
|
"copyWithin": {
|
|
"type": "boolean"
|
|
},
|
|
"entries": {
|
|
"type": "boolean"
|
|
},
|
|
"keys": {
|
|
"type": "boolean"
|
|
},
|
|
"values": {
|
|
"type": "boolean"
|
|
},
|
|
"includes": {
|
|
"type": "boolean"
|
|
},
|
|
"flatMap": {
|
|
"type": "boolean"
|
|
},
|
|
"flat": {
|
|
"type": "boolean"
|
|
},
|
|
"at": {
|
|
"type": "boolean"
|
|
},
|
|
"findLast": {
|
|
"type": "boolean"
|
|
},
|
|
"findLastIndex": {
|
|
"type": "boolean"
|
|
},
|
|
"toReversed": {
|
|
"type": "boolean"
|
|
},
|
|
"toSorted": {
|
|
"type": "boolean"
|
|
},
|
|
"toSpliced": {
|
|
"type": "boolean"
|
|
},
|
|
"with": {
|
|
"type": "boolean"
|
|
},
|
|
"remove": {
|
|
"type": "boolean"
|
|
},
|
|
"__@iterator@698": {
|
|
"type": "boolean"
|
|
},
|
|
"__@unscopables@700": {
|
|
"type": "boolean"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"__@unscopables@700",
|
|
"length"
|
|
]
|
|
},
|
|
{
|
|
"type": [
|
|
"null",
|
|
"string",
|
|
"integer",
|
|
"boolean"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"TeamCreateSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"TemplateCreateSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"TemplateModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"TotpDisableSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"minLength": 6,
|
|
"maxLength": 6,
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"code"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"TotpEnableSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"password": {
|
|
"minLength": 1,
|
|
"maxLength": 72,
|
|
"type": "string"
|
|
},
|
|
"code": {
|
|
"minLength": 6,
|
|
"maxLength": 6,
|
|
"type": "string"
|
|
},
|
|
"secret": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"password"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"TotpSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "string"
|
|
},
|
|
"ticket": {
|
|
"type": "string"
|
|
},
|
|
"gift_code_sku_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"login_source": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"code",
|
|
"ticket"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"UploadAttachmentRequestSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"files": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/UploadAttachmentRequest"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"files"
|
|
],
|
|
"definitions": {
|
|
"UploadAttachmentRequest": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"filename": {
|
|
"type": "string"
|
|
},
|
|
"file_size": {
|
|
"type": "integer"
|
|
},
|
|
"is_clip": {
|
|
"type": "boolean"
|
|
},
|
|
"original_content_type": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"file_size",
|
|
"filename"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"UserDeleteSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"user_id"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"UserGuildSettingsSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"channel_overrides": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"$ref": "#/definitions/ChannelOverride"
|
|
}
|
|
},
|
|
"version": {
|
|
"type": "integer"
|
|
},
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mobile_push": {
|
|
"type": "boolean"
|
|
},
|
|
"mute_config": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress_everyone": {
|
|
"type": "boolean"
|
|
},
|
|
"suppress_roles": {
|
|
"type": "boolean"
|
|
},
|
|
"guild_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"mute_scheduled_events": {
|
|
"type": "boolean"
|
|
},
|
|
"hide_muted_channels": {
|
|
"type": "boolean"
|
|
},
|
|
"notify_highlights": {
|
|
"const": 0,
|
|
"type": "number"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"definitions": {
|
|
"ChannelOverride": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_notifications": {
|
|
"type": "integer"
|
|
},
|
|
"mute_config": {
|
|
"$ref": "#/definitions/MuteConfig"
|
|
},
|
|
"muted": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_id",
|
|
"message_notifications",
|
|
"mute_config",
|
|
"muted"
|
|
]
|
|
},
|
|
"MuteConfig": {
|
|
"type": "object",
|
|
"properties": {
|
|
"end_time": {
|
|
"type": "integer"
|
|
},
|
|
"selected_time_window": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"end_time",
|
|
"selected_time_window"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"UserModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"username": {
|
|
"minLength": 2,
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": "integer"
|
|
},
|
|
"banner": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"password": {
|
|
"minLength": 1,
|
|
"maxLength": 72,
|
|
"type": "string"
|
|
},
|
|
"new_password": {
|
|
"minLength": 1,
|
|
"maxLength": 72,
|
|
"type": "string"
|
|
},
|
|
"code": {
|
|
"minLength": 6,
|
|
"maxLength": 6,
|
|
"type": "string"
|
|
},
|
|
"email": {
|
|
"format": "email",
|
|
"type": "string"
|
|
},
|
|
"discriminator": {
|
|
"minLength": 4,
|
|
"maxLength": 4,
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"UserNoteUpdateSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"note": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"note"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"UserProfileModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"bio": {
|
|
"type": "string"
|
|
},
|
|
"accent_color": {
|
|
"type": [
|
|
"null",
|
|
"integer"
|
|
]
|
|
},
|
|
"banner": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"pronouns": {
|
|
"type": "string"
|
|
},
|
|
"theme_colors": {
|
|
"items": [
|
|
{
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"type": "integer"
|
|
}
|
|
],
|
|
"type": "array",
|
|
"minItems": 2,
|
|
"maxItems": 2
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"VanityUrlSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"minLength": 1,
|
|
"maxLength": 20,
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"VerifyEmailSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"captcha_key": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"token": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"token"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"VoiceStateUpdateSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"self_mute": {
|
|
"type": "boolean"
|
|
},
|
|
"self_deaf": {
|
|
"type": "boolean"
|
|
},
|
|
"self_video": {
|
|
"type": "boolean"
|
|
},
|
|
"preferred_region": {
|
|
"type": "string"
|
|
},
|
|
"request_to_speak_timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"suppress": {
|
|
"type": "boolean"
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"self_deaf",
|
|
"self_mute"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"GenerateWebAuthnCredentialsSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"password": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"password"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"CreateWebAuthnCredentialSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"credential": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"ticket": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"credential",
|
|
"name",
|
|
"ticket"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"WebAuthnPostSchema": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/GenerateWebAuthnCredentialsSchema"
|
|
},
|
|
{
|
|
"$ref": "#/definitions/CreateWebAuthnCredentialSchema"
|
|
}
|
|
],
|
|
"definitions": {
|
|
"GenerateWebAuthnCredentialsSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"password": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"password"
|
|
]
|
|
},
|
|
"CreateWebAuthnCredentialSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"credential": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"ticket": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"credential",
|
|
"name",
|
|
"ticket"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"WebAuthnTotpSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "string"
|
|
},
|
|
"ticket": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"code",
|
|
"ticket"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"WebhookCreateSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"maxLength": 80,
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"WebhookExecuteSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"content": {
|
|
"type": "string"
|
|
},
|
|
"username": {
|
|
"type": "string"
|
|
},
|
|
"avatar_url": {
|
|
"type": "string"
|
|
},
|
|
"tts": {
|
|
"type": "boolean"
|
|
},
|
|
"embeds": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/Embed"
|
|
}
|
|
},
|
|
"allowed_mentions": {
|
|
"type": "object",
|
|
"properties": {
|
|
"parse": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"users": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"replied_user": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"components": {
|
|
"type": "array",
|
|
"items": {}
|
|
},
|
|
"file": {
|
|
"type": "object",
|
|
"properties": {
|
|
"filename": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"filename"
|
|
]
|
|
},
|
|
"payload_json": {
|
|
"type": "string"
|
|
},
|
|
"attachments": {
|
|
"description": "TODO: we should create an interface for attachments\nTODO: OpenWAAO<-->attachment-style metadata conversion",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"filename": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"filename",
|
|
"id"
|
|
]
|
|
}
|
|
},
|
|
"flags": {
|
|
"type": "integer"
|
|
},
|
|
"thread_name": {
|
|
"type": "string"
|
|
},
|
|
"applied_tags": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"message_reference": {
|
|
"type": "object",
|
|
"properties": {
|
|
"message_id": {
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
},
|
|
"guild_id": {
|
|
"type": "string"
|
|
},
|
|
"fail_if_not_exists": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"message_id"
|
|
]
|
|
},
|
|
"sticker_ids": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"nonce": {
|
|
"type": "string"
|
|
},
|
|
"enforce_nonce": {
|
|
"type": "boolean"
|
|
},
|
|
"poll": {
|
|
"$ref": "#/definitions/PollCreationSchema"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"definitions": {
|
|
"Embed": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"article",
|
|
"gifv",
|
|
"image",
|
|
"link",
|
|
"rich",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"timestamp": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"color": {
|
|
"type": "integer"
|
|
},
|
|
"footer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"text"
|
|
]
|
|
},
|
|
"image": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"thumbnail": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"video": {
|
|
"$ref": "#/definitions/EmbedImage"
|
|
},
|
|
"provider": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"author": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"icon_url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_icon_url": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"fields": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": "string"
|
|
},
|
|
"inline": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"EmbedImage": {
|
|
"type": "object",
|
|
"properties": {
|
|
"url": {
|
|
"type": "string"
|
|
},
|
|
"proxy_url": {
|
|
"type": "string"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"PollCreationSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"question": {
|
|
"$ref": "#/definitions/PollMedia"
|
|
},
|
|
"answers": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/PollAnswer"
|
|
}
|
|
},
|
|
"duration": {
|
|
"type": "integer"
|
|
},
|
|
"allow_multiselect": {
|
|
"type": "boolean"
|
|
},
|
|
"layout_type": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"answers",
|
|
"question"
|
|
]
|
|
},
|
|
"PollMedia": {
|
|
"type": "object",
|
|
"properties": {
|
|
"text": {
|
|
"type": "string"
|
|
},
|
|
"emoji": {
|
|
"$ref": "#/definitions/PartialEmoji"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"PartialEmoji": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"animated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name"
|
|
]
|
|
},
|
|
"PollAnswer": {
|
|
"type": "object",
|
|
"properties": {
|
|
"answer_id": {
|
|
"type": "string"
|
|
},
|
|
"poll_media": {
|
|
"$ref": "#/definitions/PollMedia"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"poll_media"
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"WebhookUpdateSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"avatar": {
|
|
"type": "string"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"WidgetModifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"enabled": {
|
|
"type": "boolean"
|
|
},
|
|
"channel_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"channel_id",
|
|
"enabled"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"DeviceNotificationSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"provider": {
|
|
"$ref": "#/definitions/PushProvider"
|
|
},
|
|
"token": {
|
|
"type": "string"
|
|
},
|
|
"voip_provider": {
|
|
"enum": [
|
|
"apns",
|
|
"apns_internal",
|
|
"apns_internal_voip",
|
|
"apns_voip",
|
|
"gcm",
|
|
"webpush"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"voip_token": {
|
|
"type": "string"
|
|
},
|
|
"webpush_subscription": {
|
|
"type": "object",
|
|
"properties": {
|
|
"endpoint": {
|
|
"minLength": 1,
|
|
"maxLength": 2048,
|
|
"type": "string"
|
|
},
|
|
"expirationTime": {
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
"keys": {
|
|
"type": "object",
|
|
"properties": {
|
|
"p256dh": {
|
|
"minLength": 1,
|
|
"maxLength": 256,
|
|
"type": "string"
|
|
},
|
|
"auth": {
|
|
"minLength": 1,
|
|
"maxLength": 256,
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"auth",
|
|
"p256dh"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"endpoint",
|
|
"keys"
|
|
]
|
|
},
|
|
"bypass_server_throttling_supported": {
|
|
"type": "boolean"
|
|
},
|
|
"bundle_id": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"provider"
|
|
],
|
|
"definitions": {
|
|
"PushProvider": {
|
|
"enum": [
|
|
"apns",
|
|
"apns_internal",
|
|
"apns_internal_voip",
|
|
"apns_voip",
|
|
"gcm",
|
|
"webpush"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"VoiceIdentifySchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"server_id": {
|
|
"type": "string"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"session_id": {
|
|
"type": "string"
|
|
},
|
|
"token": {
|
|
"type": "string"
|
|
},
|
|
"video": {
|
|
"type": "boolean"
|
|
},
|
|
"streams": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": [
|
|
"audio",
|
|
"screen",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"rid": {
|
|
"type": "string"
|
|
},
|
|
"quality": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"quality",
|
|
"rid",
|
|
"type"
|
|
]
|
|
}
|
|
},
|
|
"max_secure_frames_version": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"server_id",
|
|
"session_id",
|
|
"token",
|
|
"user_id"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"VoiceVideoSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"audio_ssrc": {
|
|
"type": "integer"
|
|
},
|
|
"video_ssrc": {
|
|
"type": "integer"
|
|
},
|
|
"rtx_ssrc": {
|
|
"type": "integer"
|
|
},
|
|
"user_id": {
|
|
"type": "string"
|
|
},
|
|
"streams": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": [
|
|
"audio",
|
|
"screen",
|
|
"video"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"rid": {
|
|
"type": "string"
|
|
},
|
|
"ssrc": {
|
|
"type": "integer"
|
|
},
|
|
"active": {
|
|
"type": "boolean"
|
|
},
|
|
"quality": {
|
|
"type": "integer"
|
|
},
|
|
"rtx_ssrc": {
|
|
"type": "integer"
|
|
},
|
|
"max_bitrate": {
|
|
"type": "integer"
|
|
},
|
|
"scale_resolution_down_by": {
|
|
"type": "integer"
|
|
},
|
|
"max_framerate": {
|
|
"type": "integer"
|
|
},
|
|
"max_resolution": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"width": {
|
|
"type": "integer"
|
|
},
|
|
"height": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"height",
|
|
"type",
|
|
"width"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"max_bitrate",
|
|
"max_framerate",
|
|
"max_resolution",
|
|
"quality",
|
|
"rid",
|
|
"rtx_ssrc",
|
|
"ssrc",
|
|
"type"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"audio_ssrc",
|
|
"video_ssrc"
|
|
],
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"ApplicationCommandCreateSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4
|
|
],
|
|
"type": "number"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"name_localizations": {
|
|
"$ref": "#/definitions/Record<string,string>"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"description_localizations": {
|
|
"$ref": "#/definitions/Record<string,string>"
|
|
},
|
|
"options": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ApplicationCommandOption"
|
|
}
|
|
},
|
|
"default_member_permissions": {
|
|
"type": "string"
|
|
},
|
|
"dm_permission": {
|
|
"type": "boolean"
|
|
},
|
|
"nsfw": {
|
|
"type": "boolean"
|
|
},
|
|
"integration_types": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ApplicationIntegrationType"
|
|
}
|
|
},
|
|
"contexts": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/InteractionContextType"
|
|
}
|
|
},
|
|
"handler": {
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3
|
|
],
|
|
"type": "number"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name"
|
|
],
|
|
"definitions": {
|
|
"Record<string,string>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"ApplicationCommandOption": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/ApplicationCommandOptionType"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"required": {
|
|
"type": "boolean"
|
|
},
|
|
"choices": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ApplicationCommandOptionChoice"
|
|
}
|
|
},
|
|
"options": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ApplicationCommandOption"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"description",
|
|
"name",
|
|
"type"
|
|
]
|
|
},
|
|
"ApplicationCommandOptionType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8
|
|
]
|
|
},
|
|
"ApplicationCommandOptionChoice": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": [
|
|
"string",
|
|
"integer"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
},
|
|
"ApplicationIntegrationType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1
|
|
]
|
|
},
|
|
"InteractionContextType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
},
|
|
"BulkApplicationCommandCreateSchema": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ApplicationCommandCreateSchema"
|
|
},
|
|
"definitions": {
|
|
"ApplicationCommandCreateSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4
|
|
],
|
|
"type": "number"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"name_localizations": {
|
|
"$ref": "#/definitions/Record<string,string>"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"description_localizations": {
|
|
"$ref": "#/definitions/Record<string,string>"
|
|
},
|
|
"options": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ApplicationCommandOption"
|
|
}
|
|
},
|
|
"default_member_permissions": {
|
|
"type": "string"
|
|
},
|
|
"dm_permission": {
|
|
"type": "boolean"
|
|
},
|
|
"nsfw": {
|
|
"type": "boolean"
|
|
},
|
|
"integration_types": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ApplicationIntegrationType"
|
|
}
|
|
},
|
|
"contexts": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/InteractionContextType"
|
|
}
|
|
},
|
|
"handler": {
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3
|
|
],
|
|
"type": "number"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name"
|
|
]
|
|
},
|
|
"Record<string,string>": {
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"ApplicationCommandOption": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"$ref": "#/definitions/ApplicationCommandOptionType"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"required": {
|
|
"type": "boolean"
|
|
},
|
|
"choices": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ApplicationCommandOptionChoice"
|
|
}
|
|
},
|
|
"options": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/ApplicationCommandOption"
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"description",
|
|
"name",
|
|
"type"
|
|
]
|
|
},
|
|
"ApplicationCommandOptionType": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5,
|
|
6,
|
|
7,
|
|
8
|
|
]
|
|
},
|
|
"ApplicationCommandOptionChoice": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"value": {
|
|
"type": [
|
|
"string",
|
|
"integer"
|
|
]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"name",
|
|
"value"
|
|
]
|
|
},
|
|
"ApplicationIntegrationType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1
|
|
]
|
|
},
|
|
"InteractionContextType": {
|
|
"type": "number",
|
|
"enum": [
|
|
0,
|
|
1,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
}
|
|
} |