From d028a785feeae21764fcd5ca81191e364d2ef3a8 Mon Sep 17 00:00:00 2001 From: greysilly7 Date: Sat, 17 Aug 2024 00:59:57 -0400 Subject: [PATCH 01/16] Fix: Logins Failing due to null client_status --- src/gateway/opcodes/Identify.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gateway/opcodes/Identify.ts b/src/gateway/opcodes/Identify.ts index e30a1ee0..c535cd45 100644 --- a/src/gateway/opcodes/Identify.ts +++ b/src/gateway/opcodes/Identify.ts @@ -126,6 +126,7 @@ export async function onIdentify(this: WebSocket, data: Payload) { os: identify.properties?.os || identify.properties?.$os, version: 0, }, + client_status: {}, activities: identify.presence?.activities, // TODO: validation }); From af36ea0bb5e5d168e3b3a2fee271e0053a43a73d Mon Sep 17 00:00:00 2001 From: Cyber Date: Sat, 17 Aug 2024 11:22:37 +0200 Subject: [PATCH 02/16] fix: allow array in op 8 --- src/gateway/opcodes/RequestGuildMembers.ts | 9 ++++++--- src/util/schemas/RequestGuildMembersSchema.ts | 4 ++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/gateway/opcodes/RequestGuildMembers.ts b/src/gateway/opcodes/RequestGuildMembers.ts index d294f4d3..c84bf893 100644 --- a/src/gateway/opcodes/RequestGuildMembers.ts +++ b/src/gateway/opcodes/RequestGuildMembers.ts @@ -47,7 +47,10 @@ export async function onRequestGuildMembers(this: WebSocket, { d }: Payload) { if ((query || (user_ids && user_ids.length > 0)) && (!limit || limit > 100)) limit = 100; - const permissions = await getPermission(this.user_id, guild_id); + const permissions = await getPermission( + this.user_id, + Array.isArray(guild_id) ? guild_id[0] : guild_id, + ); permissions.hasThrow("VIEW_CHANNEL"); const whereQuery: FindManyOptions["where"] = {}; @@ -62,7 +65,7 @@ export async function onRequestGuildMembers(this: WebSocket, { d }: Payload) { const memberFind: FindManyOptions = { where: { ...whereQuery, - guild_id, + guild_id: Array.isArray(guild_id) ? guild_id[0] : guild_id, }, relations: ["user", "roles"], }; @@ -70,7 +73,7 @@ export async function onRequestGuildMembers(this: WebSocket, { d }: Payload) { const members = await Member.find(memberFind); const baseData = { - guild_id, + guild_id: Array.isArray(guild_id) ? guild_id[0] : guild_id, nonce, }; diff --git a/src/util/schemas/RequestGuildMembersSchema.ts b/src/util/schemas/RequestGuildMembersSchema.ts index 01ba4f2e..8271a453 100644 --- a/src/util/schemas/RequestGuildMembersSchema.ts +++ b/src/util/schemas/RequestGuildMembersSchema.ts @@ -17,7 +17,7 @@ */ export interface RequestGuildMembersSchema { - guild_id: string; + guild_id: string | string[]; query?: string; limit?: number; presences?: boolean; @@ -26,7 +26,7 @@ export interface RequestGuildMembersSchema { } export const RequestGuildMembersSchema = { - guild_id: String, + guild_id: [] as string | string[], $query: String, $limit: Number, $presences: Boolean, From 601a9d535b137a2912dad39789e074c92194b8b7 Mon Sep 17 00:00:00 2001 From: Cyber Date: Sat, 17 Aug 2024 11:40:34 +0200 Subject: [PATCH 03/16] regenerate openapi.json --- assets/openapi.json | 80 +++++++++++++++++++ hashes.json | 4 +- src/util/schemas/RequestGuildMembersSchema.ts | 2 +- 3 files changed, 83 insertions(+), 3 deletions(-) diff --git a/assets/openapi.json b/assets/openapi.json index 50d4fca1..2af0a2c7 100644 --- a/assets/openapi.json +++ b/assets/openapi.json @@ -16619,6 +16619,86 @@ ] } }, + "/channels/{channel_id}/messages/{message_id}/reactions/{emoji}/{burst}/{user_id}": { + "delete": { + "security": [ + { + "bearer": [] + } + ], + "responses": { + "204": { + "description": "No description available" + }, + "400": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIErrorResponse" + } + } + } + }, + "403": { + "description": "No description available" + }, + "404": { + "description": "No description available" + } + }, + "parameters": [ + { + "name": "channel_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "channel_id" + }, + { + "name": "message_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "message_id" + }, + { + "name": "emoji", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "emoji" + }, + { + "name": "burst", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "burst" + }, + { + "name": "user_id", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "description": "user_id" + } + ], + "tags": [ + "channels" + ] + } + }, "/channels/{channel_id}/messages/{message_id}/": { "patch": { "x-right-required": "SEND_MESSAGES", diff --git a/hashes.json b/hashes.json index aa59cb91..52864e4b 100644 --- a/hashes.json +++ b/hashes.json @@ -1,3 +1,3 @@ { - "npmDepsHash": "sha256-kdS1SwcBu6Dor92iO1ickLgz0T5UL16nyA49xXGajf4=" -} \ No newline at end of file + "npmDepsHash": "sha256-kdS1SwcBu6Dor92iO1ickLgz0T5UL16nyA49xXGajf4=" +} diff --git a/src/util/schemas/RequestGuildMembersSchema.ts b/src/util/schemas/RequestGuildMembersSchema.ts index 8271a453..6909ba85 100644 --- a/src/util/schemas/RequestGuildMembersSchema.ts +++ b/src/util/schemas/RequestGuildMembersSchema.ts @@ -17,7 +17,7 @@ */ export interface RequestGuildMembersSchema { - guild_id: string | string[]; + guild_id: string | [string]; query?: string; limit?: number; presences?: boolean; From 4468c989fb48d42bd5d402fc4ba68de306fa6919 Mon Sep 17 00:00:00 2001 From: Cyber Date: Sat, 17 Aug 2024 12:13:29 +0200 Subject: [PATCH 04/16] regenerate schema.json --- assets/schemas.json | 72881 ++---------------------------------------- 1 file changed, 2964 insertions(+), 69917 deletions(-) diff --git a/assets/schemas.json b/assets/schemas.json index a3db68f8..05a63902 100644 --- a/assets/schemas.json +++ b/assets/schemas.json @@ -32,9732 +32,6 @@ ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "DiagnosticsChannel.Response": { - "type": "object", - "properties": { - "statusCode": { - "type": "integer" - }, - "statusText": { - "type": "string" - }, - "headers": { - "type": "array", - "items": { - "type": "object", - "additionalProperties": false, - "patternProperties": { - "^[0-9]+$": { - "type": "integer" - } - } - } - } - }, - "additionalProperties": false, - "required": [ - "headers", - "statusCode", - "statusText" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "_Response": { - "type": "object", - "properties": { - "headers": { - "$ref": "#/definitions/Headers" - }, - "ok": { - "type": "boolean" - }, - "status": { - "type": "integer" - }, - "statusText": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/ResponseType" - }, - "url": { - "type": "string" - }, - "redirected": { - "type": "boolean" - }, - "body": { - "anyOf": [ - { - "$ref": "#/definitions/ReadableStream" - }, - { - "type": "null" - } - ] - }, - "bodyUsed": { - "type": "boolean" - }, - "arrayBuffer": { - "type": "object", - "additionalProperties": false - }, - "blob": { - "type": "object", - "additionalProperties": false - }, - "formData": { - "type": "object", - "additionalProperties": false - }, - "json": { - "type": "object", - "additionalProperties": false - }, - "text": { - "type": "object", - "additionalProperties": false - }, - "clone": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "arrayBuffer", - "blob", - "body", - "bodyUsed", - "clone", - "formData", - "headers", - "json", - "ok", - "redirected", - "status", - "statusText", - "text", - "type", - "url" - ], - "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, - "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" - ] - }, - "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 - }, - "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": { - "enum": [ - 0, - 1, - 2, - 4, - 5 - ], - "type": "number" - }, - "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", - "enum": [ - 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", - "enum": [ - 2 - ] - }, - "ButtonStyle": { - "enum": [ - 1, - 2, - 3, - 4, - 5, - 6 - ], - "type": "number" - }, - "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", - "enum": [ - 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", - "enum": [ - 4 - ] - }, - "TextInputStyle": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "Guild": { - "type": "object", - "properties": { - "afk_channel_id": { - "type": "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": "string" - }, - "public_updates_channel": { - "$ref": "#/definitions/Channel" - }, - "rules_channel_id": { - "type": "string" - }, - "rules_channel": { - "type": "string" - }, - "region": { - "type": "string" - }, - "splash": { - "type": "string" - }, - "system_channel_id": { - "type": "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" - }, - "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", - "default_thread_rate_limit_per_user", - "flags", - "id", - "nsfw", - "owner", - "parent_id", - "position", - "type" - ] - }, - "ChannelType": { - "enum": [ - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 2, - 255, - 3, - 33, - 34, - 35, - 4, - 5, - 6, - 64, - 7, - 8, - 9 - ], - "type": "number" - }, - "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", - "settings", - "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" - ] - }, - "ClientStatus": { - "type": "object", - "properties": { - "desktop": { - "type": "string" - }, - "mobile": { - "type": "string" - }, - "web": { - "type": "string" - }, - "embedded": { - "type": "string" - } - }, - "additionalProperties": false - }, - "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": { - "enum": [ - 1, - 2, - 3, - 4 - ], - "type": "number" - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "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": { - "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" - } - }, - "additionalProperties": false, - "required": [ - "message_id" - ] - }, - "referenced_message": { - "$ref": "#/definitions/Message" - }, - "interaction": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/InteractionType" - }, - "name": { - "type": "string" - }, - "user_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "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", - "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" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "color", - "flags", - "guild", - "guild_id", - "hoist", - "id", - "managed", - "mentionable", - "name", - "permissions", - "position" - ] - }, - "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": "number", - "enum": [ - 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" - ] - }, - "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": { - "enum": [ - 1, - 2, - 3 - ], - "type": "number" - }, - "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" - }, - "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" - } - }, - "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", - "team", - "team_id", - "user", - "user_id" - ] - }, - "TeamMemberState": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "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": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "StickerFormatType": { - "enum": [ - 0, - 1, - 2, - 3 - ], - "type": "number" - }, - "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" - ] - }, - "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" - ] - }, - "MessageType": { - "enum": [ - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 19, - 2, - 20, - 255, - 3, - 4, - 41, - 42, - 43, - 5, - 50, - 6, - 63, - 7, - 8, - 9 - ], - "type": "number" - }, - "InteractionType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, - "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" - ] - }, - "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" - ] - }, - "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", - "enum": [ - true - ] - } - }, - "additionalProperties": false, - "required": [ - "attachments", - "author", - "channel_id", - "components", - "edited_timestamp", - "embeds", - "flags", - "hit", - "id", - "mention_roles", - "mentions", - "pinned", - "poll", - "timestamp", - "tts", - "type" - ] - }, - "PublicUser": { - "type": "object", - "properties": { - "id": { - "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" - ] - }, - "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" - ] - }, - "Snowflake": { - "description": "A container for useful snowflake-related methods.", - "type": "object", - "additionalProperties": false - }, - "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" - ] - }, - "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" - ] - }, - "APIGuild": { - "type": "object", - "properties": { - "reload": { - "description": "Reloads entity data from the database.", - "type": "object", - "additionalProperties": false - }, - "name": { - "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" - } - }, - "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 - }, - "remove": { - "description": "Removes current entity from the database.", - "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" - }, - "description": { - "type": "string" - }, - "unavailable": { - "type": "boolean" - }, - "channels": { - "type": "array", - "items": { - "$ref": "#/definitions/Channel" - } - }, - "region": { - "type": "string" - }, - "system_channel_id": { - "type": "string" - }, - "rules_channel_id": { - "type": "string" - }, - "afk_timeout": { - "type": "integer" - }, - "explicit_content_filter": { - "type": "integer" - }, - "afk_channel_id": { - "type": "string" - }, - "bans": { - "type": "array", - "items": { - "$ref": "#/definitions/Ban" - } - }, - "default_message_notifications": { - "type": "integer" - }, - "discovery_splash": { - "type": "string" - }, - "features": { - "type": "array", - "items": { - "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" - }, - "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" - }, - "preferred_locale": { - "type": "string" - }, - "premium_subscription_count": { - "type": "integer" - }, - "premium_tier": { - "type": "integer" - }, - "public_updates_channel_id": { - "type": "string" - }, - "splash": { - "type": "string" - }, - "system_channel_flags": { - "type": "integer" - }, - "verification_level": { - "type": "integer" - }, - "welcome_screen": { - "$ref": "#/definitions/GuildWelcomeScreen" - }, - "widget_channel_id": { - "type": "string" - }, - "widget_enabled": { - "type": "boolean" - }, - "nsfw_level": { - "type": "integer" - }, - "permissions": { - "type": "integer" - }, - "premium_progress_bar_enabled": { - "type": "boolean" - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "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 - }, - "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" - ] - }, - "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 - } - }, - "additionalProperties": false, - "required": [ - "maxAttachmentSize", - "maxBulkDelete", - "maxCharacters", - "maxEmbedDownloadSize", - "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": {} - }, - "additionalProperties": false, - "required": [ - "auth", - "channel", - "guild", - "webhook" - ] - }, - "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" - ] - }, - "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" - ] - }, - "Badge": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "description": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "link": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "description", - "icon", - "id" - ] - }, - "TokenResponse": { - "type": "object", - "properties": { - "token": { - "type": "string" - }, - "settings": { - "$ref": "#/definitions/UserSettings" - } - }, - "additionalProperties": false, - "required": [ - "settings", - "token" - ] - }, - "MFAResponse": { - "type": "object", - "properties": { - "ticket": { - "type": "string" - }, - "mfa": { - "type": "boolean", - "enum": [ - true - ] - }, - "sms": { - "type": "boolean", - "enum": [ - false - ] - }, - "token": { - "type": "null" - } - }, - "additionalProperties": false, - "required": [ - "mfa", - "sms", - "ticket", - "token" - ] - }, - "WebAuthnResponse": { - "type": "object", - "properties": { - "webauthn": { - "type": "string" - }, - "ticket": { - "type": "string" - }, - "mfa": { - "type": "boolean", - "enum": [ - true - ] - }, - "sms": { - "type": "boolean", - "enum": [ - false - ] - }, - "token": { - "type": "null" - } - }, - "additionalProperties": false, - "required": [ - "mfa", - "sms", - "ticket", - "token", - "webauthn" - ] - } - }, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "global.Response": { - "type": "object", - "properties": { - "headers": { - "$ref": "#/definitions/Headers" - }, - "ok": { - "type": "boolean" - }, - "status": { - "type": "integer" - }, - "statusText": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/ResponseType" - }, - "url": { - "type": "string" - }, - "redirected": { - "type": "boolean" - }, - "body": { - "anyOf": [ - { - "$ref": "#/definitions/ReadableStream" - }, - { - "type": "null" - } - ] - }, - "bodyUsed": { - "type": "boolean" - }, - "arrayBuffer": { - "type": "object", - "additionalProperties": false - }, - "blob": { - "type": "object", - "additionalProperties": false - }, - "formData": { - "type": "object", - "additionalProperties": false - }, - "json": { - "type": "object", - "additionalProperties": false - }, - "text": { - "type": "object", - "additionalProperties": false - }, - "clone": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "arrayBuffer", - "blob", - "body", - "bodyUsed", - "clone", - "formData", - "headers", - "json", - "ok", - "redirected", - "status", - "statusText", - "text", - "type", - "url" - ], - "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, - "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" - ] - }, - "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 - }, - "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": { - "enum": [ - 0, - 1, - 2, - 4, - 5 - ], - "type": "number" - }, - "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", - "enum": [ - 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", - "enum": [ - 2 - ] - }, - "ButtonStyle": { - "enum": [ - 1, - 2, - 3, - 4, - 5, - 6 - ], - "type": "number" - }, - "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", - "enum": [ - 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", - "enum": [ - 4 - ] - }, - "TextInputStyle": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "Guild": { - "type": "object", - "properties": { - "afk_channel_id": { - "type": "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": "string" - }, - "public_updates_channel": { - "$ref": "#/definitions/Channel" - }, - "rules_channel_id": { - "type": "string" - }, - "rules_channel": { - "type": "string" - }, - "region": { - "type": "string" - }, - "splash": { - "type": "string" - }, - "system_channel_id": { - "type": "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" - }, - "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", - "default_thread_rate_limit_per_user", - "flags", - "id", - "nsfw", - "owner", - "parent_id", - "position", - "type" - ] - }, - "ChannelType": { - "enum": [ - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 2, - 255, - 3, - 33, - 34, - 35, - 4, - 5, - 6, - 64, - 7, - 8, - 9 - ], - "type": "number" - }, - "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", - "settings", - "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" - ] - }, - "ClientStatus": { - "type": "object", - "properties": { - "desktop": { - "type": "string" - }, - "mobile": { - "type": "string" - }, - "web": { - "type": "string" - }, - "embedded": { - "type": "string" - } - }, - "additionalProperties": false - }, - "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": { - "enum": [ - 1, - 2, - 3, - 4 - ], - "type": "number" - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "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": { - "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" - } - }, - "additionalProperties": false, - "required": [ - "message_id" - ] - }, - "referenced_message": { - "$ref": "#/definitions/Message" - }, - "interaction": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/InteractionType" - }, - "name": { - "type": "string" - }, - "user_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "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", - "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" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "color", - "flags", - "guild", - "guild_id", - "hoist", - "id", - "managed", - "mentionable", - "name", - "permissions", - "position" - ] - }, - "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": "number", - "enum": [ - 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" - ] - }, - "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": { - "enum": [ - 1, - 2, - 3 - ], - "type": "number" - }, - "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" - }, - "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" - } - }, - "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", - "team", - "team_id", - "user", - "user_id" - ] - }, - "TeamMemberState": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "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": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "StickerFormatType": { - "enum": [ - 0, - 1, - 2, - 3 - ], - "type": "number" - }, - "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" - ] - }, - "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" - ] - }, - "MessageType": { - "enum": [ - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 19, - 2, - 20, - 255, - 3, - 4, - 41, - 42, - 43, - 5, - 50, - 6, - 63, - 7, - 8, - 9 - ], - "type": "number" - }, - "InteractionType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, - "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" - ] - }, - "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" - ] - }, - "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", - "enum": [ - true - ] - } - }, - "additionalProperties": false, - "required": [ - "attachments", - "author", - "channel_id", - "components", - "edited_timestamp", - "embeds", - "flags", - "hit", - "id", - "mention_roles", - "mentions", - "pinned", - "poll", - "timestamp", - "tts", - "type" - ] - }, - "PublicUser": { - "type": "object", - "properties": { - "id": { - "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" - ] - }, - "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" - ] - }, - "Snowflake": { - "description": "A container for useful snowflake-related methods.", - "type": "object", - "additionalProperties": false - }, - "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" - ] - }, - "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" - ] - }, - "APIGuild": { - "type": "object", - "properties": { - "reload": { - "description": "Reloads entity data from the database.", - "type": "object", - "additionalProperties": false - }, - "name": { - "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" - } - }, - "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 - }, - "remove": { - "description": "Removes current entity from the database.", - "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" - }, - "description": { - "type": "string" - }, - "unavailable": { - "type": "boolean" - }, - "channels": { - "type": "array", - "items": { - "$ref": "#/definitions/Channel" - } - }, - "region": { - "type": "string" - }, - "system_channel_id": { - "type": "string" - }, - "rules_channel_id": { - "type": "string" - }, - "afk_timeout": { - "type": "integer" - }, - "explicit_content_filter": { - "type": "integer" - }, - "afk_channel_id": { - "type": "string" - }, - "bans": { - "type": "array", - "items": { - "$ref": "#/definitions/Ban" - } - }, - "default_message_notifications": { - "type": "integer" - }, - "discovery_splash": { - "type": "string" - }, - "features": { - "type": "array", - "items": { - "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" - }, - "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" - }, - "preferred_locale": { - "type": "string" - }, - "premium_subscription_count": { - "type": "integer" - }, - "premium_tier": { - "type": "integer" - }, - "public_updates_channel_id": { - "type": "string" - }, - "splash": { - "type": "string" - }, - "system_channel_flags": { - "type": "integer" - }, - "verification_level": { - "type": "integer" - }, - "welcome_screen": { - "$ref": "#/definitions/GuildWelcomeScreen" - }, - "widget_channel_id": { - "type": "string" - }, - "widget_enabled": { - "type": "boolean" - }, - "nsfw_level": { - "type": "integer" - }, - "permissions": { - "type": "integer" - }, - "premium_progress_bar_enabled": { - "type": "boolean" - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "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 - }, - "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" - ] - }, - "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 - } - }, - "additionalProperties": false, - "required": [ - "maxAttachmentSize", - "maxBulkDelete", - "maxCharacters", - "maxEmbedDownloadSize", - "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": {} - }, - "additionalProperties": false, - "required": [ - "auth", - "channel", - "guild", - "webhook" - ] - }, - "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" - ] - }, - "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" - ] - }, - "Badge": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "description": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "link": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "description", - "icon", - "id" - ] - }, - "TokenResponse": { - "type": "object", - "properties": { - "token": { - "type": "string" - }, - "settings": { - "$ref": "#/definitions/UserSettings" - } - }, - "additionalProperties": false, - "required": [ - "settings", - "token" - ] - }, - "MFAResponse": { - "type": "object", - "properties": { - "ticket": { - "type": "string" - }, - "mfa": { - "type": "boolean", - "enum": [ - true - ] - }, - "sms": { - "type": "boolean", - "enum": [ - false - ] - }, - "token": { - "type": "null" - } - }, - "additionalProperties": false, - "required": [ - "mfa", - "sms", - "ticket", - "token" - ] - }, - "WebAuthnResponse": { - "type": "object", - "properties": { - "webauthn": { - "type": "string" - }, - "ticket": { - "type": "string" - }, - "mfa": { - "type": "boolean", - "enum": [ - true - ] - }, - "sms": { - "type": "boolean", - "enum": [ - false - ] - }, - "token": { - "type": "null" - } - }, - "additionalProperties": false, - "required": [ - "mfa", - "sms", - "ticket", - "token", - "webauthn" - ] - } - }, - "$schema": "http://json-schema.org/draft-07/schema#" - }, "ConnectedAccountCommonOAuthTokenResponse": { "type": "object", "properties": { @@ -9783,9543 +57,6 @@ "scope", "token_type" ], - "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, - "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" - ] - }, - "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 - }, - "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": { - "enum": [ - 0, - 1, - 2, - 4, - 5 - ], - "type": "number" - }, - "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", - "enum": [ - 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", - "enum": [ - 2 - ] - }, - "ButtonStyle": { - "enum": [ - 1, - 2, - 3, - 4, - 5, - 6 - ], - "type": "number" - }, - "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", - "enum": [ - 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", - "enum": [ - 4 - ] - }, - "TextInputStyle": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "Guild": { - "type": "object", - "properties": { - "afk_channel_id": { - "type": "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": "string" - }, - "public_updates_channel": { - "$ref": "#/definitions/Channel" - }, - "rules_channel_id": { - "type": "string" - }, - "rules_channel": { - "type": "string" - }, - "region": { - "type": "string" - }, - "splash": { - "type": "string" - }, - "system_channel_id": { - "type": "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" - }, - "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", - "default_thread_rate_limit_per_user", - "flags", - "id", - "nsfw", - "owner", - "parent_id", - "position", - "type" - ] - }, - "ChannelType": { - "enum": [ - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 2, - 255, - 3, - 33, - 34, - 35, - 4, - 5, - 6, - 64, - 7, - 8, - 9 - ], - "type": "number" - }, - "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", - "settings", - "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" - ] - }, - "ClientStatus": { - "type": "object", - "properties": { - "desktop": { - "type": "string" - }, - "mobile": { - "type": "string" - }, - "web": { - "type": "string" - }, - "embedded": { - "type": "string" - } - }, - "additionalProperties": false - }, - "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": { - "enum": [ - 1, - 2, - 3, - 4 - ], - "type": "number" - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "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": { - "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" - } - }, - "additionalProperties": false, - "required": [ - "message_id" - ] - }, - "referenced_message": { - "$ref": "#/definitions/Message" - }, - "interaction": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/InteractionType" - }, - "name": { - "type": "string" - }, - "user_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "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", - "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" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "color", - "flags", - "guild", - "guild_id", - "hoist", - "id", - "managed", - "mentionable", - "name", - "permissions", - "position" - ] - }, - "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": "number", - "enum": [ - 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" - ] - }, - "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": { - "enum": [ - 1, - 2, - 3 - ], - "type": "number" - }, - "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" - }, - "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" - } - }, - "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", - "team", - "team_id", - "user", - "user_id" - ] - }, - "TeamMemberState": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "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": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "StickerFormatType": { - "enum": [ - 0, - 1, - 2, - 3 - ], - "type": "number" - }, - "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" - ] - }, - "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" - ] - }, - "MessageType": { - "enum": [ - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 19, - 2, - 20, - 255, - 3, - 4, - 41, - 42, - 43, - 5, - 50, - 6, - 63, - 7, - 8, - 9 - ], - "type": "number" - }, - "InteractionType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, - "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" - ] - }, - "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" - ] - }, - "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", - "enum": [ - true - ] - } - }, - "additionalProperties": false, - "required": [ - "attachments", - "author", - "channel_id", - "components", - "edited_timestamp", - "embeds", - "flags", - "hit", - "id", - "mention_roles", - "mentions", - "pinned", - "poll", - "timestamp", - "tts", - "type" - ] - }, - "PublicUser": { - "type": "object", - "properties": { - "id": { - "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" - ] - }, - "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" - ] - }, - "Snowflake": { - "description": "A container for useful snowflake-related methods.", - "type": "object", - "additionalProperties": false - }, - "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" - ] - }, - "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" - ] - }, - "APIGuild": { - "type": "object", - "properties": { - "reload": { - "description": "Reloads entity data from the database.", - "type": "object", - "additionalProperties": false - }, - "name": { - "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" - } - }, - "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 - }, - "remove": { - "description": "Removes current entity from the database.", - "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" - }, - "description": { - "type": "string" - }, - "unavailable": { - "type": "boolean" - }, - "channels": { - "type": "array", - "items": { - "$ref": "#/definitions/Channel" - } - }, - "region": { - "type": "string" - }, - "system_channel_id": { - "type": "string" - }, - "rules_channel_id": { - "type": "string" - }, - "afk_timeout": { - "type": "integer" - }, - "explicit_content_filter": { - "type": "integer" - }, - "afk_channel_id": { - "type": "string" - }, - "bans": { - "type": "array", - "items": { - "$ref": "#/definitions/Ban" - } - }, - "default_message_notifications": { - "type": "integer" - }, - "discovery_splash": { - "type": "string" - }, - "features": { - "type": "array", - "items": { - "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" - }, - "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" - }, - "preferred_locale": { - "type": "string" - }, - "premium_subscription_count": { - "type": "integer" - }, - "premium_tier": { - "type": "integer" - }, - "public_updates_channel_id": { - "type": "string" - }, - "splash": { - "type": "string" - }, - "system_channel_flags": { - "type": "integer" - }, - "verification_level": { - "type": "integer" - }, - "welcome_screen": { - "$ref": "#/definitions/GuildWelcomeScreen" - }, - "widget_channel_id": { - "type": "string" - }, - "widget_enabled": { - "type": "boolean" - }, - "nsfw_level": { - "type": "integer" - }, - "permissions": { - "type": "integer" - }, - "premium_progress_bar_enabled": { - "type": "boolean" - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "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 - }, - "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" - ] - }, - "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 - } - }, - "additionalProperties": false, - "required": [ - "maxAttachmentSize", - "maxBulkDelete", - "maxCharacters", - "maxEmbedDownloadSize", - "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": {} - }, - "additionalProperties": false, - "required": [ - "auth", - "channel", - "guild", - "webhook" - ] - }, - "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" - ] - }, - "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" - ] - }, - "Badge": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "description": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "link": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "description", - "icon", - "id" - ] - }, - "TokenResponse": { - "type": "object", - "properties": { - "token": { - "type": "string" - }, - "settings": { - "$ref": "#/definitions/UserSettings" - } - }, - "additionalProperties": false, - "required": [ - "settings", - "token" - ] - }, - "MFAResponse": { - "type": "object", - "properties": { - "ticket": { - "type": "string" - }, - "mfa": { - "type": "boolean", - "enum": [ - true - ] - }, - "sms": { - "type": "boolean", - "enum": [ - false - ] - }, - "token": { - "type": "null" - } - }, - "additionalProperties": false, - "required": [ - "mfa", - "sms", - "ticket", - "token" - ] - }, - "WebAuthnResponse": { - "type": "object", - "properties": { - "webauthn": { - "type": "string" - }, - "ticket": { - "type": "string" - }, - "mfa": { - "type": "boolean", - "enum": [ - true - ] - }, - "sms": { - "type": "boolean", - "enum": [ - false - ] - }, - "token": { - "type": "null" - } - }, - "additionalProperties": false, - "required": [ - "mfa", - "sms", - "ticket", - "token", - "webauthn" - ] - } - }, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "ExpressResponse": { - "type": "object", - "additionalProperties": false, - "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, - "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" - ] - }, - "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 - }, - "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": { - "enum": [ - 0, - 1, - 2, - 4, - 5 - ], - "type": "number" - }, - "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", - "enum": [ - 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", - "enum": [ - 2 - ] - }, - "ButtonStyle": { - "enum": [ - 1, - 2, - 3, - 4, - 5, - 6 - ], - "type": "number" - }, - "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", - "enum": [ - 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", - "enum": [ - 4 - ] - }, - "TextInputStyle": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "Guild": { - "type": "object", - "properties": { - "afk_channel_id": { - "type": "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": "string" - }, - "public_updates_channel": { - "$ref": "#/definitions/Channel" - }, - "rules_channel_id": { - "type": "string" - }, - "rules_channel": { - "type": "string" - }, - "region": { - "type": "string" - }, - "splash": { - "type": "string" - }, - "system_channel_id": { - "type": "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" - }, - "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", - "default_thread_rate_limit_per_user", - "flags", - "id", - "nsfw", - "owner", - "parent_id", - "position", - "type" - ] - }, - "ChannelType": { - "enum": [ - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 2, - 255, - 3, - 33, - 34, - 35, - 4, - 5, - 6, - 64, - 7, - 8, - 9 - ], - "type": "number" - }, - "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", - "settings", - "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" - ] - }, - "ClientStatus": { - "type": "object", - "properties": { - "desktop": { - "type": "string" - }, - "mobile": { - "type": "string" - }, - "web": { - "type": "string" - }, - "embedded": { - "type": "string" - } - }, - "additionalProperties": false - }, - "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": { - "enum": [ - 1, - 2, - 3, - 4 - ], - "type": "number" - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "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": { - "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" - } - }, - "additionalProperties": false, - "required": [ - "message_id" - ] - }, - "referenced_message": { - "$ref": "#/definitions/Message" - }, - "interaction": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/InteractionType" - }, - "name": { - "type": "string" - }, - "user_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "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", - "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" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "color", - "flags", - "guild", - "guild_id", - "hoist", - "id", - "managed", - "mentionable", - "name", - "permissions", - "position" - ] - }, - "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": "number", - "enum": [ - 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" - ] - }, - "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": { - "enum": [ - 1, - 2, - 3 - ], - "type": "number" - }, - "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" - }, - "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" - } - }, - "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", - "team", - "team_id", - "user", - "user_id" - ] - }, - "TeamMemberState": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "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": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "StickerFormatType": { - "enum": [ - 0, - 1, - 2, - 3 - ], - "type": "number" - }, - "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" - ] - }, - "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" - ] - }, - "MessageType": { - "enum": [ - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 19, - 2, - 20, - 255, - 3, - 4, - 41, - 42, - 43, - 5, - 50, - 6, - 63, - 7, - 8, - 9 - ], - "type": "number" - }, - "InteractionType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, - "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" - ] - }, - "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" - ] - }, - "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", - "enum": [ - true - ] - } - }, - "additionalProperties": false, - "required": [ - "attachments", - "author", - "channel_id", - "components", - "edited_timestamp", - "embeds", - "flags", - "hit", - "id", - "mention_roles", - "mentions", - "pinned", - "poll", - "timestamp", - "tts", - "type" - ] - }, - "PublicUser": { - "type": "object", - "properties": { - "id": { - "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" - ] - }, - "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" - ] - }, - "Snowflake": { - "description": "A container for useful snowflake-related methods.", - "type": "object", - "additionalProperties": false - }, - "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" - ] - }, - "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" - ] - }, - "APIGuild": { - "type": "object", - "properties": { - "reload": { - "description": "Reloads entity data from the database.", - "type": "object", - "additionalProperties": false - }, - "name": { - "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" - } - }, - "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 - }, - "remove": { - "description": "Removes current entity from the database.", - "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" - }, - "description": { - "type": "string" - }, - "unavailable": { - "type": "boolean" - }, - "channels": { - "type": "array", - "items": { - "$ref": "#/definitions/Channel" - } - }, - "region": { - "type": "string" - }, - "system_channel_id": { - "type": "string" - }, - "rules_channel_id": { - "type": "string" - }, - "afk_timeout": { - "type": "integer" - }, - "explicit_content_filter": { - "type": "integer" - }, - "afk_channel_id": { - "type": "string" - }, - "bans": { - "type": "array", - "items": { - "$ref": "#/definitions/Ban" - } - }, - "default_message_notifications": { - "type": "integer" - }, - "discovery_splash": { - "type": "string" - }, - "features": { - "type": "array", - "items": { - "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" - }, - "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" - }, - "preferred_locale": { - "type": "string" - }, - "premium_subscription_count": { - "type": "integer" - }, - "premium_tier": { - "type": "integer" - }, - "public_updates_channel_id": { - "type": "string" - }, - "splash": { - "type": "string" - }, - "system_channel_flags": { - "type": "integer" - }, - "verification_level": { - "type": "integer" - }, - "welcome_screen": { - "$ref": "#/definitions/GuildWelcomeScreen" - }, - "widget_channel_id": { - "type": "string" - }, - "widget_enabled": { - "type": "boolean" - }, - "nsfw_level": { - "type": "integer" - }, - "permissions": { - "type": "integer" - }, - "premium_progress_bar_enabled": { - "type": "boolean" - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "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 - }, - "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" - ] - }, - "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 - } - }, - "additionalProperties": false, - "required": [ - "maxAttachmentSize", - "maxBulkDelete", - "maxCharacters", - "maxEmbedDownloadSize", - "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": {} - }, - "additionalProperties": false, - "required": [ - "auth", - "channel", - "guild", - "webhook" - ] - }, - "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" - ] - }, - "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" - ] - }, - "Badge": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "description": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "link": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "description", - "icon", - "id" - ] - }, - "TokenResponse": { - "type": "object", - "properties": { - "token": { - "type": "string" - }, - "settings": { - "$ref": "#/definitions/UserSettings" - } - }, - "additionalProperties": false, - "required": [ - "settings", - "token" - ] - }, - "MFAResponse": { - "type": "object", - "properties": { - "ticket": { - "type": "string" - }, - "mfa": { - "type": "boolean", - "enum": [ - true - ] - }, - "sms": { - "type": "boolean", - "enum": [ - false - ] - }, - "token": { - "type": "null" - } - }, - "additionalProperties": false, - "required": [ - "mfa", - "sms", - "ticket", - "token" - ] - }, - "WebAuthnResponse": { - "type": "object", - "properties": { - "webauthn": { - "type": "string" - }, - "ticket": { - "type": "string" - }, - "mfa": { - "type": "boolean", - "enum": [ - true - ] - }, - "sms": { - "type": "boolean", - "enum": [ - false - ] - }, - "token": { - "type": "null" - } - }, - "additionalProperties": false, - "required": [ - "mfa", - "sms", - "ticket", - "token", - "webauthn" - ] - } - }, "$schema": "http://json-schema.org/draft-07/schema#" }, "ApplicationAuthorizeSchema": { @@ -19347,4772 +84,6 @@ "guild_id", "permissions" ], - "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, - "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" - ] - }, - "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 - }, - "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": { - "enum": [ - 0, - 1, - 2, - 4, - 5 - ], - "type": "number" - }, - "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", - "enum": [ - 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", - "enum": [ - 2 - ] - }, - "ButtonStyle": { - "enum": [ - 1, - 2, - 3, - 4, - 5, - 6 - ], - "type": "number" - }, - "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", - "enum": [ - 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", - "enum": [ - 4 - ] - }, - "TextInputStyle": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "Guild": { - "type": "object", - "properties": { - "afk_channel_id": { - "type": "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": "string" - }, - "public_updates_channel": { - "$ref": "#/definitions/Channel" - }, - "rules_channel_id": { - "type": "string" - }, - "rules_channel": { - "type": "string" - }, - "region": { - "type": "string" - }, - "splash": { - "type": "string" - }, - "system_channel_id": { - "type": "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" - }, - "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", - "default_thread_rate_limit_per_user", - "flags", - "id", - "nsfw", - "owner", - "parent_id", - "position", - "type" - ] - }, - "ChannelType": { - "enum": [ - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 2, - 255, - 3, - 33, - 34, - 35, - 4, - 5, - 6, - 64, - 7, - 8, - 9 - ], - "type": "number" - }, - "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", - "settings", - "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" - ] - }, - "ClientStatus": { - "type": "object", - "properties": { - "desktop": { - "type": "string" - }, - "mobile": { - "type": "string" - }, - "web": { - "type": "string" - }, - "embedded": { - "type": "string" - } - }, - "additionalProperties": false - }, - "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": { - "enum": [ - 1, - 2, - 3, - 4 - ], - "type": "number" - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "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": { - "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" - } - }, - "additionalProperties": false, - "required": [ - "message_id" - ] - }, - "referenced_message": { - "$ref": "#/definitions/Message" - }, - "interaction": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/InteractionType" - }, - "name": { - "type": "string" - }, - "user_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "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", - "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" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "color", - "flags", - "guild", - "guild_id", - "hoist", - "id", - "managed", - "mentionable", - "name", - "permissions", - "position" - ] - }, - "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": "number", - "enum": [ - 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" - ] - }, - "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": { - "enum": [ - 1, - 2, - 3 - ], - "type": "number" - }, - "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" - }, - "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" - } - }, - "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", - "team", - "team_id", - "user", - "user_id" - ] - }, - "TeamMemberState": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "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": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "StickerFormatType": { - "enum": [ - 0, - 1, - 2, - 3 - ], - "type": "number" - }, - "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" - ] - }, - "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" - ] - }, - "MessageType": { - "enum": [ - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 19, - 2, - 20, - 255, - 3, - 4, - 41, - 42, - 43, - 5, - 50, - 6, - 63, - 7, - 8, - 9 - ], - "type": "number" - }, - "InteractionType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, - "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" - ] - }, - "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" - ] - }, - "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", - "enum": [ - true - ] - } - }, - "additionalProperties": false, - "required": [ - "attachments", - "author", - "channel_id", - "components", - "edited_timestamp", - "embeds", - "flags", - "hit", - "id", - "mention_roles", - "mentions", - "pinned", - "poll", - "timestamp", - "tts", - "type" - ] - }, - "PublicUser": { - "type": "object", - "properties": { - "id": { - "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" - ] - }, - "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" - ] - }, - "Snowflake": { - "description": "A container for useful snowflake-related methods.", - "type": "object", - "additionalProperties": false - }, - "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" - ] - }, - "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" - ] - }, - "APIGuild": { - "type": "object", - "properties": { - "reload": { - "description": "Reloads entity data from the database.", - "type": "object", - "additionalProperties": false - }, - "name": { - "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" - } - }, - "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 - }, - "remove": { - "description": "Removes current entity from the database.", - "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" - }, - "description": { - "type": "string" - }, - "unavailable": { - "type": "boolean" - }, - "channels": { - "type": "array", - "items": { - "$ref": "#/definitions/Channel" - } - }, - "region": { - "type": "string" - }, - "system_channel_id": { - "type": "string" - }, - "rules_channel_id": { - "type": "string" - }, - "afk_timeout": { - "type": "integer" - }, - "explicit_content_filter": { - "type": "integer" - }, - "afk_channel_id": { - "type": "string" - }, - "bans": { - "type": "array", - "items": { - "$ref": "#/definitions/Ban" - } - }, - "default_message_notifications": { - "type": "integer" - }, - "discovery_splash": { - "type": "string" - }, - "features": { - "type": "array", - "items": { - "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" - }, - "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" - }, - "preferred_locale": { - "type": "string" - }, - "premium_subscription_count": { - "type": "integer" - }, - "premium_tier": { - "type": "integer" - }, - "public_updates_channel_id": { - "type": "string" - }, - "splash": { - "type": "string" - }, - "system_channel_flags": { - "type": "integer" - }, - "verification_level": { - "type": "integer" - }, - "welcome_screen": { - "$ref": "#/definitions/GuildWelcomeScreen" - }, - "widget_channel_id": { - "type": "string" - }, - "widget_enabled": { - "type": "boolean" - }, - "nsfw_level": { - "type": "integer" - }, - "permissions": { - "type": "integer" - }, - "premium_progress_bar_enabled": { - "type": "boolean" - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "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 - }, - "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" - ] - }, - "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 - } - }, - "additionalProperties": false, - "required": [ - "maxAttachmentSize", - "maxBulkDelete", - "maxCharacters", - "maxEmbedDownloadSize", - "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": {} - }, - "additionalProperties": false, - "required": [ - "auth", - "channel", - "guild", - "webhook" - ] - }, - "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" - ] - }, - "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" - ] - }, - "Badge": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "description": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "link": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "description", - "icon", - "id" - ] - }, - "TokenResponse": { - "type": "object", - "properties": { - "token": { - "type": "string" - }, - "settings": { - "$ref": "#/definitions/UserSettings" - } - }, - "additionalProperties": false, - "required": [ - "settings", - "token" - ] - }, - "MFAResponse": { - "type": "object", - "properties": { - "ticket": { - "type": "string" - }, - "mfa": { - "type": "boolean", - "enum": [ - true - ] - }, - "sms": { - "type": "boolean", - "enum": [ - false - ] - }, - "token": { - "type": "null" - } - }, - "additionalProperties": false, - "required": [ - "mfa", - "sms", - "ticket", - "token" - ] - }, - "WebAuthnResponse": { - "type": "object", - "properties": { - "webauthn": { - "type": "string" - }, - "ticket": { - "type": "string" - }, - "mfa": { - "type": "boolean", - "enum": [ - true - ] - }, - "sms": { - "type": "boolean", - "enum": [ - false - ] - }, - "token": { - "type": "null" - } - }, - "additionalProperties": false, - "required": [ - "mfa", - "sms", - "ticket", - "token", - "webauthn" - ] - } - }, "$schema": "http://json-schema.org/draft-07/schema#" }, "ApplicationCreateSchema": { @@ -24132,4772 +103,6 @@ "required": [ "name" ], - "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, - "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" - ] - }, - "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 - }, - "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": { - "enum": [ - 0, - 1, - 2, - 4, - 5 - ], - "type": "number" - }, - "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", - "enum": [ - 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", - "enum": [ - 2 - ] - }, - "ButtonStyle": { - "enum": [ - 1, - 2, - 3, - 4, - 5, - 6 - ], - "type": "number" - }, - "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", - "enum": [ - 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", - "enum": [ - 4 - ] - }, - "TextInputStyle": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "Guild": { - "type": "object", - "properties": { - "afk_channel_id": { - "type": "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": "string" - }, - "public_updates_channel": { - "$ref": "#/definitions/Channel" - }, - "rules_channel_id": { - "type": "string" - }, - "rules_channel": { - "type": "string" - }, - "region": { - "type": "string" - }, - "splash": { - "type": "string" - }, - "system_channel_id": { - "type": "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" - }, - "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", - "default_thread_rate_limit_per_user", - "flags", - "id", - "nsfw", - "owner", - "parent_id", - "position", - "type" - ] - }, - "ChannelType": { - "enum": [ - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 2, - 255, - 3, - 33, - 34, - 35, - 4, - 5, - 6, - 64, - 7, - 8, - 9 - ], - "type": "number" - }, - "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", - "settings", - "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" - ] - }, - "ClientStatus": { - "type": "object", - "properties": { - "desktop": { - "type": "string" - }, - "mobile": { - "type": "string" - }, - "web": { - "type": "string" - }, - "embedded": { - "type": "string" - } - }, - "additionalProperties": false - }, - "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": { - "enum": [ - 1, - 2, - 3, - 4 - ], - "type": "number" - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "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": { - "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" - } - }, - "additionalProperties": false, - "required": [ - "message_id" - ] - }, - "referenced_message": { - "$ref": "#/definitions/Message" - }, - "interaction": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/InteractionType" - }, - "name": { - "type": "string" - }, - "user_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "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", - "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" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "color", - "flags", - "guild", - "guild_id", - "hoist", - "id", - "managed", - "mentionable", - "name", - "permissions", - "position" - ] - }, - "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": "number", - "enum": [ - 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" - ] - }, - "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": { - "enum": [ - 1, - 2, - 3 - ], - "type": "number" - }, - "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" - }, - "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" - } - }, - "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", - "team", - "team_id", - "user", - "user_id" - ] - }, - "TeamMemberState": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "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": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "StickerFormatType": { - "enum": [ - 0, - 1, - 2, - 3 - ], - "type": "number" - }, - "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" - ] - }, - "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" - ] - }, - "MessageType": { - "enum": [ - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 19, - 2, - 20, - 255, - 3, - 4, - 41, - 42, - 43, - 5, - 50, - 6, - 63, - 7, - 8, - 9 - ], - "type": "number" - }, - "InteractionType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, - "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" - ] - }, - "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" - ] - }, - "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", - "enum": [ - true - ] - } - }, - "additionalProperties": false, - "required": [ - "attachments", - "author", - "channel_id", - "components", - "edited_timestamp", - "embeds", - "flags", - "hit", - "id", - "mention_roles", - "mentions", - "pinned", - "poll", - "timestamp", - "tts", - "type" - ] - }, - "PublicUser": { - "type": "object", - "properties": { - "id": { - "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" - ] - }, - "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" - ] - }, - "Snowflake": { - "description": "A container for useful snowflake-related methods.", - "type": "object", - "additionalProperties": false - }, - "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" - ] - }, - "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" - ] - }, - "APIGuild": { - "type": "object", - "properties": { - "reload": { - "description": "Reloads entity data from the database.", - "type": "object", - "additionalProperties": false - }, - "name": { - "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" - } - }, - "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 - }, - "remove": { - "description": "Removes current entity from the database.", - "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" - }, - "description": { - "type": "string" - }, - "unavailable": { - "type": "boolean" - }, - "channels": { - "type": "array", - "items": { - "$ref": "#/definitions/Channel" - } - }, - "region": { - "type": "string" - }, - "system_channel_id": { - "type": "string" - }, - "rules_channel_id": { - "type": "string" - }, - "afk_timeout": { - "type": "integer" - }, - "explicit_content_filter": { - "type": "integer" - }, - "afk_channel_id": { - "type": "string" - }, - "bans": { - "type": "array", - "items": { - "$ref": "#/definitions/Ban" - } - }, - "default_message_notifications": { - "type": "integer" - }, - "discovery_splash": { - "type": "string" - }, - "features": { - "type": "array", - "items": { - "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" - }, - "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" - }, - "preferred_locale": { - "type": "string" - }, - "premium_subscription_count": { - "type": "integer" - }, - "premium_tier": { - "type": "integer" - }, - "public_updates_channel_id": { - "type": "string" - }, - "splash": { - "type": "string" - }, - "system_channel_flags": { - "type": "integer" - }, - "verification_level": { - "type": "integer" - }, - "welcome_screen": { - "$ref": "#/definitions/GuildWelcomeScreen" - }, - "widget_channel_id": { - "type": "string" - }, - "widget_enabled": { - "type": "boolean" - }, - "nsfw_level": { - "type": "integer" - }, - "permissions": { - "type": "integer" - }, - "premium_progress_bar_enabled": { - "type": "boolean" - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "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 - }, - "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" - ] - }, - "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 - } - }, - "additionalProperties": false, - "required": [ - "maxAttachmentSize", - "maxBulkDelete", - "maxCharacters", - "maxEmbedDownloadSize", - "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": {} - }, - "additionalProperties": false, - "required": [ - "auth", - "channel", - "guild", - "webhook" - ] - }, - "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" - ] - }, - "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" - ] - }, - "Badge": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "description": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "link": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "description", - "icon", - "id" - ] - }, - "TokenResponse": { - "type": "object", - "properties": { - "token": { - "type": "string" - }, - "settings": { - "$ref": "#/definitions/UserSettings" - } - }, - "additionalProperties": false, - "required": [ - "settings", - "token" - ] - }, - "MFAResponse": { - "type": "object", - "properties": { - "ticket": { - "type": "string" - }, - "mfa": { - "type": "boolean", - "enum": [ - true - ] - }, - "sms": { - "type": "boolean", - "enum": [ - false - ] - }, - "token": { - "type": "null" - } - }, - "additionalProperties": false, - "required": [ - "mfa", - "sms", - "ticket", - "token" - ] - }, - "WebAuthnResponse": { - "type": "object", - "properties": { - "webauthn": { - "type": "string" - }, - "ticket": { - "type": "string" - }, - "mfa": { - "type": "boolean", - "enum": [ - true - ] - }, - "sms": { - "type": "boolean", - "enum": [ - false - ] - }, - "token": { - "type": "null" - } - }, - "additionalProperties": false, - "required": [ - "mfa", - "sms", - "ticket", - "token", - "webauthn" - ] - } - }, "$schema": "http://json-schema.org/draft-07/schema#" }, "ApplicationModifySchema": { @@ -28947,4772 +152,6 @@ } }, "additionalProperties": false, - "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, - "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" - ] - }, - "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 - }, - "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": { - "enum": [ - 0, - 1, - 2, - 4, - 5 - ], - "type": "number" - }, - "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", - "enum": [ - 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", - "enum": [ - 2 - ] - }, - "ButtonStyle": { - "enum": [ - 1, - 2, - 3, - 4, - 5, - 6 - ], - "type": "number" - }, - "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", - "enum": [ - 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", - "enum": [ - 4 - ] - }, - "TextInputStyle": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "Guild": { - "type": "object", - "properties": { - "afk_channel_id": { - "type": "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": "string" - }, - "public_updates_channel": { - "$ref": "#/definitions/Channel" - }, - "rules_channel_id": { - "type": "string" - }, - "rules_channel": { - "type": "string" - }, - "region": { - "type": "string" - }, - "splash": { - "type": "string" - }, - "system_channel_id": { - "type": "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" - }, - "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", - "default_thread_rate_limit_per_user", - "flags", - "id", - "nsfw", - "owner", - "parent_id", - "position", - "type" - ] - }, - "ChannelType": { - "enum": [ - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 2, - 255, - 3, - 33, - 34, - 35, - 4, - 5, - 6, - 64, - 7, - 8, - 9 - ], - "type": "number" - }, - "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", - "settings", - "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" - ] - }, - "ClientStatus": { - "type": "object", - "properties": { - "desktop": { - "type": "string" - }, - "mobile": { - "type": "string" - }, - "web": { - "type": "string" - }, - "embedded": { - "type": "string" - } - }, - "additionalProperties": false - }, - "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": { - "enum": [ - 1, - 2, - 3, - 4 - ], - "type": "number" - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "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": { - "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" - } - }, - "additionalProperties": false, - "required": [ - "message_id" - ] - }, - "referenced_message": { - "$ref": "#/definitions/Message" - }, - "interaction": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/InteractionType" - }, - "name": { - "type": "string" - }, - "user_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "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", - "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" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "color", - "flags", - "guild", - "guild_id", - "hoist", - "id", - "managed", - "mentionable", - "name", - "permissions", - "position" - ] - }, - "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": "number", - "enum": [ - 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" - ] - }, - "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": { - "enum": [ - 1, - 2, - 3 - ], - "type": "number" - }, - "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" - }, - "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" - } - }, - "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", - "team", - "team_id", - "user", - "user_id" - ] - }, - "TeamMemberState": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "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": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "StickerFormatType": { - "enum": [ - 0, - 1, - 2, - 3 - ], - "type": "number" - }, - "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" - ] - }, - "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" - ] - }, - "MessageType": { - "enum": [ - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 19, - 2, - 20, - 255, - 3, - 4, - 41, - 42, - 43, - 5, - 50, - 6, - 63, - 7, - 8, - 9 - ], - "type": "number" - }, - "InteractionType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, - "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" - ] - }, - "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" - ] - }, - "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", - "enum": [ - true - ] - } - }, - "additionalProperties": false, - "required": [ - "attachments", - "author", - "channel_id", - "components", - "edited_timestamp", - "embeds", - "flags", - "hit", - "id", - "mention_roles", - "mentions", - "pinned", - "poll", - "timestamp", - "tts", - "type" - ] - }, - "PublicUser": { - "type": "object", - "properties": { - "id": { - "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" - ] - }, - "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" - ] - }, - "Snowflake": { - "description": "A container for useful snowflake-related methods.", - "type": "object", - "additionalProperties": false - }, - "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" - ] - }, - "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" - ] - }, - "APIGuild": { - "type": "object", - "properties": { - "reload": { - "description": "Reloads entity data from the database.", - "type": "object", - "additionalProperties": false - }, - "name": { - "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" - } - }, - "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 - }, - "remove": { - "description": "Removes current entity from the database.", - "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" - }, - "description": { - "type": "string" - }, - "unavailable": { - "type": "boolean" - }, - "channels": { - "type": "array", - "items": { - "$ref": "#/definitions/Channel" - } - }, - "region": { - "type": "string" - }, - "system_channel_id": { - "type": "string" - }, - "rules_channel_id": { - "type": "string" - }, - "afk_timeout": { - "type": "integer" - }, - "explicit_content_filter": { - "type": "integer" - }, - "afk_channel_id": { - "type": "string" - }, - "bans": { - "type": "array", - "items": { - "$ref": "#/definitions/Ban" - } - }, - "default_message_notifications": { - "type": "integer" - }, - "discovery_splash": { - "type": "string" - }, - "features": { - "type": "array", - "items": { - "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" - }, - "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" - }, - "preferred_locale": { - "type": "string" - }, - "premium_subscription_count": { - "type": "integer" - }, - "premium_tier": { - "type": "integer" - }, - "public_updates_channel_id": { - "type": "string" - }, - "splash": { - "type": "string" - }, - "system_channel_flags": { - "type": "integer" - }, - "verification_level": { - "type": "integer" - }, - "welcome_screen": { - "$ref": "#/definitions/GuildWelcomeScreen" - }, - "widget_channel_id": { - "type": "string" - }, - "widget_enabled": { - "type": "boolean" - }, - "nsfw_level": { - "type": "integer" - }, - "permissions": { - "type": "integer" - }, - "premium_progress_bar_enabled": { - "type": "boolean" - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "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 - }, - "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" - ] - }, - "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 - } - }, - "additionalProperties": false, - "required": [ - "maxAttachmentSize", - "maxBulkDelete", - "maxCharacters", - "maxEmbedDownloadSize", - "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": {} - }, - "additionalProperties": false, - "required": [ - "auth", - "channel", - "guild", - "webhook" - ] - }, - "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" - ] - }, - "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" - ] - }, - "Badge": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "description": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "link": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "description", - "icon", - "id" - ] - }, - "TokenResponse": { - "type": "object", - "properties": { - "token": { - "type": "string" - }, - "settings": { - "$ref": "#/definitions/UserSettings" - } - }, - "additionalProperties": false, - "required": [ - "settings", - "token" - ] - }, - "MFAResponse": { - "type": "object", - "properties": { - "ticket": { - "type": "string" - }, - "mfa": { - "type": "boolean", - "enum": [ - true - ] - }, - "sms": { - "type": "boolean", - "enum": [ - false - ] - }, - "token": { - "type": "null" - } - }, - "additionalProperties": false, - "required": [ - "mfa", - "sms", - "ticket", - "token" - ] - }, - "WebAuthnResponse": { - "type": "object", - "properties": { - "webauthn": { - "type": "string" - }, - "ticket": { - "type": "string" - }, - "mfa": { - "type": "boolean", - "enum": [ - true - ] - }, - "sms": { - "type": "boolean", - "enum": [ - false - ] - }, - "token": { - "type": "null" - } - }, - "additionalProperties": false, - "required": [ - "mfa", - "sms", - "ticket", - "token", - "webauthn" - ] - } - }, "$schema": "http://json-schema.org/draft-07/schema#" }, "BackupCodesChallengeSchema": { @@ -33726,4772 +165,6 @@ "required": [ "password" ], - "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, - "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" - ] - }, - "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 - }, - "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": { - "enum": [ - 0, - 1, - 2, - 4, - 5 - ], - "type": "number" - }, - "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", - "enum": [ - 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", - "enum": [ - 2 - ] - }, - "ButtonStyle": { - "enum": [ - 1, - 2, - 3, - 4, - 5, - 6 - ], - "type": "number" - }, - "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", - "enum": [ - 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", - "enum": [ - 4 - ] - }, - "TextInputStyle": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "Guild": { - "type": "object", - "properties": { - "afk_channel_id": { - "type": "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": "string" - }, - "public_updates_channel": { - "$ref": "#/definitions/Channel" - }, - "rules_channel_id": { - "type": "string" - }, - "rules_channel": { - "type": "string" - }, - "region": { - "type": "string" - }, - "splash": { - "type": "string" - }, - "system_channel_id": { - "type": "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" - }, - "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", - "default_thread_rate_limit_per_user", - "flags", - "id", - "nsfw", - "owner", - "parent_id", - "position", - "type" - ] - }, - "ChannelType": { - "enum": [ - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 2, - 255, - 3, - 33, - 34, - 35, - 4, - 5, - 6, - 64, - 7, - 8, - 9 - ], - "type": "number" - }, - "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", - "settings", - "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" - ] - }, - "ClientStatus": { - "type": "object", - "properties": { - "desktop": { - "type": "string" - }, - "mobile": { - "type": "string" - }, - "web": { - "type": "string" - }, - "embedded": { - "type": "string" - } - }, - "additionalProperties": false - }, - "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": { - "enum": [ - 1, - 2, - 3, - 4 - ], - "type": "number" - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "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": { - "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" - } - }, - "additionalProperties": false, - "required": [ - "message_id" - ] - }, - "referenced_message": { - "$ref": "#/definitions/Message" - }, - "interaction": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/InteractionType" - }, - "name": { - "type": "string" - }, - "user_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "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", - "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" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "color", - "flags", - "guild", - "guild_id", - "hoist", - "id", - "managed", - "mentionable", - "name", - "permissions", - "position" - ] - }, - "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": "number", - "enum": [ - 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" - ] - }, - "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": { - "enum": [ - 1, - 2, - 3 - ], - "type": "number" - }, - "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" - }, - "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" - } - }, - "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", - "team", - "team_id", - "user", - "user_id" - ] - }, - "TeamMemberState": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "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": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "StickerFormatType": { - "enum": [ - 0, - 1, - 2, - 3 - ], - "type": "number" - }, - "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" - ] - }, - "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" - ] - }, - "MessageType": { - "enum": [ - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 19, - 2, - 20, - 255, - 3, - 4, - 41, - 42, - 43, - 5, - 50, - 6, - 63, - 7, - 8, - 9 - ], - "type": "number" - }, - "InteractionType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, - "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" - ] - }, - "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" - ] - }, - "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", - "enum": [ - true - ] - } - }, - "additionalProperties": false, - "required": [ - "attachments", - "author", - "channel_id", - "components", - "edited_timestamp", - "embeds", - "flags", - "hit", - "id", - "mention_roles", - "mentions", - "pinned", - "poll", - "timestamp", - "tts", - "type" - ] - }, - "PublicUser": { - "type": "object", - "properties": { - "id": { - "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" - ] - }, - "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" - ] - }, - "Snowflake": { - "description": "A container for useful snowflake-related methods.", - "type": "object", - "additionalProperties": false - }, - "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" - ] - }, - "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" - ] - }, - "APIGuild": { - "type": "object", - "properties": { - "reload": { - "description": "Reloads entity data from the database.", - "type": "object", - "additionalProperties": false - }, - "name": { - "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" - } - }, - "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 - }, - "remove": { - "description": "Removes current entity from the database.", - "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" - }, - "description": { - "type": "string" - }, - "unavailable": { - "type": "boolean" - }, - "channels": { - "type": "array", - "items": { - "$ref": "#/definitions/Channel" - } - }, - "region": { - "type": "string" - }, - "system_channel_id": { - "type": "string" - }, - "rules_channel_id": { - "type": "string" - }, - "afk_timeout": { - "type": "integer" - }, - "explicit_content_filter": { - "type": "integer" - }, - "afk_channel_id": { - "type": "string" - }, - "bans": { - "type": "array", - "items": { - "$ref": "#/definitions/Ban" - } - }, - "default_message_notifications": { - "type": "integer" - }, - "discovery_splash": { - "type": "string" - }, - "features": { - "type": "array", - "items": { - "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" - }, - "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" - }, - "preferred_locale": { - "type": "string" - }, - "premium_subscription_count": { - "type": "integer" - }, - "premium_tier": { - "type": "integer" - }, - "public_updates_channel_id": { - "type": "string" - }, - "splash": { - "type": "string" - }, - "system_channel_flags": { - "type": "integer" - }, - "verification_level": { - "type": "integer" - }, - "welcome_screen": { - "$ref": "#/definitions/GuildWelcomeScreen" - }, - "widget_channel_id": { - "type": "string" - }, - "widget_enabled": { - "type": "boolean" - }, - "nsfw_level": { - "type": "integer" - }, - "permissions": { - "type": "integer" - }, - "premium_progress_bar_enabled": { - "type": "boolean" - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "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 - }, - "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" - ] - }, - "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 - } - }, - "additionalProperties": false, - "required": [ - "maxAttachmentSize", - "maxBulkDelete", - "maxCharacters", - "maxEmbedDownloadSize", - "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": {} - }, - "additionalProperties": false, - "required": [ - "auth", - "channel", - "guild", - "webhook" - ] - }, - "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" - ] - }, - "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" - ] - }, - "Badge": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "description": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "link": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "description", - "icon", - "id" - ] - }, - "TokenResponse": { - "type": "object", - "properties": { - "token": { - "type": "string" - }, - "settings": { - "$ref": "#/definitions/UserSettings" - } - }, - "additionalProperties": false, - "required": [ - "settings", - "token" - ] - }, - "MFAResponse": { - "type": "object", - "properties": { - "ticket": { - "type": "string" - }, - "mfa": { - "type": "boolean", - "enum": [ - true - ] - }, - "sms": { - "type": "boolean", - "enum": [ - false - ] - }, - "token": { - "type": "null" - } - }, - "additionalProperties": false, - "required": [ - "mfa", - "sms", - "ticket", - "token" - ] - }, - "WebAuthnResponse": { - "type": "object", - "properties": { - "webauthn": { - "type": "string" - }, - "ticket": { - "type": "string" - }, - "mfa": { - "type": "boolean", - "enum": [ - true - ] - }, - "sms": { - "type": "boolean", - "enum": [ - false - ] - }, - "token": { - "type": "null" - } - }, - "additionalProperties": false, - "required": [ - "mfa", - "sms", - "ticket", - "token", - "webauthn" - ] - } - }, "$schema": "http://json-schema.org/draft-07/schema#" }, "BanCreateSchema": { @@ -38508,4772 +181,6 @@ } }, "additionalProperties": false, - "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, - "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" - ] - }, - "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 - }, - "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": { - "enum": [ - 0, - 1, - 2, - 4, - 5 - ], - "type": "number" - }, - "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", - "enum": [ - 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", - "enum": [ - 2 - ] - }, - "ButtonStyle": { - "enum": [ - 1, - 2, - 3, - 4, - 5, - 6 - ], - "type": "number" - }, - "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", - "enum": [ - 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", - "enum": [ - 4 - ] - }, - "TextInputStyle": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "Guild": { - "type": "object", - "properties": { - "afk_channel_id": { - "type": "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": "string" - }, - "public_updates_channel": { - "$ref": "#/definitions/Channel" - }, - "rules_channel_id": { - "type": "string" - }, - "rules_channel": { - "type": "string" - }, - "region": { - "type": "string" - }, - "splash": { - "type": "string" - }, - "system_channel_id": { - "type": "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" - }, - "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", - "default_thread_rate_limit_per_user", - "flags", - "id", - "nsfw", - "owner", - "parent_id", - "position", - "type" - ] - }, - "ChannelType": { - "enum": [ - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 2, - 255, - 3, - 33, - 34, - 35, - 4, - 5, - 6, - 64, - 7, - 8, - 9 - ], - "type": "number" - }, - "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", - "settings", - "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" - ] - }, - "ClientStatus": { - "type": "object", - "properties": { - "desktop": { - "type": "string" - }, - "mobile": { - "type": "string" - }, - "web": { - "type": "string" - }, - "embedded": { - "type": "string" - } - }, - "additionalProperties": false - }, - "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": { - "enum": [ - 1, - 2, - 3, - 4 - ], - "type": "number" - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "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": { - "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" - } - }, - "additionalProperties": false, - "required": [ - "message_id" - ] - }, - "referenced_message": { - "$ref": "#/definitions/Message" - }, - "interaction": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/InteractionType" - }, - "name": { - "type": "string" - }, - "user_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "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", - "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" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "color", - "flags", - "guild", - "guild_id", - "hoist", - "id", - "managed", - "mentionable", - "name", - "permissions", - "position" - ] - }, - "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": "number", - "enum": [ - 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" - ] - }, - "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": { - "enum": [ - 1, - 2, - 3 - ], - "type": "number" - }, - "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" - }, - "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" - } - }, - "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", - "team", - "team_id", - "user", - "user_id" - ] - }, - "TeamMemberState": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "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": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "StickerFormatType": { - "enum": [ - 0, - 1, - 2, - 3 - ], - "type": "number" - }, - "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" - ] - }, - "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" - ] - }, - "MessageType": { - "enum": [ - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 19, - 2, - 20, - 255, - 3, - 4, - 41, - 42, - 43, - 5, - 50, - 6, - 63, - 7, - 8, - 9 - ], - "type": "number" - }, - "InteractionType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, - "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" - ] - }, - "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" - ] - }, - "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", - "enum": [ - true - ] - } - }, - "additionalProperties": false, - "required": [ - "attachments", - "author", - "channel_id", - "components", - "edited_timestamp", - "embeds", - "flags", - "hit", - "id", - "mention_roles", - "mentions", - "pinned", - "poll", - "timestamp", - "tts", - "type" - ] - }, - "PublicUser": { - "type": "object", - "properties": { - "id": { - "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" - ] - }, - "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" - ] - }, - "Snowflake": { - "description": "A container for useful snowflake-related methods.", - "type": "object", - "additionalProperties": false - }, - "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" - ] - }, - "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" - ] - }, - "APIGuild": { - "type": "object", - "properties": { - "reload": { - "description": "Reloads entity data from the database.", - "type": "object", - "additionalProperties": false - }, - "name": { - "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" - } - }, - "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 - }, - "remove": { - "description": "Removes current entity from the database.", - "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" - }, - "description": { - "type": "string" - }, - "unavailable": { - "type": "boolean" - }, - "channels": { - "type": "array", - "items": { - "$ref": "#/definitions/Channel" - } - }, - "region": { - "type": "string" - }, - "system_channel_id": { - "type": "string" - }, - "rules_channel_id": { - "type": "string" - }, - "afk_timeout": { - "type": "integer" - }, - "explicit_content_filter": { - "type": "integer" - }, - "afk_channel_id": { - "type": "string" - }, - "bans": { - "type": "array", - "items": { - "$ref": "#/definitions/Ban" - } - }, - "default_message_notifications": { - "type": "integer" - }, - "discovery_splash": { - "type": "string" - }, - "features": { - "type": "array", - "items": { - "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" - }, - "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" - }, - "preferred_locale": { - "type": "string" - }, - "premium_subscription_count": { - "type": "integer" - }, - "premium_tier": { - "type": "integer" - }, - "public_updates_channel_id": { - "type": "string" - }, - "splash": { - "type": "string" - }, - "system_channel_flags": { - "type": "integer" - }, - "verification_level": { - "type": "integer" - }, - "welcome_screen": { - "$ref": "#/definitions/GuildWelcomeScreen" - }, - "widget_channel_id": { - "type": "string" - }, - "widget_enabled": { - "type": "boolean" - }, - "nsfw_level": { - "type": "integer" - }, - "permissions": { - "type": "integer" - }, - "premium_progress_bar_enabled": { - "type": "boolean" - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "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 - }, - "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" - ] - }, - "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 - } - }, - "additionalProperties": false, - "required": [ - "maxAttachmentSize", - "maxBulkDelete", - "maxCharacters", - "maxEmbedDownloadSize", - "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": {} - }, - "additionalProperties": false, - "required": [ - "auth", - "channel", - "guild", - "webhook" - ] - }, - "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" - ] - }, - "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" - ] - }, - "Badge": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "description": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "link": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "description", - "icon", - "id" - ] - }, - "TokenResponse": { - "type": "object", - "properties": { - "token": { - "type": "string" - }, - "settings": { - "$ref": "#/definitions/UserSettings" - } - }, - "additionalProperties": false, - "required": [ - "settings", - "token" - ] - }, - "MFAResponse": { - "type": "object", - "properties": { - "ticket": { - "type": "string" - }, - "mfa": { - "type": "boolean", - "enum": [ - true - ] - }, - "sms": { - "type": "boolean", - "enum": [ - false - ] - }, - "token": { - "type": "null" - } - }, - "additionalProperties": false, - "required": [ - "mfa", - "sms", - "ticket", - "token" - ] - }, - "WebAuthnResponse": { - "type": "object", - "properties": { - "webauthn": { - "type": "string" - }, - "ticket": { - "type": "string" - }, - "mfa": { - "type": "boolean", - "enum": [ - true - ] - }, - "sms": { - "type": "boolean", - "enum": [ - false - ] - }, - "token": { - "type": "null" - } - }, - "additionalProperties": false, - "required": [ - "mfa", - "sms", - "ticket", - "token", - "webauthn" - ] - } - }, "$schema": "http://json-schema.org/draft-07/schema#" }, "BanModeratorSchema": { @@ -43302,4772 +209,6 @@ "id", "user_id" ], - "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, - "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" - ] - }, - "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 - }, - "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": { - "enum": [ - 0, - 1, - 2, - 4, - 5 - ], - "type": "number" - }, - "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", - "enum": [ - 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", - "enum": [ - 2 - ] - }, - "ButtonStyle": { - "enum": [ - 1, - 2, - 3, - 4, - 5, - 6 - ], - "type": "number" - }, - "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", - "enum": [ - 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", - "enum": [ - 4 - ] - }, - "TextInputStyle": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "Guild": { - "type": "object", - "properties": { - "afk_channel_id": { - "type": "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": "string" - }, - "public_updates_channel": { - "$ref": "#/definitions/Channel" - }, - "rules_channel_id": { - "type": "string" - }, - "rules_channel": { - "type": "string" - }, - "region": { - "type": "string" - }, - "splash": { - "type": "string" - }, - "system_channel_id": { - "type": "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" - }, - "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", - "default_thread_rate_limit_per_user", - "flags", - "id", - "nsfw", - "owner", - "parent_id", - "position", - "type" - ] - }, - "ChannelType": { - "enum": [ - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 2, - 255, - 3, - 33, - 34, - 35, - 4, - 5, - 6, - 64, - 7, - 8, - 9 - ], - "type": "number" - }, - "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", - "settings", - "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" - ] - }, - "ClientStatus": { - "type": "object", - "properties": { - "desktop": { - "type": "string" - }, - "mobile": { - "type": "string" - }, - "web": { - "type": "string" - }, - "embedded": { - "type": "string" - } - }, - "additionalProperties": false - }, - "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": { - "enum": [ - 1, - 2, - 3, - 4 - ], - "type": "number" - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "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": { - "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" - } - }, - "additionalProperties": false, - "required": [ - "message_id" - ] - }, - "referenced_message": { - "$ref": "#/definitions/Message" - }, - "interaction": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/InteractionType" - }, - "name": { - "type": "string" - }, - "user_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "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", - "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" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "color", - "flags", - "guild", - "guild_id", - "hoist", - "id", - "managed", - "mentionable", - "name", - "permissions", - "position" - ] - }, - "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": "number", - "enum": [ - 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" - ] - }, - "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": { - "enum": [ - 1, - 2, - 3 - ], - "type": "number" - }, - "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" - }, - "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" - } - }, - "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", - "team", - "team_id", - "user", - "user_id" - ] - }, - "TeamMemberState": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "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": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "StickerFormatType": { - "enum": [ - 0, - 1, - 2, - 3 - ], - "type": "number" - }, - "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" - ] - }, - "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" - ] - }, - "MessageType": { - "enum": [ - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 19, - 2, - 20, - 255, - 3, - 4, - 41, - 42, - 43, - 5, - 50, - 6, - 63, - 7, - 8, - 9 - ], - "type": "number" - }, - "InteractionType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, - "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" - ] - }, - "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" - ] - }, - "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", - "enum": [ - true - ] - } - }, - "additionalProperties": false, - "required": [ - "attachments", - "author", - "channel_id", - "components", - "edited_timestamp", - "embeds", - "flags", - "hit", - "id", - "mention_roles", - "mentions", - "pinned", - "poll", - "timestamp", - "tts", - "type" - ] - }, - "PublicUser": { - "type": "object", - "properties": { - "id": { - "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" - ] - }, - "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" - ] - }, - "Snowflake": { - "description": "A container for useful snowflake-related methods.", - "type": "object", - "additionalProperties": false - }, - "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" - ] - }, - "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" - ] - }, - "APIGuild": { - "type": "object", - "properties": { - "reload": { - "description": "Reloads entity data from the database.", - "type": "object", - "additionalProperties": false - }, - "name": { - "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" - } - }, - "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 - }, - "remove": { - "description": "Removes current entity from the database.", - "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" - }, - "description": { - "type": "string" - }, - "unavailable": { - "type": "boolean" - }, - "channels": { - "type": "array", - "items": { - "$ref": "#/definitions/Channel" - } - }, - "region": { - "type": "string" - }, - "system_channel_id": { - "type": "string" - }, - "rules_channel_id": { - "type": "string" - }, - "afk_timeout": { - "type": "integer" - }, - "explicit_content_filter": { - "type": "integer" - }, - "afk_channel_id": { - "type": "string" - }, - "bans": { - "type": "array", - "items": { - "$ref": "#/definitions/Ban" - } - }, - "default_message_notifications": { - "type": "integer" - }, - "discovery_splash": { - "type": "string" - }, - "features": { - "type": "array", - "items": { - "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" - }, - "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" - }, - "preferred_locale": { - "type": "string" - }, - "premium_subscription_count": { - "type": "integer" - }, - "premium_tier": { - "type": "integer" - }, - "public_updates_channel_id": { - "type": "string" - }, - "splash": { - "type": "string" - }, - "system_channel_flags": { - "type": "integer" - }, - "verification_level": { - "type": "integer" - }, - "welcome_screen": { - "$ref": "#/definitions/GuildWelcomeScreen" - }, - "widget_channel_id": { - "type": "string" - }, - "widget_enabled": { - "type": "boolean" - }, - "nsfw_level": { - "type": "integer" - }, - "permissions": { - "type": "integer" - }, - "premium_progress_bar_enabled": { - "type": "boolean" - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "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 - }, - "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" - ] - }, - "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 - } - }, - "additionalProperties": false, - "required": [ - "maxAttachmentSize", - "maxBulkDelete", - "maxCharacters", - "maxEmbedDownloadSize", - "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": {} - }, - "additionalProperties": false, - "required": [ - "auth", - "channel", - "guild", - "webhook" - ] - }, - "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" - ] - }, - "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" - ] - }, - "Badge": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "description": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "link": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "description", - "icon", - "id" - ] - }, - "TokenResponse": { - "type": "object", - "properties": { - "token": { - "type": "string" - }, - "settings": { - "$ref": "#/definitions/UserSettings" - } - }, - "additionalProperties": false, - "required": [ - "settings", - "token" - ] - }, - "MFAResponse": { - "type": "object", - "properties": { - "ticket": { - "type": "string" - }, - "mfa": { - "type": "boolean", - "enum": [ - true - ] - }, - "sms": { - "type": "boolean", - "enum": [ - false - ] - }, - "token": { - "type": "null" - } - }, - "additionalProperties": false, - "required": [ - "mfa", - "sms", - "ticket", - "token" - ] - }, - "WebAuthnResponse": { - "type": "object", - "properties": { - "webauthn": { - "type": "string" - }, - "ticket": { - "type": "string" - }, - "mfa": { - "type": "boolean", - "enum": [ - true - ] - }, - "sms": { - "type": "boolean", - "enum": [ - false - ] - }, - "token": { - "type": "null" - } - }, - "additionalProperties": false, - "required": [ - "mfa", - "sms", - "ticket", - "token", - "webauthn" - ] - } - }, "$schema": "http://json-schema.org/draft-07/schema#" }, "BanRegistrySchema": { @@ -48099,4772 +240,6 @@ "id", "user_id" ], - "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, - "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" - ] - }, - "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 - }, - "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": { - "enum": [ - 0, - 1, - 2, - 4, - 5 - ], - "type": "number" - }, - "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", - "enum": [ - 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", - "enum": [ - 2 - ] - }, - "ButtonStyle": { - "enum": [ - 1, - 2, - 3, - 4, - 5, - 6 - ], - "type": "number" - }, - "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", - "enum": [ - 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", - "enum": [ - 4 - ] - }, - "TextInputStyle": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "Guild": { - "type": "object", - "properties": { - "afk_channel_id": { - "type": "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": "string" - }, - "public_updates_channel": { - "$ref": "#/definitions/Channel" - }, - "rules_channel_id": { - "type": "string" - }, - "rules_channel": { - "type": "string" - }, - "region": { - "type": "string" - }, - "splash": { - "type": "string" - }, - "system_channel_id": { - "type": "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" - }, - "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", - "default_thread_rate_limit_per_user", - "flags", - "id", - "nsfw", - "owner", - "parent_id", - "position", - "type" - ] - }, - "ChannelType": { - "enum": [ - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 2, - 255, - 3, - 33, - 34, - 35, - 4, - 5, - 6, - 64, - 7, - 8, - 9 - ], - "type": "number" - }, - "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", - "settings", - "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" - ] - }, - "ClientStatus": { - "type": "object", - "properties": { - "desktop": { - "type": "string" - }, - "mobile": { - "type": "string" - }, - "web": { - "type": "string" - }, - "embedded": { - "type": "string" - } - }, - "additionalProperties": false - }, - "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": { - "enum": [ - 1, - 2, - 3, - 4 - ], - "type": "number" - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "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": { - "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" - } - }, - "additionalProperties": false, - "required": [ - "message_id" - ] - }, - "referenced_message": { - "$ref": "#/definitions/Message" - }, - "interaction": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/InteractionType" - }, - "name": { - "type": "string" - }, - "user_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "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", - "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" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "color", - "flags", - "guild", - "guild_id", - "hoist", - "id", - "managed", - "mentionable", - "name", - "permissions", - "position" - ] - }, - "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": "number", - "enum": [ - 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" - ] - }, - "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": { - "enum": [ - 1, - 2, - 3 - ], - "type": "number" - }, - "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" - }, - "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" - } - }, - "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", - "team", - "team_id", - "user", - "user_id" - ] - }, - "TeamMemberState": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "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": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "StickerFormatType": { - "enum": [ - 0, - 1, - 2, - 3 - ], - "type": "number" - }, - "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" - ] - }, - "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" - ] - }, - "MessageType": { - "enum": [ - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 19, - 2, - 20, - 255, - 3, - 4, - 41, - 42, - 43, - 5, - 50, - 6, - 63, - 7, - 8, - 9 - ], - "type": "number" - }, - "InteractionType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, - "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" - ] - }, - "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" - ] - }, - "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", - "enum": [ - true - ] - } - }, - "additionalProperties": false, - "required": [ - "attachments", - "author", - "channel_id", - "components", - "edited_timestamp", - "embeds", - "flags", - "hit", - "id", - "mention_roles", - "mentions", - "pinned", - "poll", - "timestamp", - "tts", - "type" - ] - }, - "PublicUser": { - "type": "object", - "properties": { - "id": { - "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" - ] - }, - "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" - ] - }, - "Snowflake": { - "description": "A container for useful snowflake-related methods.", - "type": "object", - "additionalProperties": false - }, - "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" - ] - }, - "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" - ] - }, - "APIGuild": { - "type": "object", - "properties": { - "reload": { - "description": "Reloads entity data from the database.", - "type": "object", - "additionalProperties": false - }, - "name": { - "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" - } - }, - "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 - }, - "remove": { - "description": "Removes current entity from the database.", - "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" - }, - "description": { - "type": "string" - }, - "unavailable": { - "type": "boolean" - }, - "channels": { - "type": "array", - "items": { - "$ref": "#/definitions/Channel" - } - }, - "region": { - "type": "string" - }, - "system_channel_id": { - "type": "string" - }, - "rules_channel_id": { - "type": "string" - }, - "afk_timeout": { - "type": "integer" - }, - "explicit_content_filter": { - "type": "integer" - }, - "afk_channel_id": { - "type": "string" - }, - "bans": { - "type": "array", - "items": { - "$ref": "#/definitions/Ban" - } - }, - "default_message_notifications": { - "type": "integer" - }, - "discovery_splash": { - "type": "string" - }, - "features": { - "type": "array", - "items": { - "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" - }, - "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" - }, - "preferred_locale": { - "type": "string" - }, - "premium_subscription_count": { - "type": "integer" - }, - "premium_tier": { - "type": "integer" - }, - "public_updates_channel_id": { - "type": "string" - }, - "splash": { - "type": "string" - }, - "system_channel_flags": { - "type": "integer" - }, - "verification_level": { - "type": "integer" - }, - "welcome_screen": { - "$ref": "#/definitions/GuildWelcomeScreen" - }, - "widget_channel_id": { - "type": "string" - }, - "widget_enabled": { - "type": "boolean" - }, - "nsfw_level": { - "type": "integer" - }, - "permissions": { - "type": "integer" - }, - "premium_progress_bar_enabled": { - "type": "boolean" - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "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 - }, - "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" - ] - }, - "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 - } - }, - "additionalProperties": false, - "required": [ - "maxAttachmentSize", - "maxBulkDelete", - "maxCharacters", - "maxEmbedDownloadSize", - "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": {} - }, - "additionalProperties": false, - "required": [ - "auth", - "channel", - "guild", - "webhook" - ] - }, - "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" - ] - }, - "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" - ] - }, - "Badge": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "description": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "link": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "description", - "icon", - "id" - ] - }, - "TokenResponse": { - "type": "object", - "properties": { - "token": { - "type": "string" - }, - "settings": { - "$ref": "#/definitions/UserSettings" - } - }, - "additionalProperties": false, - "required": [ - "settings", - "token" - ] - }, - "MFAResponse": { - "type": "object", - "properties": { - "ticket": { - "type": "string" - }, - "mfa": { - "type": "boolean", - "enum": [ - true - ] - }, - "sms": { - "type": "boolean", - "enum": [ - false - ] - }, - "token": { - "type": "null" - } - }, - "additionalProperties": false, - "required": [ - "mfa", - "sms", - "ticket", - "token" - ] - }, - "WebAuthnResponse": { - "type": "object", - "properties": { - "webauthn": { - "type": "string" - }, - "ticket": { - "type": "string" - }, - "mfa": { - "type": "boolean", - "enum": [ - true - ] - }, - "sms": { - "type": "boolean", - "enum": [ - false - ] - }, - "token": { - "type": "null" - } - }, - "additionalProperties": false, - "required": [ - "mfa", - "sms", - "ticket", - "token", - "webauthn" - ] - } - }, "$schema": "http://json-schema.org/draft-07/schema#" }, "BotModifySchema": { @@ -52878,4772 +253,6 @@ } }, "additionalProperties": false, - "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, - "ChannelPermissionOverwriteType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, - "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" - ] - }, - "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 - }, - "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": { - "enum": [ - 0, - 1, - 2, - 4, - 5 - ], - "type": "number" - }, - "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", - "enum": [ - 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", - "enum": [ - 2 - ] - }, - "ButtonStyle": { - "enum": [ - 1, - 2, - 3, - 4, - 5, - 6 - ], - "type": "number" - }, - "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", - "enum": [ - 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", - "enum": [ - 4 - ] - }, - "TextInputStyle": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "Guild": { - "type": "object", - "properties": { - "afk_channel_id": { - "type": "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": "string" - }, - "public_updates_channel": { - "$ref": "#/definitions/Channel" - }, - "rules_channel_id": { - "type": "string" - }, - "rules_channel": { - "type": "string" - }, - "region": { - "type": "string" - }, - "splash": { - "type": "string" - }, - "system_channel_id": { - "type": "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" - }, - "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", - "default_thread_rate_limit_per_user", - "flags", - "id", - "nsfw", - "owner", - "parent_id", - "position", - "type" - ] - }, - "ChannelType": { - "enum": [ - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 2, - 255, - 3, - 33, - 34, - 35, - 4, - 5, - 6, - 64, - 7, - 8, - 9 - ], - "type": "number" - }, - "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", - "settings", - "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" - ] - }, - "ClientStatus": { - "type": "object", - "properties": { - "desktop": { - "type": "string" - }, - "mobile": { - "type": "string" - }, - "web": { - "type": "string" - }, - "embedded": { - "type": "string" - } - }, - "additionalProperties": false - }, - "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": { - "enum": [ - 1, - 2, - 3, - 4 - ], - "type": "number" - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "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": { - "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" - } - }, - "additionalProperties": false, - "required": [ - "message_id" - ] - }, - "referenced_message": { - "$ref": "#/definitions/Message" - }, - "interaction": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/InteractionType" - }, - "name": { - "type": "string" - }, - "user_id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "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", - "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" - }, - "id": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "color", - "flags", - "guild", - "guild_id", - "hoist", - "id", - "managed", - "mentionable", - "name", - "permissions", - "position" - ] - }, - "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": "number", - "enum": [ - 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" - ] - }, - "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": { - "enum": [ - 1, - 2, - 3 - ], - "type": "number" - }, - "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" - }, - "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" - } - }, - "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", - "team", - "team_id", - "user", - "user_id" - ] - }, - "TeamMemberState": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "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": { - "enum": [ - 1, - 2 - ], - "type": "number" - }, - "StickerFormatType": { - "enum": [ - 0, - 1, - 2, - 3 - ], - "type": "number" - }, - "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" - ] - }, - "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" - ] - }, - "MessageType": { - "enum": [ - 0, - 1, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 19, - 2, - 20, - 255, - 3, - 4, - 41, - 42, - 43, - 5, - 50, - 6, - 63, - 7, - 8, - 9 - ], - "type": "number" - }, - "InteractionType": { - "enum": [ - 0, - 1, - 2 - ], - "type": "number" - }, - "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" - ] - }, - "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" - ] - }, - "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", - "enum": [ - true - ] - } - }, - "additionalProperties": false, - "required": [ - "attachments", - "author", - "channel_id", - "components", - "edited_timestamp", - "embeds", - "flags", - "hit", - "id", - "mention_roles", - "mentions", - "pinned", - "poll", - "timestamp", - "tts", - "type" - ] - }, - "PublicUser": { - "type": "object", - "properties": { - "id": { - "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" - ] - }, - "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" - ] - }, - "Snowflake": { - "description": "A container for useful snowflake-related methods.", - "type": "object", - "additionalProperties": false - }, - "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" - ] - }, - "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" - ] - }, - "APIGuild": { - "type": "object", - "properties": { - "reload": { - "description": "Reloads entity data from the database.", - "type": "object", - "additionalProperties": false - }, - "name": { - "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" - } - }, - "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 - }, - "remove": { - "description": "Removes current entity from the database.", - "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" - }, - "description": { - "type": "string" - }, - "unavailable": { - "type": "boolean" - }, - "channels": { - "type": "array", - "items": { - "$ref": "#/definitions/Channel" - } - }, - "region": { - "type": "string" - }, - "system_channel_id": { - "type": "string" - }, - "rules_channel_id": { - "type": "string" - }, - "afk_timeout": { - "type": "integer" - }, - "explicit_content_filter": { - "type": "integer" - }, - "afk_channel_id": { - "type": "string" - }, - "bans": { - "type": "array", - "items": { - "$ref": "#/definitions/Ban" - } - }, - "default_message_notifications": { - "type": "integer" - }, - "discovery_splash": { - "type": "string" - }, - "features": { - "type": "array", - "items": { - "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" - }, - "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" - }, - "preferred_locale": { - "type": "string" - }, - "premium_subscription_count": { - "type": "integer" - }, - "premium_tier": { - "type": "integer" - }, - "public_updates_channel_id": { - "type": "string" - }, - "splash": { - "type": "string" - }, - "system_channel_flags": { - "type": "integer" - }, - "verification_level": { - "type": "integer" - }, - "welcome_screen": { - "$ref": "#/definitions/GuildWelcomeScreen" - }, - "widget_channel_id": { - "type": "string" - }, - "widget_enabled": { - "type": "boolean" - }, - "nsfw_level": { - "type": "integer" - }, - "permissions": { - "type": "integer" - }, - "premium_progress_bar_enabled": { - "type": "boolean" - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "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" - ] - }, - "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 - }, - "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" - ] - }, - "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 - } - }, - "additionalProperties": false, - "required": [ - "maxAttachmentSize", - "maxBulkDelete", - "maxCharacters", - "maxEmbedDownloadSize", - "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": {} - }, - "additionalProperties": false, - "required": [ - "auth", - "channel", - "guild", - "webhook" - ] - }, - "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" - ] - }, - "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" - ] - }, - "Badge": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "description": { - "type": "string" - }, - "icon": { - "type": "string" - }, - "link": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "description", - "icon", - "id" - ] - }, - "TokenResponse": { - "type": "object", - "properties": { - "token": { - "type": "string" - }, - "settings": { - "$ref": "#/definitions/UserSettings" - } - }, - "additionalProperties": false, - "required": [ - "settings", - "token" - ] - }, - "MFAResponse": { - "type": "object", - "properties": { - "ticket": { - "type": "string" - }, - "mfa": { - "type": "boolean", - "enum": [ - true - ] - }, - "sms": { - "type": "boolean", - "enum": [ - false - ] - }, - "token": { - "type": "null" - } - }, - "additionalProperties": false, - "required": [ - "mfa", - "sms", - "ticket", - "token" - ] - }, - "WebAuthnResponse": { - "type": "object", - "properties": { - "webauthn": { - "type": "string" - }, - "ticket": { - "type": "string" - }, - "mfa": { - "type": "boolean", - "enum": [ - true - ] - }, - "sms": { - "type": "boolean", - "enum": [ - false - ] - }, - "token": { - "type": "null" - } - }, - "additionalProperties": false, - "required": [ - "mfa", - "sms", - "ticket", - "token", - "webauthn" - ] - } - }, "$schema": "http://json-schema.org/draft-07/schema#" }, "ChannelModifySchema": { @@ -57760,96 +369,6 @@ }, "additionalProperties": false, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -61726,14 +4245,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -62326,7 +4845,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -62336,6 +4857,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -62551,96 +5088,6 @@ "type" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -66517,14 +8964,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -67117,7 +9564,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -67127,6 +9576,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -67342,96 +9807,6 @@ ] }, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -71308,14 +13683,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -71908,7 +14283,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -71918,6 +14295,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -72128,96 +14521,6 @@ "nonce" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -76094,14 +18397,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -76694,7 +18997,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -76704,6 +19009,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -76950,96 +19271,6 @@ "user_id" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -80916,14 +23147,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -81516,7 +23747,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -81526,6 +23759,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -81741,96 +23990,6 @@ "state" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -85707,14 +27866,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -86307,7 +28466,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -86317,6 +28478,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -86523,96 +28700,6 @@ }, "additionalProperties": false, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -90489,14 +32576,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -91089,7 +33176,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -91099,6 +33188,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -91308,96 +33413,6 @@ "recipients" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -95274,14 +37289,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -95874,7 +37889,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -95884,6 +37901,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -96102,96 +38135,6 @@ "image" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -100068,14 +42011,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -100668,7 +42611,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -100678,6 +42623,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -100884,96 +42845,6 @@ }, "additionalProperties": false, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -104850,14 +46721,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -105450,7 +47321,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -105460,6 +47333,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -105666,96 +47555,6 @@ "login" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -109632,14 +51431,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -110232,7 +52031,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -110242,6 +52043,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -110467,96 +52284,6 @@ }, "additionalProperties": false, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -114433,14 +56160,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -115033,7 +56760,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -115043,6 +56772,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -115252,96 +56997,6 @@ "name" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -119218,14 +60873,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -119818,7 +61473,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -119828,6 +61485,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -120097,96 +61770,6 @@ }, "additionalProperties": false, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -124063,14 +65646,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -124663,7 +66246,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -124673,6 +66258,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -124901,96 +66502,6 @@ }, "additionalProperties": false, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -128867,14 +70378,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -129467,7 +70978,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -129477,6 +70990,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -129846,96 +71375,6 @@ "token" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -133812,14 +75251,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -134412,7 +75851,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -134422,6 +75863,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -134649,96 +76106,6 @@ }, "additionalProperties": false, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -138615,14 +79982,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -139215,7 +80582,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -139225,6 +80594,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -139462,96 +80847,6 @@ "guild_id" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -143428,14 +84723,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -144028,7 +85323,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -144038,6 +85335,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -144257,96 +85570,6 @@ "password" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -148223,14 +89446,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -148823,7 +90046,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -148833,6 +90058,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -149058,96 +90299,6 @@ }, "additionalProperties": false, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -153024,14 +94175,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -153624,7 +94775,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -153634,6 +94787,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -153849,96 +95018,6 @@ }, "additionalProperties": false, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -157815,14 +98894,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -158415,7 +99494,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -158425,6 +99506,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -158628,96 +99725,6 @@ }, "additionalProperties": false, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -162594,14 +103601,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -163194,7 +104201,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -163204,6 +104213,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -163544,96 +104569,6 @@ }, "additionalProperties": false, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -167510,14 +108445,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -168110,7 +109045,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -168120,6 +109057,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -168314,96 +109267,6 @@ "PollCreationSchema": { "$ref": "#/definitions/PollCreationSchema", "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -172280,14 +113143,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -172880,7 +113743,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -172890,6 +113755,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -173084,9 +113965,6 @@ "MessageEditSchema": { "type": "object", "properties": { - "embed": { - "$ref": "#/definitions/Embed" - }, "file": { "type": "object", "properties": { @@ -173099,29 +113977,12 @@ "filename" ] }, + "embed": { + "$ref": "#/definitions/Embed" + }, "flags": { "type": "integer" }, - "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" - ] - } - }, "content": { "type": "string" }, @@ -173194,6 +114055,26 @@ "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" + ] + } + }, "sticker_ids": { "type": "array", "items": { @@ -173227,96 +114108,6 @@ }, "additionalProperties": false, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -177193,14 +117984,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -177793,7 +118584,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -177803,6 +118596,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -178009,96 +118818,6 @@ "password" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -181975,14 +122694,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -182575,7 +123294,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -182585,6 +123306,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -182799,96 +123536,6 @@ "tags" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -186765,14 +127412,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -187365,7 +128012,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -187375,6 +128024,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -187582,96 +128247,6 @@ "token" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -191548,14 +132123,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -192148,7 +132723,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -192158,6 +132735,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -192365,96 +132958,6 @@ "before" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -196331,14 +136834,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -196931,7 +137434,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -196941,6 +137446,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -197183,96 +137704,6 @@ "username" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -201149,14 +141580,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -201749,7 +142180,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -201759,6 +142192,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -201966,96 +142415,6 @@ "username" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -205932,14 +146291,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -206532,7 +146891,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -206542,6 +146903,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -206748,96 +147125,6 @@ }, "additionalProperties": false, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -210714,14 +151001,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -211314,7 +151601,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -211324,6 +151613,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -211519,7 +151824,21 @@ "type": "object", "properties": { "guild_id": { - "type": "string" + "anyOf": [ + { + "type": "array", + "items": [ + { + "type": "string" + } + ], + "minItems": 1, + "maxItems": 1 + }, + { + "type": "string" + } + ] }, "query": { "type": "string" @@ -211552,96 +151871,6 @@ "guild_id" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -215518,14 +155747,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -216118,7 +156347,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -216128,6 +156359,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -216349,96 +156596,6 @@ }, "additionalProperties": false, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -220315,14 +160472,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -220915,7 +161072,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -220925,6 +161084,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -221135,96 +161310,6 @@ ] }, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -225101,14 +165186,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -225701,7 +165786,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -225711,6 +165798,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -225995,96 +166098,6 @@ "protocol" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -229961,14 +169974,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -230561,7 +170574,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -230571,6 +170586,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -230777,96 +170808,6 @@ "name" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -234743,14 +174684,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -235343,7 +175284,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -235353,6 +175296,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -235559,96 +175518,6 @@ "name" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -239525,14 +179394,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -240125,7 +179994,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -240135,6 +180006,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -240338,96 +180225,6 @@ "code" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -244304,14 +184101,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -244904,7 +184701,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -244914,6 +184713,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -245123,96 +184938,6 @@ "password" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -249089,14 +188814,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -249689,7 +189414,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -249699,6 +189426,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -249918,96 +189661,6 @@ "ticket" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -253884,14 +193537,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -254484,7 +194137,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -254494,6 +194149,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -254697,96 +194368,6 @@ "user_id" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -258663,14 +198244,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -259263,7 +198844,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -259273,6 +198856,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -259525,96 +199124,6 @@ }, "additionalProperties": false, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -263491,14 +203000,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -264091,7 +203600,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -264101,6 +203612,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -264338,96 +203865,6 @@ }, "additionalProperties": false, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -268304,14 +207741,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -268904,7 +208341,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -268914,6 +208353,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -269117,96 +208572,6 @@ "note" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -273083,14 +212448,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -273683,7 +213048,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -273693,6 +213060,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -273921,96 +213304,6 @@ }, "additionalProperties": false, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -277887,14 +217180,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -278487,7 +217780,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -278497,6 +217792,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -278820,96 +218131,6 @@ }, "additionalProperties": false, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -282786,14 +222007,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -283386,7 +222607,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -283396,6 +222619,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -283598,96 +222837,6 @@ }, "additionalProperties": false, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -287564,14 +226713,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -288164,7 +227313,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -288174,6 +227325,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -288415,96 +227582,6 @@ "user_id" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -292381,14 +231458,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -292981,7 +232058,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -292991,6 +232070,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -293220,96 +232315,6 @@ "self_mute" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -297186,14 +236191,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -297786,7 +236791,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -297796,6 +236803,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -298077,96 +237100,6 @@ "video_ssrc" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -302043,14 +240976,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -302643,7 +241576,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -302653,6 +241588,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -302856,96 +241807,6 @@ "password" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -306822,14 +245683,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -307422,7 +246283,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -307432,6 +246295,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -307643,96 +246522,6 @@ "ticket" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -311609,14 +250398,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -312209,7 +250998,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -312219,6 +251010,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -312420,96 +251227,6 @@ } ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -316386,14 +255103,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -316986,7 +255703,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -316996,6 +255715,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -317203,96 +255938,6 @@ "ticket" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -321169,14 +259814,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -321769,7 +260414,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -321779,6 +260426,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -321986,96 +260649,6 @@ "name" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -325952,14 +264525,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -326552,7 +265125,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -326562,6 +265137,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -326855,96 +265446,6 @@ }, "additionalProperties": false, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -330821,14 +269322,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -331421,7 +269922,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -331431,6 +269934,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -331638,96 +270157,6 @@ "enabled" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -335604,14 +274033,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -336204,7 +274633,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -336214,6 +274645,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -336453,96 +274900,6 @@ "message" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -340419,14 +278776,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -341019,7 +279376,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -341029,6 +279388,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -341240,96 +279615,6 @@ "captcha_sitekey" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -345206,14 +283491,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -345806,7 +284091,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -345816,6 +284103,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -346017,96 +284320,6 @@ } ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -349983,14 +288196,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -350583,7 +288796,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -350593,6 +288808,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -350800,96 +289031,6 @@ "regenerate_nonce" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -354766,14 +292907,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -355366,7 +293507,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -355376,6 +293519,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -355594,96 +293753,6 @@ "total" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -359560,14 +297629,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -360160,7 +298229,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -360170,6 +298241,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -360402,96 +298489,6 @@ "url" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -364368,14 +302365,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -364968,7 +302965,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -364978,6 +302977,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -365181,96 +303196,6 @@ "url" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -369147,14 +307072,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -369747,7 +307672,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -369757,6 +307684,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -369963,96 +307906,6 @@ "tokens" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -373929,14 +311782,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -374529,7 +312382,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -374539,6 +312394,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -374774,96 +312645,6 @@ "user" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -378740,14 +316521,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -379340,7 +317121,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -379350,6 +317133,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -379553,96 +317352,6 @@ "id" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -383519,14 +321228,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -384119,7 +321828,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -384129,6 +321840,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -384411,96 +322138,6 @@ "valid_rules_channel" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -388377,14 +326014,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -388977,7 +326614,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -388987,6 +326626,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -389197,96 +326852,6 @@ "total_results" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -393163,14 +330728,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -393763,7 +331328,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -393773,6 +331340,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -393976,96 +331559,6 @@ "pruned" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -397942,14 +335435,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -398542,7 +336035,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -398552,6 +336047,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -398755,96 +336266,6 @@ "purged" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -402721,14 +340142,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -403321,7 +340742,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -403331,6 +340754,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -403541,96 +340980,6 @@ "recommended_guilds" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -407507,14 +344856,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -408107,7 +345456,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -408117,6 +345468,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -408324,96 +345691,6 @@ } ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -412290,14 +349567,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -412890,7 +350167,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -412900,6 +350179,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -413103,96 +350398,6 @@ "code" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -417069,14 +354274,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -417669,7 +354874,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -417679,6 +354886,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -417957,96 +355180,6 @@ "presence_count" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -421923,14 +359056,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -422523,7 +359656,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -422533,6 +359668,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -422747,96 +359898,6 @@ "enabled" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -426713,14 +363774,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -427313,7 +364374,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -427323,6 +364386,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -427538,96 +364617,6 @@ "gateway" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -431504,14 +368493,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -432104,7 +369093,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -432114,6 +369105,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -432379,96 +369386,6 @@ "ping" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -436345,14 +373262,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -436945,7 +373862,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -436955,6 +373874,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -437179,96 +374114,6 @@ "counts" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -441145,14 +377990,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -441745,7 +378590,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -441755,6 +378602,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -441985,96 +378848,6 @@ "promotional_email_opt_in" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -445951,14 +382724,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -446551,7 +383324,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -446561,6 +383336,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -446785,96 +383576,6 @@ "stickers" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -450751,14 +387452,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -451351,7 +388052,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -451361,6 +388064,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -451564,96 +388283,6 @@ "location" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -455530,14 +392159,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -456130,7 +392759,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -456140,6 +392771,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -456371,96 +393018,6 @@ "width" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -460337,14 +396894,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -460937,7 +397494,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -460947,6 +397506,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -461190,96 +397765,6 @@ "gifs" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -465156,14 +401641,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -465756,7 +402241,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -465766,6 +402253,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -465963,96 +402466,6 @@ "$ref": "#/definitions/TenorGifResponse" }, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -469929,14 +406342,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -470529,7 +406942,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -470539,6 +406954,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -470746,96 +407177,6 @@ "token" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -474712,14 +411053,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -475312,7 +411653,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -475322,6 +411665,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -475525,96 +411884,6 @@ "token" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -479491,14 +415760,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -480091,7 +416360,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -480101,6 +416372,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -480311,96 +416598,6 @@ "token" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -484277,14 +420474,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -484877,7 +421074,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -484887,6 +421086,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -485301,96 +421516,6 @@ "widget_enabled" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -489267,14 +425392,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -489867,7 +425992,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -489877,6 +426004,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -490071,96 +426214,6 @@ "APIPublicUser": { "$ref": "#/definitions/PublicUser", "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -494037,14 +430090,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -494637,7 +430690,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -494647,6 +430702,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -494941,96 +431012,6 @@ "verified" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -498907,14 +434888,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -499507,7 +435488,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -499517,6 +435500,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -499714,96 +435713,6 @@ "$ref": "#/definitions/APIGuild" }, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -503680,14 +439589,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -504280,7 +440189,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -504290,6 +440201,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -504487,96 +440414,6 @@ "$ref": "#/definitions/DmChannelDTO" }, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -508453,14 +444290,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -509053,7 +444890,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -509063,6 +444902,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -509260,96 +445115,6 @@ "$ref": "#/definitions/BackupCode" }, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -513226,14 +448991,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -513826,7 +449591,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -513836,6 +449603,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -514133,96 +449916,6 @@ "verified" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -518099,14 +453792,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -518699,7 +454392,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -518709,6 +454404,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -518904,96 +454615,6 @@ "type": "array", "items": {}, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -522870,14 +458491,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -523470,7 +459091,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -523480,6 +459103,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -523675,96 +459314,6 @@ "type": "array", "items": {}, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -527641,14 +463190,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -528241,7 +463790,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -528251,6 +463802,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -528446,96 +464013,6 @@ "type": "array", "items": {}, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -532412,14 +467889,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -533012,7 +468489,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -533022,6 +468501,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -533219,96 +468714,6 @@ "$ref": "#/definitions/Application" }, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -537185,14 +472590,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -537785,7 +473190,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -537795,6 +473202,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -537992,96 +473415,6 @@ "$ref": "#/definitions/Invite" }, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -541958,14 +477291,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -542558,7 +477891,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -542568,6 +477903,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -542765,96 +478116,6 @@ "$ref": "#/definitions/Message" }, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -546731,14 +481992,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -547331,7 +482592,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -547341,6 +482604,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -547538,96 +482817,6 @@ "$ref": "#/definitions/Webhook" }, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -551504,14 +486693,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -552104,7 +487293,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -552114,6 +487305,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -552311,96 +487518,6 @@ "$ref": "#/definitions/Categories" }, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -556277,14 +491394,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -556877,7 +491994,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -556887,6 +492006,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -557148,96 +492283,6 @@ "tosPage" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -561114,14 +496159,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -561714,7 +496759,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -561724,6 +496771,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -561921,96 +496984,6 @@ "$ref": "#/definitions/Channel" }, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -565887,14 +500860,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -566487,7 +501460,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -566497,6 +501472,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -566694,96 +501685,6 @@ "$ref": "#/definitions/Emoji" }, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -570660,14 +505561,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -571260,7 +506161,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -571270,6 +506173,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -571467,96 +506386,6 @@ "$ref": "#/definitions/Member" }, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -575433,14 +510262,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -576033,7 +510862,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -576043,6 +510874,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -576287,96 +511134,6 @@ "user" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -580253,14 +515010,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -580853,7 +515610,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -580863,6 +515622,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -581296,96 +516071,6 @@ "widget_enabled" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -585262,14 +519947,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -585862,7 +520547,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -585872,6 +520559,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -586069,96 +520772,6 @@ "$ref": "#/definitions/Role" }, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -590035,14 +524648,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -590635,7 +525248,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -590645,6 +525260,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -590842,96 +525473,6 @@ "$ref": "#/definitions/Sticker" }, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -594808,14 +529349,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -595408,7 +529949,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -595418,6 +529961,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -595615,96 +530174,6 @@ "$ref": "#/definitions/Template" }, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -599581,14 +534050,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -600181,7 +534650,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -600191,6 +534662,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -600388,96 +534875,6 @@ "$ref": "#/definitions/GuildVoiceRegion" }, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -604354,14 +538751,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -604954,7 +539351,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -604964,6 +539363,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -605187,96 +539602,6 @@ "user" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -609153,14 +543478,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -609753,7 +544078,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -609763,6 +544090,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -609960,96 +544303,6 @@ "$ref": "#/definitions/StickerPack" }, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -613926,14 +548179,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -614526,7 +548779,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -614536,6 +548791,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -614731,96 +549002,6 @@ "type": "object", "additionalProperties": false, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -618697,14 +552878,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -619297,7 +553478,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -619307,6 +553490,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -619525,96 +553724,6 @@ "url" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -623491,14 +557600,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -624091,7 +558200,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -624101,6 +558212,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -624312,96 +558439,6 @@ "user_id" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -628278,14 +562315,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -628878,7 +562915,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -628888,6 +562927,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -629218,96 +563273,6 @@ "user_profile" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -633184,14 +567149,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -633784,7 +567749,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -633794,6 +567761,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -634015,96 +567998,6 @@ ] }, "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -637981,14 +571874,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -638581,7 +572474,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -638591,6 +572486,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -638806,96 +572717,6 @@ "user" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -642772,14 +576593,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -643372,7 +577193,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -643382,6 +577205,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -643589,96 +577428,6 @@ "name" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -647555,14 +581304,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -648155,7 +581904,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -648165,6 +581916,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -648372,96 +582139,6 @@ "user" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -652338,14 +586015,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -652938,7 +586615,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -652948,6 +586627,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -653142,96 +586837,6 @@ "ActivitySchema": { "$ref": "#/definitions/ActivitySchema", "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -657108,14 +590713,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -657708,7 +591313,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -657718,6 +591325,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -657927,96 +591550,6 @@ "user_ids" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -661893,14 +595426,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -662493,7 +596026,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -662503,6 +596038,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -662709,96 +596260,6 @@ "messages" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -666675,14 +600136,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -667275,7 +600736,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -667285,6 +600748,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -667506,96 +600985,6 @@ "token" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -671472,14 +604861,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -672072,7 +605461,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -672082,6 +605473,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -672307,96 +605714,6 @@ "webauthn" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -676273,14 +609590,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -676873,7 +610190,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -676883,6 +610202,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -677087,96 +610422,6 @@ } ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -681053,14 +614298,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -681653,7 +614898,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -681663,6 +614910,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -681866,96 +615129,6 @@ "nick" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -685832,14 +619005,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -686432,7 +619605,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -686442,6 +619617,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -686645,96 +619836,6 @@ "days" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -690611,14 +623712,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -691211,7 +624312,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -691221,6 +624324,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { @@ -691430,96 +624549,6 @@ "token" ], "definitions": { - "Headers": { - "type": "object", - "properties": { - "append": { - "type": "object", - "additionalProperties": false - }, - "delete": { - "type": "object", - "additionalProperties": false - }, - "get": { - "type": "object", - "additionalProperties": false - }, - "has": { - "type": "object", - "additionalProperties": false - }, - "set": { - "type": "object", - "additionalProperties": false - }, - "getSetCookie": { - "type": "object", - "additionalProperties": false - }, - "forEach": { - "description": "Performs the specified action for each element in an array.", - "type": "object", - "additionalProperties": false - }, - "keys": { - "description": "Returns an array consisting of the keys of the object", - "type": "object", - "additionalProperties": false - }, - "values": { - "type": "object", - "additionalProperties": false - }, - "entries": { - "description": "Returns an array consisting of the key value pairs of the object", - "type": "object", - "additionalProperties": false - }, - "__@iterator": { - "type": "object", - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "__@iterator", - "append", - "delete", - "entries", - "forEach", - "get", - "getSetCookie", - "has", - "keys", - "set", - "values" - ] - }, - "ResponseType": { - "enum": [ - "basic", - "cors", - "default", - "error", - "opaque", - "opaqueredirect" - ], - "type": "string" - }, - "ReadableStream": { - "description": "This Streams API interface represents a readable stream of byte data.", - "type": "object", - "properties": { - "locked": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "locked" - ] - }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -695396,14 +628425,14 @@ "APIGuild": { "type": "object", "properties": { + "name": { + "type": "string" + }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, - "name": { - "type": "string" - }, "id": { "type": "string" }, @@ -695996,7 +629025,9 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": {} + "auth": { + "$ref": "#/definitions/AuthRateLimit" + } }, "additionalProperties": false, "required": [ @@ -696006,6 +629037,22 @@ "webhook" ] }, + "AuthRateLimit": { + "type": "object", + "properties": { + "login": { + "$ref": "#/definitions/RateLimitOptions" + }, + "register": { + "$ref": "#/definitions/RateLimitOptions" + } + }, + "additionalProperties": false, + "required": [ + "login", + "register" + ] + }, "GlobalRateLimits": { "type": "object", "properties": { From 8e28f2539c493aab902a9eff190806caca5a9f34 Mon Sep 17 00:00:00 2001 From: TomatoCake <60300461+DEVTomatoCake@users.noreply.github.com> Date: Sat, 17 Aug 2024 15:39:55 +0200 Subject: [PATCH 05/16] Consistent username length requirement --- src/api/routes/auth/register.ts | 16 +++++++++++++--- src/util/schemas/RegisterSchema.ts | 7 +++---- src/util/schemas/UserModifySchema.ts | 3 +-- 3 files changed, 17 insertions(+), 9 deletions(-) diff --git a/src/api/routes/auth/register.ts b/src/api/routes/auth/register.ts index de1cbd3d..ea5de53b 100644 --- a/src/api/routes/auth/register.ts +++ b/src/api/routes/auth/register.ts @@ -1,17 +1,17 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ @@ -287,6 +287,16 @@ router.post( }); } + const { maxUsername } = Config.get().limits.user; + if (body.username.length > maxUsername) { + throw FieldErrors({ + username: { + code: "USERNAME_INVALID", + message: `Username must be less than ${maxUsername} in length`, + }, + }); + } + const user = await User.register({ ...body, req }); if (body.invite) { diff --git a/src/util/schemas/RegisterSchema.ts b/src/util/schemas/RegisterSchema.ts index 7b7de9c7..cfee0f02 100644 --- a/src/util/schemas/RegisterSchema.ts +++ b/src/util/schemas/RegisterSchema.ts @@ -1,17 +1,17 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ @@ -19,7 +19,6 @@ export interface RegisterSchema { /** * @minLength 2 - * @maxLength 32 */ username: string; /** diff --git a/src/util/schemas/UserModifySchema.ts b/src/util/schemas/UserModifySchema.ts index 4be6ad43..e4ed1071 100644 --- a/src/util/schemas/UserModifySchema.ts +++ b/src/util/schemas/UserModifySchema.ts @@ -18,8 +18,7 @@ export interface UserModifySchema { /** - * @minLength 1 - * @maxLength 100 + * @minLength 2 */ username?: string; avatar?: string | null; From 95bbccb6f723264e514618b18d1af9e3679e0e6d Mon Sep 17 00:00:00 2001 From: TomatoCake <60300461+DEVTomatoCake@users.noreply.github.com> Date: Sat, 17 Aug 2024 18:24:38 +0200 Subject: [PATCH 06/16] Same error message if username too long --- src/api/routes/auth/register.ts | 4 ++-- src/api/routes/users/@me/index.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/api/routes/auth/register.ts b/src/api/routes/auth/register.ts index ea5de53b..62152440 100644 --- a/src/api/routes/auth/register.ts +++ b/src/api/routes/auth/register.ts @@ -291,8 +291,8 @@ router.post( if (body.username.length > maxUsername) { throw FieldErrors({ username: { - code: "USERNAME_INVALID", - message: `Username must be less than ${maxUsername} in length`, + code: "BASE_TYPE_BAD_LENGTH", + message: `Must be between 2 and ${maxUsername} in length.`, }, }); } diff --git a/src/api/routes/users/@me/index.ts b/src/api/routes/users/@me/index.ts index 5caf0d11..9cd8bfda 100644 --- a/src/api/routes/users/@me/index.ts +++ b/src/api/routes/users/@me/index.ts @@ -155,8 +155,8 @@ router.patch( if (check_username.length > maxUsername) { throw FieldErrors({ username: { - code: "USERNAME_INVALID", - message: `Username must be less than ${maxUsername} in length`, + code: "BASE_TYPE_BAD_LENGTH", + message: `Must be between 2 and ${maxUsername} in length.`, }, }); } From e0b6dd05814453d54103d64d1631519019405a8b Mon Sep 17 00:00:00 2001 From: TomatoCake <60300461+DEVTomatoCake@users.noreply.github.com> Date: Sun, 18 Aug 2024 06:45:11 +0200 Subject: [PATCH 07/16] Fix bug & handle 75k/large_threshold in opcode 8 Also fixes a bug that only allowed "guild_id" and "user_ids" to be an Array instead of also a String Co-Authored-By: Puyodead1 --- assets/openapi.json | 16 +- assets/schemas.json | 73493 +++++++++++++++- src/gateway/opcodes/Identify.ts | 1 + src/gateway/opcodes/RequestGuildMembers.ts | 109 +- src/gateway/util/WebSocket.ts | 7 +- src/util/schemas/RequestGuildMembersSchema.ts | 2 +- 6 files changed, 70337 insertions(+), 3291 deletions(-) diff --git a/assets/openapi.json b/assets/openapi.json index 2af0a2c7..68adb455 100644 --- a/assets/openapi.json +++ b/assets/openapi.json @@ -6262,7 +6262,21 @@ "type": "object", "properties": { "guild_id": { - "type": "string" + "anyOf": [ + { + "type": "array", + "items": [ + { + "type": "string" + } + ], + "minItems": 1, + "maxItems": 1 + }, + { + "type": "string" + } + ] }, "query": { "type": "string" diff --git a/assets/schemas.json b/assets/schemas.json index 05a63902..a4da2538 100644 --- a/assets/schemas.json +++ b/assets/schemas.json @@ -32,343 +32,207 @@ ], "$schema": "http://json-schema.org/draft-07/schema#" }, - "ConnectedAccountCommonOAuthTokenResponse": { + "DiagnosticsChannel.Response": { "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#" - }, - "ApplicationAuthorizeSchema": { - "type": "object", - "properties": { - "authorize": { - "type": "boolean" - }, - "guild_id": { - "type": "string" - }, - "permissions": { - "type": "string" - }, - "captcha_key": { - "type": "string" - }, - "code": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "authorize", - "guild_id", - "permissions" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "ApplicationCreateSchema": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "team_id": { - "type": [ - "string", - "integer" - ] - } - }, - "additionalProperties": false, - "required": [ - "name" - ], - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "ApplicationModifySchema": { - "type": "object", - "properties": { - "description": { - "type": "string" - }, - "icon": { - "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" - } - }, - "additionalProperties": false, - "$schema": "http://json-schema.org/draft-07/schema#" - }, - "BackupCodesChallengeSchema": { - "type": "object", - "properties": { - "password": { - "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#" - }, - "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": { + "statusCode": { "type": "integer" }, - "user_limit": { - "type": "integer" + "statusText": { + "type": "string" }, - "rate_limit_per_user": { - "type": "integer" - }, - "position": { - "type": "integer" - }, - "permission_overwrites": { + "headers": { "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" - ] + "patternProperties": { + "^[0-9]+$": { + "type": "integer" + } + } } - }, - "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, + "required": [ + "headers", + "statusCode", + "statusText" + ], + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "_Response": { + "type": "object", + "properties": { + "headers": { + "$ref": "#/definitions/Headers" + }, + "ok": { + "type": "boolean" + }, + "status": { + "type": "integer" + }, + "statusText": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/ResponseType" + }, + "url": { + "type": "string" + }, + "redirected": { + "type": "boolean" + }, + "body": { + "anyOf": [ + { + "$ref": "#/definitions/ReadableStream" + }, + { + "type": "null" + } + ] + }, + "bodyUsed": { + "type": "boolean" + }, + "arrayBuffer": { + "type": "object", + "additionalProperties": false + }, + "blob": { + "type": "object", + "additionalProperties": false + }, + "formData": { + "type": "object", + "additionalProperties": false + }, + "json": { + "type": "object", + "additionalProperties": false + }, + "text": { + "type": "object", + "additionalProperties": false + }, + "clone": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "arrayBuffer", + "blob", + "body", + "bodyUsed", + "clone", + "formData", + "headers", + "json", + "ok", + "redirected", + "status", + "statusText", + "text", + "type", + "url" + ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -4245,14 +4109,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -4845,9 +4709,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -4857,20 +4719,57621 @@ "webhook" ] }, - "AuthRateLimit": { + "GlobalRateLimits": { "type": "object", "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, "register": { - "$ref": "#/definitions/RateLimitOptions" + "$ref": "#/definitions/GlobalRateLimit" + }, + "sendMessage": { + "$ref": "#/definitions/GlobalRateLimit" } }, "additionalProperties": false, "required": [ - "login", - "register" + "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" + ] + }, + "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" + ] + }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, + "TokenResponse": { + "type": "object", + "properties": { + "token": { + "type": "string" + }, + "settings": { + "$ref": "#/definitions/UserSettings" + } + }, + "additionalProperties": false, + "required": [ + "settings", + "token" + ] + }, + "MFAResponse": { + "type": "object", + "properties": { + "ticket": { + "type": "string" + }, + "mfa": { + "type": "boolean", + "enum": [ + true + ] + }, + "sms": { + "type": "boolean", + "enum": [ + false + ] + }, + "token": { + "type": "null" + } + }, + "additionalProperties": false, + "required": [ + "mfa", + "sms", + "ticket", + "token" + ] + }, + "WebAuthnResponse": { + "type": "object", + "properties": { + "webauthn": { + "type": "string" + }, + "ticket": { + "type": "string" + }, + "mfa": { + "type": "boolean", + "enum": [ + true + ] + }, + "sms": { + "type": "boolean", + "enum": [ + false + ] + }, + "token": { + "type": "null" + } + }, + "additionalProperties": false, + "required": [ + "mfa", + "sms", + "ticket", + "token", + "webauthn" + ] + } + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "global.Response": { + "type": "object", + "properties": { + "headers": { + "$ref": "#/definitions/Headers" + }, + "ok": { + "type": "boolean" + }, + "status": { + "type": "integer" + }, + "statusText": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/ResponseType" + }, + "url": { + "type": "string" + }, + "redirected": { + "type": "boolean" + }, + "body": { + "anyOf": [ + { + "$ref": "#/definitions/ReadableStream" + }, + { + "type": "null" + } + ] + }, + "bodyUsed": { + "type": "boolean" + }, + "arrayBuffer": { + "type": "object", + "additionalProperties": false + }, + "blob": { + "type": "object", + "additionalProperties": false + }, + "formData": { + "type": "object", + "additionalProperties": false + }, + "json": { + "type": "object", + "additionalProperties": false + }, + "text": { + "type": "object", + "additionalProperties": false + }, + "clone": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "arrayBuffer", + "blob", + "body", + "bodyUsed", + "clone", + "formData", + "headers", + "json", + "ok", + "redirected", + "status", + "statusText", + "text", + "type", + "url" + ], + "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, + "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" + ] + }, + "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 + }, + "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": { + "enum": [ + 0, + 1, + 2, + 4, + 5 + ], + "type": "number" + }, + "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", + "enum": [ + 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", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, + "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", + "enum": [ + 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", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "Guild": { + "type": "object", + "properties": { + "afk_channel_id": { + "type": "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": "string" + }, + "public_updates_channel": { + "$ref": "#/definitions/Channel" + }, + "rules_channel_id": { + "type": "string" + }, + "rules_channel": { + "type": "string" + }, + "region": { + "type": "string" + }, + "splash": { + "type": "string" + }, + "system_channel_id": { + "type": "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" + }, + "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", + "default_thread_rate_limit_per_user", + "flags", + "id", + "nsfw", + "owner", + "parent_id", + "position", + "type" + ] + }, + "ChannelType": { + "enum": [ + 0, + 1, + 10, + 11, + 12, + 13, + 14, + 15, + 2, + 255, + 3, + 33, + 34, + 35, + 4, + 5, + 6, + 64, + 7, + 8, + 9 + ], + "type": "number" + }, + "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", + "settings", + "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" + ] + }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, + "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": { + "enum": [ + 1, + 2, + 3, + 4 + ], + "type": "number" + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "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": { + "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" + } + }, + "additionalProperties": false, + "required": [ + "message_id" + ] + }, + "referenced_message": { + "$ref": "#/definitions/Message" + }, + "interaction": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/InteractionType" + }, + "name": { + "type": "string" + }, + "user_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "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", + "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" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "color", + "flags", + "guild", + "guild_id", + "hoist", + "id", + "managed", + "mentionable", + "name", + "permissions", + "position" + ] + }, + "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": "number", + "enum": [ + 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" + ] + }, + "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": { + "enum": [ + 1, + 2, + 3 + ], + "type": "number" + }, + "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" + }, + "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" + } + }, + "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", + "team", + "team_id", + "user", + "user_id" + ] + }, + "TeamMemberState": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "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": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "StickerFormatType": { + "enum": [ + 0, + 1, + 2, + 3 + ], + "type": "number" + }, + "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" + ] + }, + "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" + ] + }, + "MessageType": { + "enum": [ + 0, + 1, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 19, + 2, + 20, + 255, + 3, + 4, + 41, + 42, + 43, + 5, + 50, + 6, + 63, + 7, + 8, + 9 + ], + "type": "number" + }, + "InteractionType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, + "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" + ] + }, + "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" + ] + }, + "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", + "enum": [ + true + ] + } + }, + "additionalProperties": false, + "required": [ + "attachments", + "author", + "channel_id", + "components", + "edited_timestamp", + "embeds", + "flags", + "hit", + "id", + "mention_roles", + "mentions", + "pinned", + "poll", + "timestamp", + "tts", + "type" + ] + }, + "PublicUser": { + "type": "object", + "properties": { + "id": { + "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" + ] + }, + "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" + ] + }, + "Snowflake": { + "description": "A container for useful snowflake-related methods.", + "type": "object", + "additionalProperties": false + }, + "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" + ] + }, + "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" + ] + }, + "APIGuild": { + "type": "object", + "properties": { + "reload": { + "description": "Reloads entity data from the database.", + "type": "object", + "additionalProperties": false + }, + "name": { + "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" + } + }, + "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 + }, + "remove": { + "description": "Removes current entity from the database.", + "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" + }, + "description": { + "type": "string" + }, + "unavailable": { + "type": "boolean" + }, + "channels": { + "type": "array", + "items": { + "$ref": "#/definitions/Channel" + } + }, + "region": { + "type": "string" + }, + "system_channel_id": { + "type": "string" + }, + "rules_channel_id": { + "type": "string" + }, + "afk_timeout": { + "type": "integer" + }, + "explicit_content_filter": { + "type": "integer" + }, + "afk_channel_id": { + "type": "string" + }, + "bans": { + "type": "array", + "items": { + "$ref": "#/definitions/Ban" + } + }, + "default_message_notifications": { + "type": "integer" + }, + "discovery_splash": { + "type": "string" + }, + "features": { + "type": "array", + "items": { + "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" + }, + "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" + }, + "preferred_locale": { + "type": "string" + }, + "premium_subscription_count": { + "type": "integer" + }, + "premium_tier": { + "type": "integer" + }, + "public_updates_channel_id": { + "type": "string" + }, + "splash": { + "type": "string" + }, + "system_channel_flags": { + "type": "integer" + }, + "verification_level": { + "type": "integer" + }, + "welcome_screen": { + "$ref": "#/definitions/GuildWelcomeScreen" + }, + "widget_channel_id": { + "type": "string" + }, + "widget_enabled": { + "type": "boolean" + }, + "nsfw_level": { + "type": "integer" + }, + "permissions": { + "type": "integer" + }, + "premium_progress_bar_enabled": { + "type": "boolean" + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "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 + }, + "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" + ] + }, + "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 + } + }, + "additionalProperties": false, + "required": [ + "maxAttachmentSize", + "maxBulkDelete", + "maxCharacters", + "maxEmbedDownloadSize", + "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": {} + }, + "additionalProperties": false, + "required": [ + "auth", + "channel", + "guild", + "webhook" + ] + }, + "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" + ] + }, + "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" + ] + }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, + "TokenResponse": { + "type": "object", + "properties": { + "token": { + "type": "string" + }, + "settings": { + "$ref": "#/definitions/UserSettings" + } + }, + "additionalProperties": false, + "required": [ + "settings", + "token" + ] + }, + "MFAResponse": { + "type": "object", + "properties": { + "ticket": { + "type": "string" + }, + "mfa": { + "type": "boolean", + "enum": [ + true + ] + }, + "sms": { + "type": "boolean", + "enum": [ + false + ] + }, + "token": { + "type": "null" + } + }, + "additionalProperties": false, + "required": [ + "mfa", + "sms", + "ticket", + "token" + ] + }, + "WebAuthnResponse": { + "type": "object", + "properties": { + "webauthn": { + "type": "string" + }, + "ticket": { + "type": "string" + }, + "mfa": { + "type": "boolean", + "enum": [ + true + ] + }, + "sms": { + "type": "boolean", + "enum": [ + false + ] + }, + "token": { + "type": "null" + } + }, + "additionalProperties": false, + "required": [ + "mfa", + "sms", + "ticket", + "token", + "webauthn" + ] + } + }, + "$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" + ], + "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, + "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" + ] + }, + "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 + }, + "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": { + "enum": [ + 0, + 1, + 2, + 4, + 5 + ], + "type": "number" + }, + "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", + "enum": [ + 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", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, + "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", + "enum": [ + 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", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "Guild": { + "type": "object", + "properties": { + "afk_channel_id": { + "type": "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": "string" + }, + "public_updates_channel": { + "$ref": "#/definitions/Channel" + }, + "rules_channel_id": { + "type": "string" + }, + "rules_channel": { + "type": "string" + }, + "region": { + "type": "string" + }, + "splash": { + "type": "string" + }, + "system_channel_id": { + "type": "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" + }, + "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", + "default_thread_rate_limit_per_user", + "flags", + "id", + "nsfw", + "owner", + "parent_id", + "position", + "type" + ] + }, + "ChannelType": { + "enum": [ + 0, + 1, + 10, + 11, + 12, + 13, + 14, + 15, + 2, + 255, + 3, + 33, + 34, + 35, + 4, + 5, + 6, + 64, + 7, + 8, + 9 + ], + "type": "number" + }, + "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", + "settings", + "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" + ] + }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, + "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": { + "enum": [ + 1, + 2, + 3, + 4 + ], + "type": "number" + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "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": { + "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" + } + }, + "additionalProperties": false, + "required": [ + "message_id" + ] + }, + "referenced_message": { + "$ref": "#/definitions/Message" + }, + "interaction": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/InteractionType" + }, + "name": { + "type": "string" + }, + "user_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "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", + "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" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "color", + "flags", + "guild", + "guild_id", + "hoist", + "id", + "managed", + "mentionable", + "name", + "permissions", + "position" + ] + }, + "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": "number", + "enum": [ + 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" + ] + }, + "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": { + "enum": [ + 1, + 2, + 3 + ], + "type": "number" + }, + "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" + }, + "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" + } + }, + "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", + "team", + "team_id", + "user", + "user_id" + ] + }, + "TeamMemberState": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "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": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "StickerFormatType": { + "enum": [ + 0, + 1, + 2, + 3 + ], + "type": "number" + }, + "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" + ] + }, + "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" + ] + }, + "MessageType": { + "enum": [ + 0, + 1, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 19, + 2, + 20, + 255, + 3, + 4, + 41, + 42, + 43, + 5, + 50, + 6, + 63, + 7, + 8, + 9 + ], + "type": "number" + }, + "InteractionType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, + "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" + ] + }, + "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" + ] + }, + "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", + "enum": [ + true + ] + } + }, + "additionalProperties": false, + "required": [ + "attachments", + "author", + "channel_id", + "components", + "edited_timestamp", + "embeds", + "flags", + "hit", + "id", + "mention_roles", + "mentions", + "pinned", + "poll", + "timestamp", + "tts", + "type" + ] + }, + "PublicUser": { + "type": "object", + "properties": { + "id": { + "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" + ] + }, + "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" + ] + }, + "Snowflake": { + "description": "A container for useful snowflake-related methods.", + "type": "object", + "additionalProperties": false + }, + "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" + ] + }, + "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" + ] + }, + "APIGuild": { + "type": "object", + "properties": { + "reload": { + "description": "Reloads entity data from the database.", + "type": "object", + "additionalProperties": false + }, + "name": { + "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" + } + }, + "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 + }, + "remove": { + "description": "Removes current entity from the database.", + "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" + }, + "description": { + "type": "string" + }, + "unavailable": { + "type": "boolean" + }, + "channels": { + "type": "array", + "items": { + "$ref": "#/definitions/Channel" + } + }, + "region": { + "type": "string" + }, + "system_channel_id": { + "type": "string" + }, + "rules_channel_id": { + "type": "string" + }, + "afk_timeout": { + "type": "integer" + }, + "explicit_content_filter": { + "type": "integer" + }, + "afk_channel_id": { + "type": "string" + }, + "bans": { + "type": "array", + "items": { + "$ref": "#/definitions/Ban" + } + }, + "default_message_notifications": { + "type": "integer" + }, + "discovery_splash": { + "type": "string" + }, + "features": { + "type": "array", + "items": { + "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" + }, + "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" + }, + "preferred_locale": { + "type": "string" + }, + "premium_subscription_count": { + "type": "integer" + }, + "premium_tier": { + "type": "integer" + }, + "public_updates_channel_id": { + "type": "string" + }, + "splash": { + "type": "string" + }, + "system_channel_flags": { + "type": "integer" + }, + "verification_level": { + "type": "integer" + }, + "welcome_screen": { + "$ref": "#/definitions/GuildWelcomeScreen" + }, + "widget_channel_id": { + "type": "string" + }, + "widget_enabled": { + "type": "boolean" + }, + "nsfw_level": { + "type": "integer" + }, + "permissions": { + "type": "integer" + }, + "premium_progress_bar_enabled": { + "type": "boolean" + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "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 + }, + "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" + ] + }, + "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 + } + }, + "additionalProperties": false, + "required": [ + "maxAttachmentSize", + "maxBulkDelete", + "maxCharacters", + "maxEmbedDownloadSize", + "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": {} + }, + "additionalProperties": false, + "required": [ + "auth", + "channel", + "guild", + "webhook" + ] + }, + "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" + ] + }, + "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" + ] + }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, + "TokenResponse": { + "type": "object", + "properties": { + "token": { + "type": "string" + }, + "settings": { + "$ref": "#/definitions/UserSettings" + } + }, + "additionalProperties": false, + "required": [ + "settings", + "token" + ] + }, + "MFAResponse": { + "type": "object", + "properties": { + "ticket": { + "type": "string" + }, + "mfa": { + "type": "boolean", + "enum": [ + true + ] + }, + "sms": { + "type": "boolean", + "enum": [ + false + ] + }, + "token": { + "type": "null" + } + }, + "additionalProperties": false, + "required": [ + "mfa", + "sms", + "ticket", + "token" + ] + }, + "WebAuthnResponse": { + "type": "object", + "properties": { + "webauthn": { + "type": "string" + }, + "ticket": { + "type": "string" + }, + "mfa": { + "type": "boolean", + "enum": [ + true + ] + }, + "sms": { + "type": "boolean", + "enum": [ + false + ] + }, + "token": { + "type": "null" + } + }, + "additionalProperties": false, + "required": [ + "mfa", + "sms", + "ticket", + "token", + "webauthn" + ] + } + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "ExpressResponse": { + "type": "object", + "additionalProperties": false, + "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, + "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" + ] + }, + "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 + }, + "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": { + "enum": [ + 0, + 1, + 2, + 4, + 5 + ], + "type": "number" + }, + "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", + "enum": [ + 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", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, + "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", + "enum": [ + 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", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "Guild": { + "type": "object", + "properties": { + "afk_channel_id": { + "type": "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": "string" + }, + "public_updates_channel": { + "$ref": "#/definitions/Channel" + }, + "rules_channel_id": { + "type": "string" + }, + "rules_channel": { + "type": "string" + }, + "region": { + "type": "string" + }, + "splash": { + "type": "string" + }, + "system_channel_id": { + "type": "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" + }, + "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", + "default_thread_rate_limit_per_user", + "flags", + "id", + "nsfw", + "owner", + "parent_id", + "position", + "type" + ] + }, + "ChannelType": { + "enum": [ + 0, + 1, + 10, + 11, + 12, + 13, + 14, + 15, + 2, + 255, + 3, + 33, + 34, + 35, + 4, + 5, + 6, + 64, + 7, + 8, + 9 + ], + "type": "number" + }, + "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", + "settings", + "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" + ] + }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, + "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": { + "enum": [ + 1, + 2, + 3, + 4 + ], + "type": "number" + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "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": { + "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" + } + }, + "additionalProperties": false, + "required": [ + "message_id" + ] + }, + "referenced_message": { + "$ref": "#/definitions/Message" + }, + "interaction": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/InteractionType" + }, + "name": { + "type": "string" + }, + "user_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "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", + "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" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "color", + "flags", + "guild", + "guild_id", + "hoist", + "id", + "managed", + "mentionable", + "name", + "permissions", + "position" + ] + }, + "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": "number", + "enum": [ + 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" + ] + }, + "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": { + "enum": [ + 1, + 2, + 3 + ], + "type": "number" + }, + "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" + }, + "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" + } + }, + "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", + "team", + "team_id", + "user", + "user_id" + ] + }, + "TeamMemberState": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "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": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "StickerFormatType": { + "enum": [ + 0, + 1, + 2, + 3 + ], + "type": "number" + }, + "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" + ] + }, + "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" + ] + }, + "MessageType": { + "enum": [ + 0, + 1, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 19, + 2, + 20, + 255, + 3, + 4, + 41, + 42, + 43, + 5, + 50, + 6, + 63, + 7, + 8, + 9 + ], + "type": "number" + }, + "InteractionType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, + "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" + ] + }, + "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" + ] + }, + "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", + "enum": [ + true + ] + } + }, + "additionalProperties": false, + "required": [ + "attachments", + "author", + "channel_id", + "components", + "edited_timestamp", + "embeds", + "flags", + "hit", + "id", + "mention_roles", + "mentions", + "pinned", + "poll", + "timestamp", + "tts", + "type" + ] + }, + "PublicUser": { + "type": "object", + "properties": { + "id": { + "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" + ] + }, + "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" + ] + }, + "Snowflake": { + "description": "A container for useful snowflake-related methods.", + "type": "object", + "additionalProperties": false + }, + "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" + ] + }, + "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" + ] + }, + "APIGuild": { + "type": "object", + "properties": { + "reload": { + "description": "Reloads entity data from the database.", + "type": "object", + "additionalProperties": false + }, + "name": { + "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" + } + }, + "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 + }, + "remove": { + "description": "Removes current entity from the database.", + "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" + }, + "description": { + "type": "string" + }, + "unavailable": { + "type": "boolean" + }, + "channels": { + "type": "array", + "items": { + "$ref": "#/definitions/Channel" + } + }, + "region": { + "type": "string" + }, + "system_channel_id": { + "type": "string" + }, + "rules_channel_id": { + "type": "string" + }, + "afk_timeout": { + "type": "integer" + }, + "explicit_content_filter": { + "type": "integer" + }, + "afk_channel_id": { + "type": "string" + }, + "bans": { + "type": "array", + "items": { + "$ref": "#/definitions/Ban" + } + }, + "default_message_notifications": { + "type": "integer" + }, + "discovery_splash": { + "type": "string" + }, + "features": { + "type": "array", + "items": { + "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" + }, + "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" + }, + "preferred_locale": { + "type": "string" + }, + "premium_subscription_count": { + "type": "integer" + }, + "premium_tier": { + "type": "integer" + }, + "public_updates_channel_id": { + "type": "string" + }, + "splash": { + "type": "string" + }, + "system_channel_flags": { + "type": "integer" + }, + "verification_level": { + "type": "integer" + }, + "welcome_screen": { + "$ref": "#/definitions/GuildWelcomeScreen" + }, + "widget_channel_id": { + "type": "string" + }, + "widget_enabled": { + "type": "boolean" + }, + "nsfw_level": { + "type": "integer" + }, + "permissions": { + "type": "integer" + }, + "premium_progress_bar_enabled": { + "type": "boolean" + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "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 + }, + "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" + ] + }, + "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 + } + }, + "additionalProperties": false, + "required": [ + "maxAttachmentSize", + "maxBulkDelete", + "maxCharacters", + "maxEmbedDownloadSize", + "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": {} + }, + "additionalProperties": false, + "required": [ + "auth", + "channel", + "guild", + "webhook" + ] + }, + "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" + ] + }, + "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" + ] + }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, + "TokenResponse": { + "type": "object", + "properties": { + "token": { + "type": "string" + }, + "settings": { + "$ref": "#/definitions/UserSettings" + } + }, + "additionalProperties": false, + "required": [ + "settings", + "token" + ] + }, + "MFAResponse": { + "type": "object", + "properties": { + "ticket": { + "type": "string" + }, + "mfa": { + "type": "boolean", + "enum": [ + true + ] + }, + "sms": { + "type": "boolean", + "enum": [ + false + ] + }, + "token": { + "type": "null" + } + }, + "additionalProperties": false, + "required": [ + "mfa", + "sms", + "ticket", + "token" + ] + }, + "WebAuthnResponse": { + "type": "object", + "properties": { + "webauthn": { + "type": "string" + }, + "ticket": { + "type": "string" + }, + "mfa": { + "type": "boolean", + "enum": [ + true + ] + }, + "sms": { + "type": "boolean", + "enum": [ + false + ] + }, + "token": { + "type": "null" + } + }, + "additionalProperties": false, + "required": [ + "mfa", + "sms", + "ticket", + "token", + "webauthn" + ] + } + }, + "$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": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "authorize", + "guild_id", + "permissions" + ], + "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, + "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" + ] + }, + "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 + }, + "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": { + "enum": [ + 0, + 1, + 2, + 4, + 5 + ], + "type": "number" + }, + "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", + "enum": [ + 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", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, + "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", + "enum": [ + 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", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "Guild": { + "type": "object", + "properties": { + "afk_channel_id": { + "type": "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": "string" + }, + "public_updates_channel": { + "$ref": "#/definitions/Channel" + }, + "rules_channel_id": { + "type": "string" + }, + "rules_channel": { + "type": "string" + }, + "region": { + "type": "string" + }, + "splash": { + "type": "string" + }, + "system_channel_id": { + "type": "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" + }, + "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", + "default_thread_rate_limit_per_user", + "flags", + "id", + "nsfw", + "owner", + "parent_id", + "position", + "type" + ] + }, + "ChannelType": { + "enum": [ + 0, + 1, + 10, + 11, + 12, + 13, + 14, + 15, + 2, + 255, + 3, + 33, + 34, + 35, + 4, + 5, + 6, + 64, + 7, + 8, + 9 + ], + "type": "number" + }, + "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", + "settings", + "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" + ] + }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, + "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": { + "enum": [ + 1, + 2, + 3, + 4 + ], + "type": "number" + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "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": { + "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" + } + }, + "additionalProperties": false, + "required": [ + "message_id" + ] + }, + "referenced_message": { + "$ref": "#/definitions/Message" + }, + "interaction": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/InteractionType" + }, + "name": { + "type": "string" + }, + "user_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "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", + "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" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "color", + "flags", + "guild", + "guild_id", + "hoist", + "id", + "managed", + "mentionable", + "name", + "permissions", + "position" + ] + }, + "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": "number", + "enum": [ + 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" + ] + }, + "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": { + "enum": [ + 1, + 2, + 3 + ], + "type": "number" + }, + "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" + }, + "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" + } + }, + "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", + "team", + "team_id", + "user", + "user_id" + ] + }, + "TeamMemberState": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "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": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "StickerFormatType": { + "enum": [ + 0, + 1, + 2, + 3 + ], + "type": "number" + }, + "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" + ] + }, + "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" + ] + }, + "MessageType": { + "enum": [ + 0, + 1, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 19, + 2, + 20, + 255, + 3, + 4, + 41, + 42, + 43, + 5, + 50, + 6, + 63, + 7, + 8, + 9 + ], + "type": "number" + }, + "InteractionType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, + "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" + ] + }, + "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" + ] + }, + "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", + "enum": [ + true + ] + } + }, + "additionalProperties": false, + "required": [ + "attachments", + "author", + "channel_id", + "components", + "edited_timestamp", + "embeds", + "flags", + "hit", + "id", + "mention_roles", + "mentions", + "pinned", + "poll", + "timestamp", + "tts", + "type" + ] + }, + "PublicUser": { + "type": "object", + "properties": { + "id": { + "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" + ] + }, + "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" + ] + }, + "Snowflake": { + "description": "A container for useful snowflake-related methods.", + "type": "object", + "additionalProperties": false + }, + "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" + ] + }, + "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" + ] + }, + "APIGuild": { + "type": "object", + "properties": { + "reload": { + "description": "Reloads entity data from the database.", + "type": "object", + "additionalProperties": false + }, + "name": { + "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" + } + }, + "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 + }, + "remove": { + "description": "Removes current entity from the database.", + "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" + }, + "description": { + "type": "string" + }, + "unavailable": { + "type": "boolean" + }, + "channels": { + "type": "array", + "items": { + "$ref": "#/definitions/Channel" + } + }, + "region": { + "type": "string" + }, + "system_channel_id": { + "type": "string" + }, + "rules_channel_id": { + "type": "string" + }, + "afk_timeout": { + "type": "integer" + }, + "explicit_content_filter": { + "type": "integer" + }, + "afk_channel_id": { + "type": "string" + }, + "bans": { + "type": "array", + "items": { + "$ref": "#/definitions/Ban" + } + }, + "default_message_notifications": { + "type": "integer" + }, + "discovery_splash": { + "type": "string" + }, + "features": { + "type": "array", + "items": { + "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" + }, + "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" + }, + "preferred_locale": { + "type": "string" + }, + "premium_subscription_count": { + "type": "integer" + }, + "premium_tier": { + "type": "integer" + }, + "public_updates_channel_id": { + "type": "string" + }, + "splash": { + "type": "string" + }, + "system_channel_flags": { + "type": "integer" + }, + "verification_level": { + "type": "integer" + }, + "welcome_screen": { + "$ref": "#/definitions/GuildWelcomeScreen" + }, + "widget_channel_id": { + "type": "string" + }, + "widget_enabled": { + "type": "boolean" + }, + "nsfw_level": { + "type": "integer" + }, + "permissions": { + "type": "integer" + }, + "premium_progress_bar_enabled": { + "type": "boolean" + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "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 + }, + "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" + ] + }, + "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 + } + }, + "additionalProperties": false, + "required": [ + "maxAttachmentSize", + "maxBulkDelete", + "maxCharacters", + "maxEmbedDownloadSize", + "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": {} + }, + "additionalProperties": false, + "required": [ + "auth", + "channel", + "guild", + "webhook" + ] + }, + "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" + ] + }, + "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" + ] + }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, + "TokenResponse": { + "type": "object", + "properties": { + "token": { + "type": "string" + }, + "settings": { + "$ref": "#/definitions/UserSettings" + } + }, + "additionalProperties": false, + "required": [ + "settings", + "token" + ] + }, + "MFAResponse": { + "type": "object", + "properties": { + "ticket": { + "type": "string" + }, + "mfa": { + "type": "boolean", + "enum": [ + true + ] + }, + "sms": { + "type": "boolean", + "enum": [ + false + ] + }, + "token": { + "type": "null" + } + }, + "additionalProperties": false, + "required": [ + "mfa", + "sms", + "ticket", + "token" + ] + }, + "WebAuthnResponse": { + "type": "object", + "properties": { + "webauthn": { + "type": "string" + }, + "ticket": { + "type": "string" + }, + "mfa": { + "type": "boolean", + "enum": [ + true + ] + }, + "sms": { + "type": "boolean", + "enum": [ + false + ] + }, + "token": { + "type": "null" + } + }, + "additionalProperties": false, + "required": [ + "mfa", + "sms", + "ticket", + "token", + "webauthn" + ] + } + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "ApplicationCreateSchema": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "team_id": { + "type": [ + "string", + "integer" + ] + } + }, + "additionalProperties": false, + "required": [ + "name" + ], + "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, + "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" + ] + }, + "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 + }, + "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": { + "enum": [ + 0, + 1, + 2, + 4, + 5 + ], + "type": "number" + }, + "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", + "enum": [ + 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", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, + "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", + "enum": [ + 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", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "Guild": { + "type": "object", + "properties": { + "afk_channel_id": { + "type": "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": "string" + }, + "public_updates_channel": { + "$ref": "#/definitions/Channel" + }, + "rules_channel_id": { + "type": "string" + }, + "rules_channel": { + "type": "string" + }, + "region": { + "type": "string" + }, + "splash": { + "type": "string" + }, + "system_channel_id": { + "type": "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" + }, + "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", + "default_thread_rate_limit_per_user", + "flags", + "id", + "nsfw", + "owner", + "parent_id", + "position", + "type" + ] + }, + "ChannelType": { + "enum": [ + 0, + 1, + 10, + 11, + 12, + 13, + 14, + 15, + 2, + 255, + 3, + 33, + 34, + 35, + 4, + 5, + 6, + 64, + 7, + 8, + 9 + ], + "type": "number" + }, + "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", + "settings", + "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" + ] + }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, + "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": { + "enum": [ + 1, + 2, + 3, + 4 + ], + "type": "number" + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "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": { + "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" + } + }, + "additionalProperties": false, + "required": [ + "message_id" + ] + }, + "referenced_message": { + "$ref": "#/definitions/Message" + }, + "interaction": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/InteractionType" + }, + "name": { + "type": "string" + }, + "user_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "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", + "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" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "color", + "flags", + "guild", + "guild_id", + "hoist", + "id", + "managed", + "mentionable", + "name", + "permissions", + "position" + ] + }, + "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": "number", + "enum": [ + 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" + ] + }, + "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": { + "enum": [ + 1, + 2, + 3 + ], + "type": "number" + }, + "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" + }, + "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" + } + }, + "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", + "team", + "team_id", + "user", + "user_id" + ] + }, + "TeamMemberState": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "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": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "StickerFormatType": { + "enum": [ + 0, + 1, + 2, + 3 + ], + "type": "number" + }, + "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" + ] + }, + "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" + ] + }, + "MessageType": { + "enum": [ + 0, + 1, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 19, + 2, + 20, + 255, + 3, + 4, + 41, + 42, + 43, + 5, + 50, + 6, + 63, + 7, + 8, + 9 + ], + "type": "number" + }, + "InteractionType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, + "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" + ] + }, + "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" + ] + }, + "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", + "enum": [ + true + ] + } + }, + "additionalProperties": false, + "required": [ + "attachments", + "author", + "channel_id", + "components", + "edited_timestamp", + "embeds", + "flags", + "hit", + "id", + "mention_roles", + "mentions", + "pinned", + "poll", + "timestamp", + "tts", + "type" + ] + }, + "PublicUser": { + "type": "object", + "properties": { + "id": { + "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" + ] + }, + "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" + ] + }, + "Snowflake": { + "description": "A container for useful snowflake-related methods.", + "type": "object", + "additionalProperties": false + }, + "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" + ] + }, + "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" + ] + }, + "APIGuild": { + "type": "object", + "properties": { + "reload": { + "description": "Reloads entity data from the database.", + "type": "object", + "additionalProperties": false + }, + "name": { + "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" + } + }, + "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 + }, + "remove": { + "description": "Removes current entity from the database.", + "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" + }, + "description": { + "type": "string" + }, + "unavailable": { + "type": "boolean" + }, + "channels": { + "type": "array", + "items": { + "$ref": "#/definitions/Channel" + } + }, + "region": { + "type": "string" + }, + "system_channel_id": { + "type": "string" + }, + "rules_channel_id": { + "type": "string" + }, + "afk_timeout": { + "type": "integer" + }, + "explicit_content_filter": { + "type": "integer" + }, + "afk_channel_id": { + "type": "string" + }, + "bans": { + "type": "array", + "items": { + "$ref": "#/definitions/Ban" + } + }, + "default_message_notifications": { + "type": "integer" + }, + "discovery_splash": { + "type": "string" + }, + "features": { + "type": "array", + "items": { + "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" + }, + "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" + }, + "preferred_locale": { + "type": "string" + }, + "premium_subscription_count": { + "type": "integer" + }, + "premium_tier": { + "type": "integer" + }, + "public_updates_channel_id": { + "type": "string" + }, + "splash": { + "type": "string" + }, + "system_channel_flags": { + "type": "integer" + }, + "verification_level": { + "type": "integer" + }, + "welcome_screen": { + "$ref": "#/definitions/GuildWelcomeScreen" + }, + "widget_channel_id": { + "type": "string" + }, + "widget_enabled": { + "type": "boolean" + }, + "nsfw_level": { + "type": "integer" + }, + "permissions": { + "type": "integer" + }, + "premium_progress_bar_enabled": { + "type": "boolean" + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "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 + }, + "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" + ] + }, + "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 + } + }, + "additionalProperties": false, + "required": [ + "maxAttachmentSize", + "maxBulkDelete", + "maxCharacters", + "maxEmbedDownloadSize", + "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": {} + }, + "additionalProperties": false, + "required": [ + "auth", + "channel", + "guild", + "webhook" + ] + }, + "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" + ] + }, + "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" + ] + }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, + "TokenResponse": { + "type": "object", + "properties": { + "token": { + "type": "string" + }, + "settings": { + "$ref": "#/definitions/UserSettings" + } + }, + "additionalProperties": false, + "required": [ + "settings", + "token" + ] + }, + "MFAResponse": { + "type": "object", + "properties": { + "ticket": { + "type": "string" + }, + "mfa": { + "type": "boolean", + "enum": [ + true + ] + }, + "sms": { + "type": "boolean", + "enum": [ + false + ] + }, + "token": { + "type": "null" + } + }, + "additionalProperties": false, + "required": [ + "mfa", + "sms", + "ticket", + "token" + ] + }, + "WebAuthnResponse": { + "type": "object", + "properties": { + "webauthn": { + "type": "string" + }, + "ticket": { + "type": "string" + }, + "mfa": { + "type": "boolean", + "enum": [ + true + ] + }, + "sms": { + "type": "boolean", + "enum": [ + false + ] + }, + "token": { + "type": "null" + } + }, + "additionalProperties": false, + "required": [ + "mfa", + "sms", + "ticket", + "token", + "webauthn" + ] + } + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "ApplicationModifySchema": { + "type": "object", + "properties": { + "description": { + "type": "string" + }, + "icon": { + "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" + } + }, + "additionalProperties": false, + "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, + "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" + ] + }, + "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 + }, + "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": { + "enum": [ + 0, + 1, + 2, + 4, + 5 + ], + "type": "number" + }, + "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", + "enum": [ + 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", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, + "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", + "enum": [ + 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", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "Guild": { + "type": "object", + "properties": { + "afk_channel_id": { + "type": "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": "string" + }, + "public_updates_channel": { + "$ref": "#/definitions/Channel" + }, + "rules_channel_id": { + "type": "string" + }, + "rules_channel": { + "type": "string" + }, + "region": { + "type": "string" + }, + "splash": { + "type": "string" + }, + "system_channel_id": { + "type": "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" + }, + "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", + "default_thread_rate_limit_per_user", + "flags", + "id", + "nsfw", + "owner", + "parent_id", + "position", + "type" + ] + }, + "ChannelType": { + "enum": [ + 0, + 1, + 10, + 11, + 12, + 13, + 14, + 15, + 2, + 255, + 3, + 33, + 34, + 35, + 4, + 5, + 6, + 64, + 7, + 8, + 9 + ], + "type": "number" + }, + "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", + "settings", + "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" + ] + }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, + "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": { + "enum": [ + 1, + 2, + 3, + 4 + ], + "type": "number" + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "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": { + "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" + } + }, + "additionalProperties": false, + "required": [ + "message_id" + ] + }, + "referenced_message": { + "$ref": "#/definitions/Message" + }, + "interaction": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/InteractionType" + }, + "name": { + "type": "string" + }, + "user_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "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", + "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" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "color", + "flags", + "guild", + "guild_id", + "hoist", + "id", + "managed", + "mentionable", + "name", + "permissions", + "position" + ] + }, + "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": "number", + "enum": [ + 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" + ] + }, + "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": { + "enum": [ + 1, + 2, + 3 + ], + "type": "number" + }, + "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" + }, + "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" + } + }, + "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", + "team", + "team_id", + "user", + "user_id" + ] + }, + "TeamMemberState": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "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": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "StickerFormatType": { + "enum": [ + 0, + 1, + 2, + 3 + ], + "type": "number" + }, + "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" + ] + }, + "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" + ] + }, + "MessageType": { + "enum": [ + 0, + 1, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 19, + 2, + 20, + 255, + 3, + 4, + 41, + 42, + 43, + 5, + 50, + 6, + 63, + 7, + 8, + 9 + ], + "type": "number" + }, + "InteractionType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, + "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" + ] + }, + "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" + ] + }, + "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", + "enum": [ + true + ] + } + }, + "additionalProperties": false, + "required": [ + "attachments", + "author", + "channel_id", + "components", + "edited_timestamp", + "embeds", + "flags", + "hit", + "id", + "mention_roles", + "mentions", + "pinned", + "poll", + "timestamp", + "tts", + "type" + ] + }, + "PublicUser": { + "type": "object", + "properties": { + "id": { + "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" + ] + }, + "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" + ] + }, + "Snowflake": { + "description": "A container for useful snowflake-related methods.", + "type": "object", + "additionalProperties": false + }, + "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" + ] + }, + "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" + ] + }, + "APIGuild": { + "type": "object", + "properties": { + "reload": { + "description": "Reloads entity data from the database.", + "type": "object", + "additionalProperties": false + }, + "name": { + "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" + } + }, + "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 + }, + "remove": { + "description": "Removes current entity from the database.", + "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" + }, + "description": { + "type": "string" + }, + "unavailable": { + "type": "boolean" + }, + "channels": { + "type": "array", + "items": { + "$ref": "#/definitions/Channel" + } + }, + "region": { + "type": "string" + }, + "system_channel_id": { + "type": "string" + }, + "rules_channel_id": { + "type": "string" + }, + "afk_timeout": { + "type": "integer" + }, + "explicit_content_filter": { + "type": "integer" + }, + "afk_channel_id": { + "type": "string" + }, + "bans": { + "type": "array", + "items": { + "$ref": "#/definitions/Ban" + } + }, + "default_message_notifications": { + "type": "integer" + }, + "discovery_splash": { + "type": "string" + }, + "features": { + "type": "array", + "items": { + "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" + }, + "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" + }, + "preferred_locale": { + "type": "string" + }, + "premium_subscription_count": { + "type": "integer" + }, + "premium_tier": { + "type": "integer" + }, + "public_updates_channel_id": { + "type": "string" + }, + "splash": { + "type": "string" + }, + "system_channel_flags": { + "type": "integer" + }, + "verification_level": { + "type": "integer" + }, + "welcome_screen": { + "$ref": "#/definitions/GuildWelcomeScreen" + }, + "widget_channel_id": { + "type": "string" + }, + "widget_enabled": { + "type": "boolean" + }, + "nsfw_level": { + "type": "integer" + }, + "permissions": { + "type": "integer" + }, + "premium_progress_bar_enabled": { + "type": "boolean" + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "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 + }, + "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" + ] + }, + "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 + } + }, + "additionalProperties": false, + "required": [ + "maxAttachmentSize", + "maxBulkDelete", + "maxCharacters", + "maxEmbedDownloadSize", + "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": {} + }, + "additionalProperties": false, + "required": [ + "auth", + "channel", + "guild", + "webhook" + ] + }, + "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" + ] + }, + "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" + ] + }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, + "TokenResponse": { + "type": "object", + "properties": { + "token": { + "type": "string" + }, + "settings": { + "$ref": "#/definitions/UserSettings" + } + }, + "additionalProperties": false, + "required": [ + "settings", + "token" + ] + }, + "MFAResponse": { + "type": "object", + "properties": { + "ticket": { + "type": "string" + }, + "mfa": { + "type": "boolean", + "enum": [ + true + ] + }, + "sms": { + "type": "boolean", + "enum": [ + false + ] + }, + "token": { + "type": "null" + } + }, + "additionalProperties": false, + "required": [ + "mfa", + "sms", + "ticket", + "token" + ] + }, + "WebAuthnResponse": { + "type": "object", + "properties": { + "webauthn": { + "type": "string" + }, + "ticket": { + "type": "string" + }, + "mfa": { + "type": "boolean", + "enum": [ + true + ] + }, + "sms": { + "type": "boolean", + "enum": [ + false + ] + }, + "token": { + "type": "null" + } + }, + "additionalProperties": false, + "required": [ + "mfa", + "sms", + "ticket", + "token", + "webauthn" + ] + } + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "BackupCodesChallengeSchema": { + "type": "object", + "properties": { + "password": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "password" + ], + "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, + "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" + ] + }, + "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 + }, + "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": { + "enum": [ + 0, + 1, + 2, + 4, + 5 + ], + "type": "number" + }, + "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", + "enum": [ + 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", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, + "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", + "enum": [ + 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", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "Guild": { + "type": "object", + "properties": { + "afk_channel_id": { + "type": "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": "string" + }, + "public_updates_channel": { + "$ref": "#/definitions/Channel" + }, + "rules_channel_id": { + "type": "string" + }, + "rules_channel": { + "type": "string" + }, + "region": { + "type": "string" + }, + "splash": { + "type": "string" + }, + "system_channel_id": { + "type": "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" + }, + "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", + "default_thread_rate_limit_per_user", + "flags", + "id", + "nsfw", + "owner", + "parent_id", + "position", + "type" + ] + }, + "ChannelType": { + "enum": [ + 0, + 1, + 10, + 11, + 12, + 13, + 14, + 15, + 2, + 255, + 3, + 33, + 34, + 35, + 4, + 5, + 6, + 64, + 7, + 8, + 9 + ], + "type": "number" + }, + "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", + "settings", + "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" + ] + }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, + "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": { + "enum": [ + 1, + 2, + 3, + 4 + ], + "type": "number" + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "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": { + "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" + } + }, + "additionalProperties": false, + "required": [ + "message_id" + ] + }, + "referenced_message": { + "$ref": "#/definitions/Message" + }, + "interaction": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/InteractionType" + }, + "name": { + "type": "string" + }, + "user_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "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", + "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" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "color", + "flags", + "guild", + "guild_id", + "hoist", + "id", + "managed", + "mentionable", + "name", + "permissions", + "position" + ] + }, + "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": "number", + "enum": [ + 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" + ] + }, + "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": { + "enum": [ + 1, + 2, + 3 + ], + "type": "number" + }, + "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" + }, + "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" + } + }, + "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", + "team", + "team_id", + "user", + "user_id" + ] + }, + "TeamMemberState": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "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": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "StickerFormatType": { + "enum": [ + 0, + 1, + 2, + 3 + ], + "type": "number" + }, + "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" + ] + }, + "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" + ] + }, + "MessageType": { + "enum": [ + 0, + 1, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 19, + 2, + 20, + 255, + 3, + 4, + 41, + 42, + 43, + 5, + 50, + 6, + 63, + 7, + 8, + 9 + ], + "type": "number" + }, + "InteractionType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, + "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" + ] + }, + "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" + ] + }, + "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", + "enum": [ + true + ] + } + }, + "additionalProperties": false, + "required": [ + "attachments", + "author", + "channel_id", + "components", + "edited_timestamp", + "embeds", + "flags", + "hit", + "id", + "mention_roles", + "mentions", + "pinned", + "poll", + "timestamp", + "tts", + "type" + ] + }, + "PublicUser": { + "type": "object", + "properties": { + "id": { + "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" + ] + }, + "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" + ] + }, + "Snowflake": { + "description": "A container for useful snowflake-related methods.", + "type": "object", + "additionalProperties": false + }, + "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" + ] + }, + "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" + ] + }, + "APIGuild": { + "type": "object", + "properties": { + "reload": { + "description": "Reloads entity data from the database.", + "type": "object", + "additionalProperties": false + }, + "name": { + "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" + } + }, + "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 + }, + "remove": { + "description": "Removes current entity from the database.", + "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" + }, + "description": { + "type": "string" + }, + "unavailable": { + "type": "boolean" + }, + "channels": { + "type": "array", + "items": { + "$ref": "#/definitions/Channel" + } + }, + "region": { + "type": "string" + }, + "system_channel_id": { + "type": "string" + }, + "rules_channel_id": { + "type": "string" + }, + "afk_timeout": { + "type": "integer" + }, + "explicit_content_filter": { + "type": "integer" + }, + "afk_channel_id": { + "type": "string" + }, + "bans": { + "type": "array", + "items": { + "$ref": "#/definitions/Ban" + } + }, + "default_message_notifications": { + "type": "integer" + }, + "discovery_splash": { + "type": "string" + }, + "features": { + "type": "array", + "items": { + "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" + }, + "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" + }, + "preferred_locale": { + "type": "string" + }, + "premium_subscription_count": { + "type": "integer" + }, + "premium_tier": { + "type": "integer" + }, + "public_updates_channel_id": { + "type": "string" + }, + "splash": { + "type": "string" + }, + "system_channel_flags": { + "type": "integer" + }, + "verification_level": { + "type": "integer" + }, + "welcome_screen": { + "$ref": "#/definitions/GuildWelcomeScreen" + }, + "widget_channel_id": { + "type": "string" + }, + "widget_enabled": { + "type": "boolean" + }, + "nsfw_level": { + "type": "integer" + }, + "permissions": { + "type": "integer" + }, + "premium_progress_bar_enabled": { + "type": "boolean" + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "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 + }, + "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" + ] + }, + "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 + } + }, + "additionalProperties": false, + "required": [ + "maxAttachmentSize", + "maxBulkDelete", + "maxCharacters", + "maxEmbedDownloadSize", + "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": {} + }, + "additionalProperties": false, + "required": [ + "auth", + "channel", + "guild", + "webhook" + ] + }, + "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" + ] + }, + "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" + ] + }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, + "TokenResponse": { + "type": "object", + "properties": { + "token": { + "type": "string" + }, + "settings": { + "$ref": "#/definitions/UserSettings" + } + }, + "additionalProperties": false, + "required": [ + "settings", + "token" + ] + }, + "MFAResponse": { + "type": "object", + "properties": { + "ticket": { + "type": "string" + }, + "mfa": { + "type": "boolean", + "enum": [ + true + ] + }, + "sms": { + "type": "boolean", + "enum": [ + false + ] + }, + "token": { + "type": "null" + } + }, + "additionalProperties": false, + "required": [ + "mfa", + "sms", + "ticket", + "token" + ] + }, + "WebAuthnResponse": { + "type": "object", + "properties": { + "webauthn": { + "type": "string" + }, + "ticket": { + "type": "string" + }, + "mfa": { + "type": "boolean", + "enum": [ + true + ] + }, + "sms": { + "type": "boolean", + "enum": [ + false + ] + }, + "token": { + "type": "null" + } + }, + "additionalProperties": false, + "required": [ + "mfa", + "sms", + "ticket", + "token", + "webauthn" + ] + } + }, + "$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, + "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, + "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" + ] + }, + "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 + }, + "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": { + "enum": [ + 0, + 1, + 2, + 4, + 5 + ], + "type": "number" + }, + "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", + "enum": [ + 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", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, + "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", + "enum": [ + 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", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "Guild": { + "type": "object", + "properties": { + "afk_channel_id": { + "type": "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": "string" + }, + "public_updates_channel": { + "$ref": "#/definitions/Channel" + }, + "rules_channel_id": { + "type": "string" + }, + "rules_channel": { + "type": "string" + }, + "region": { + "type": "string" + }, + "splash": { + "type": "string" + }, + "system_channel_id": { + "type": "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" + }, + "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", + "default_thread_rate_limit_per_user", + "flags", + "id", + "nsfw", + "owner", + "parent_id", + "position", + "type" + ] + }, + "ChannelType": { + "enum": [ + 0, + 1, + 10, + 11, + 12, + 13, + 14, + 15, + 2, + 255, + 3, + 33, + 34, + 35, + 4, + 5, + 6, + 64, + 7, + 8, + 9 + ], + "type": "number" + }, + "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", + "settings", + "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" + ] + }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, + "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": { + "enum": [ + 1, + 2, + 3, + 4 + ], + "type": "number" + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "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": { + "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" + } + }, + "additionalProperties": false, + "required": [ + "message_id" + ] + }, + "referenced_message": { + "$ref": "#/definitions/Message" + }, + "interaction": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/InteractionType" + }, + "name": { + "type": "string" + }, + "user_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "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", + "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" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "color", + "flags", + "guild", + "guild_id", + "hoist", + "id", + "managed", + "mentionable", + "name", + "permissions", + "position" + ] + }, + "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": "number", + "enum": [ + 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" + ] + }, + "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": { + "enum": [ + 1, + 2, + 3 + ], + "type": "number" + }, + "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" + }, + "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" + } + }, + "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", + "team", + "team_id", + "user", + "user_id" + ] + }, + "TeamMemberState": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "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": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "StickerFormatType": { + "enum": [ + 0, + 1, + 2, + 3 + ], + "type": "number" + }, + "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" + ] + }, + "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" + ] + }, + "MessageType": { + "enum": [ + 0, + 1, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 19, + 2, + 20, + 255, + 3, + 4, + 41, + 42, + 43, + 5, + 50, + 6, + 63, + 7, + 8, + 9 + ], + "type": "number" + }, + "InteractionType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, + "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" + ] + }, + "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" + ] + }, + "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", + "enum": [ + true + ] + } + }, + "additionalProperties": false, + "required": [ + "attachments", + "author", + "channel_id", + "components", + "edited_timestamp", + "embeds", + "flags", + "hit", + "id", + "mention_roles", + "mentions", + "pinned", + "poll", + "timestamp", + "tts", + "type" + ] + }, + "PublicUser": { + "type": "object", + "properties": { + "id": { + "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" + ] + }, + "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" + ] + }, + "Snowflake": { + "description": "A container for useful snowflake-related methods.", + "type": "object", + "additionalProperties": false + }, + "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" + ] + }, + "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" + ] + }, + "APIGuild": { + "type": "object", + "properties": { + "reload": { + "description": "Reloads entity data from the database.", + "type": "object", + "additionalProperties": false + }, + "name": { + "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" + } + }, + "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 + }, + "remove": { + "description": "Removes current entity from the database.", + "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" + }, + "description": { + "type": "string" + }, + "unavailable": { + "type": "boolean" + }, + "channels": { + "type": "array", + "items": { + "$ref": "#/definitions/Channel" + } + }, + "region": { + "type": "string" + }, + "system_channel_id": { + "type": "string" + }, + "rules_channel_id": { + "type": "string" + }, + "afk_timeout": { + "type": "integer" + }, + "explicit_content_filter": { + "type": "integer" + }, + "afk_channel_id": { + "type": "string" + }, + "bans": { + "type": "array", + "items": { + "$ref": "#/definitions/Ban" + } + }, + "default_message_notifications": { + "type": "integer" + }, + "discovery_splash": { + "type": "string" + }, + "features": { + "type": "array", + "items": { + "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" + }, + "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" + }, + "preferred_locale": { + "type": "string" + }, + "premium_subscription_count": { + "type": "integer" + }, + "premium_tier": { + "type": "integer" + }, + "public_updates_channel_id": { + "type": "string" + }, + "splash": { + "type": "string" + }, + "system_channel_flags": { + "type": "integer" + }, + "verification_level": { + "type": "integer" + }, + "welcome_screen": { + "$ref": "#/definitions/GuildWelcomeScreen" + }, + "widget_channel_id": { + "type": "string" + }, + "widget_enabled": { + "type": "boolean" + }, + "nsfw_level": { + "type": "integer" + }, + "permissions": { + "type": "integer" + }, + "premium_progress_bar_enabled": { + "type": "boolean" + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "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 + }, + "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" + ] + }, + "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 + } + }, + "additionalProperties": false, + "required": [ + "maxAttachmentSize", + "maxBulkDelete", + "maxCharacters", + "maxEmbedDownloadSize", + "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": {} + }, + "additionalProperties": false, + "required": [ + "auth", + "channel", + "guild", + "webhook" + ] + }, + "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" + ] + }, + "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" + ] + }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, + "TokenResponse": { + "type": "object", + "properties": { + "token": { + "type": "string" + }, + "settings": { + "$ref": "#/definitions/UserSettings" + } + }, + "additionalProperties": false, + "required": [ + "settings", + "token" + ] + }, + "MFAResponse": { + "type": "object", + "properties": { + "ticket": { + "type": "string" + }, + "mfa": { + "type": "boolean", + "enum": [ + true + ] + }, + "sms": { + "type": "boolean", + "enum": [ + false + ] + }, + "token": { + "type": "null" + } + }, + "additionalProperties": false, + "required": [ + "mfa", + "sms", + "ticket", + "token" + ] + }, + "WebAuthnResponse": { + "type": "object", + "properties": { + "webauthn": { + "type": "string" + }, + "ticket": { + "type": "string" + }, + "mfa": { + "type": "boolean", + "enum": [ + true + ] + }, + "sms": { + "type": "boolean", + "enum": [ + false + ] + }, + "token": { + "type": "null" + } + }, + "additionalProperties": false, + "required": [ + "mfa", + "sms", + "ticket", + "token", + "webauthn" + ] + } + }, + "$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" + ], + "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, + "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" + ] + }, + "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 + }, + "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": { + "enum": [ + 0, + 1, + 2, + 4, + 5 + ], + "type": "number" + }, + "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", + "enum": [ + 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", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, + "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", + "enum": [ + 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", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "Guild": { + "type": "object", + "properties": { + "afk_channel_id": { + "type": "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": "string" + }, + "public_updates_channel": { + "$ref": "#/definitions/Channel" + }, + "rules_channel_id": { + "type": "string" + }, + "rules_channel": { + "type": "string" + }, + "region": { + "type": "string" + }, + "splash": { + "type": "string" + }, + "system_channel_id": { + "type": "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" + }, + "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", + "default_thread_rate_limit_per_user", + "flags", + "id", + "nsfw", + "owner", + "parent_id", + "position", + "type" + ] + }, + "ChannelType": { + "enum": [ + 0, + 1, + 10, + 11, + 12, + 13, + 14, + 15, + 2, + 255, + 3, + 33, + 34, + 35, + 4, + 5, + 6, + 64, + 7, + 8, + 9 + ], + "type": "number" + }, + "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", + "settings", + "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" + ] + }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, + "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": { + "enum": [ + 1, + 2, + 3, + 4 + ], + "type": "number" + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "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": { + "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" + } + }, + "additionalProperties": false, + "required": [ + "message_id" + ] + }, + "referenced_message": { + "$ref": "#/definitions/Message" + }, + "interaction": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/InteractionType" + }, + "name": { + "type": "string" + }, + "user_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "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", + "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" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "color", + "flags", + "guild", + "guild_id", + "hoist", + "id", + "managed", + "mentionable", + "name", + "permissions", + "position" + ] + }, + "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": "number", + "enum": [ + 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" + ] + }, + "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": { + "enum": [ + 1, + 2, + 3 + ], + "type": "number" + }, + "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" + }, + "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" + } + }, + "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", + "team", + "team_id", + "user", + "user_id" + ] + }, + "TeamMemberState": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "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": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "StickerFormatType": { + "enum": [ + 0, + 1, + 2, + 3 + ], + "type": "number" + }, + "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" + ] + }, + "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" + ] + }, + "MessageType": { + "enum": [ + 0, + 1, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 19, + 2, + 20, + 255, + 3, + 4, + 41, + 42, + 43, + 5, + 50, + 6, + 63, + 7, + 8, + 9 + ], + "type": "number" + }, + "InteractionType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, + "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" + ] + }, + "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" + ] + }, + "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", + "enum": [ + true + ] + } + }, + "additionalProperties": false, + "required": [ + "attachments", + "author", + "channel_id", + "components", + "edited_timestamp", + "embeds", + "flags", + "hit", + "id", + "mention_roles", + "mentions", + "pinned", + "poll", + "timestamp", + "tts", + "type" + ] + }, + "PublicUser": { + "type": "object", + "properties": { + "id": { + "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" + ] + }, + "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" + ] + }, + "Snowflake": { + "description": "A container for useful snowflake-related methods.", + "type": "object", + "additionalProperties": false + }, + "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" + ] + }, + "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" + ] + }, + "APIGuild": { + "type": "object", + "properties": { + "reload": { + "description": "Reloads entity data from the database.", + "type": "object", + "additionalProperties": false + }, + "name": { + "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" + } + }, + "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 + }, + "remove": { + "description": "Removes current entity from the database.", + "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" + }, + "description": { + "type": "string" + }, + "unavailable": { + "type": "boolean" + }, + "channels": { + "type": "array", + "items": { + "$ref": "#/definitions/Channel" + } + }, + "region": { + "type": "string" + }, + "system_channel_id": { + "type": "string" + }, + "rules_channel_id": { + "type": "string" + }, + "afk_timeout": { + "type": "integer" + }, + "explicit_content_filter": { + "type": "integer" + }, + "afk_channel_id": { + "type": "string" + }, + "bans": { + "type": "array", + "items": { + "$ref": "#/definitions/Ban" + } + }, + "default_message_notifications": { + "type": "integer" + }, + "discovery_splash": { + "type": "string" + }, + "features": { + "type": "array", + "items": { + "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" + }, + "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" + }, + "preferred_locale": { + "type": "string" + }, + "premium_subscription_count": { + "type": "integer" + }, + "premium_tier": { + "type": "integer" + }, + "public_updates_channel_id": { + "type": "string" + }, + "splash": { + "type": "string" + }, + "system_channel_flags": { + "type": "integer" + }, + "verification_level": { + "type": "integer" + }, + "welcome_screen": { + "$ref": "#/definitions/GuildWelcomeScreen" + }, + "widget_channel_id": { + "type": "string" + }, + "widget_enabled": { + "type": "boolean" + }, + "nsfw_level": { + "type": "integer" + }, + "permissions": { + "type": "integer" + }, + "premium_progress_bar_enabled": { + "type": "boolean" + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "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 + }, + "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" + ] + }, + "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 + } + }, + "additionalProperties": false, + "required": [ + "maxAttachmentSize", + "maxBulkDelete", + "maxCharacters", + "maxEmbedDownloadSize", + "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": {} + }, + "additionalProperties": false, + "required": [ + "auth", + "channel", + "guild", + "webhook" + ] + }, + "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" + ] + }, + "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" + ] + }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, + "TokenResponse": { + "type": "object", + "properties": { + "token": { + "type": "string" + }, + "settings": { + "$ref": "#/definitions/UserSettings" + } + }, + "additionalProperties": false, + "required": [ + "settings", + "token" + ] + }, + "MFAResponse": { + "type": "object", + "properties": { + "ticket": { + "type": "string" + }, + "mfa": { + "type": "boolean", + "enum": [ + true + ] + }, + "sms": { + "type": "boolean", + "enum": [ + false + ] + }, + "token": { + "type": "null" + } + }, + "additionalProperties": false, + "required": [ + "mfa", + "sms", + "ticket", + "token" + ] + }, + "WebAuthnResponse": { + "type": "object", + "properties": { + "webauthn": { + "type": "string" + }, + "ticket": { + "type": "string" + }, + "mfa": { + "type": "boolean", + "enum": [ + true + ] + }, + "sms": { + "type": "boolean", + "enum": [ + false + ] + }, + "token": { + "type": "null" + } + }, + "additionalProperties": false, + "required": [ + "mfa", + "sms", + "ticket", + "token", + "webauthn" + ] + } + }, + "$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" + ], + "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, + "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" + ] + }, + "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 + }, + "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": { + "enum": [ + 0, + 1, + 2, + 4, + 5 + ], + "type": "number" + }, + "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", + "enum": [ + 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", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, + "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", + "enum": [ + 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", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "Guild": { + "type": "object", + "properties": { + "afk_channel_id": { + "type": "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": "string" + }, + "public_updates_channel": { + "$ref": "#/definitions/Channel" + }, + "rules_channel_id": { + "type": "string" + }, + "rules_channel": { + "type": "string" + }, + "region": { + "type": "string" + }, + "splash": { + "type": "string" + }, + "system_channel_id": { + "type": "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" + }, + "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", + "default_thread_rate_limit_per_user", + "flags", + "id", + "nsfw", + "owner", + "parent_id", + "position", + "type" + ] + }, + "ChannelType": { + "enum": [ + 0, + 1, + 10, + 11, + 12, + 13, + 14, + 15, + 2, + 255, + 3, + 33, + 34, + 35, + 4, + 5, + 6, + 64, + 7, + 8, + 9 + ], + "type": "number" + }, + "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", + "settings", + "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" + ] + }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, + "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": { + "enum": [ + 1, + 2, + 3, + 4 + ], + "type": "number" + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "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": { + "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" + } + }, + "additionalProperties": false, + "required": [ + "message_id" + ] + }, + "referenced_message": { + "$ref": "#/definitions/Message" + }, + "interaction": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/InteractionType" + }, + "name": { + "type": "string" + }, + "user_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "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", + "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" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "color", + "flags", + "guild", + "guild_id", + "hoist", + "id", + "managed", + "mentionable", + "name", + "permissions", + "position" + ] + }, + "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": "number", + "enum": [ + 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" + ] + }, + "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": { + "enum": [ + 1, + 2, + 3 + ], + "type": "number" + }, + "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" + }, + "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" + } + }, + "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", + "team", + "team_id", + "user", + "user_id" + ] + }, + "TeamMemberState": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "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": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "StickerFormatType": { + "enum": [ + 0, + 1, + 2, + 3 + ], + "type": "number" + }, + "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" + ] + }, + "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" + ] + }, + "MessageType": { + "enum": [ + 0, + 1, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 19, + 2, + 20, + 255, + 3, + 4, + 41, + 42, + 43, + 5, + 50, + 6, + 63, + 7, + 8, + 9 + ], + "type": "number" + }, + "InteractionType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, + "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" + ] + }, + "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" + ] + }, + "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", + "enum": [ + true + ] + } + }, + "additionalProperties": false, + "required": [ + "attachments", + "author", + "channel_id", + "components", + "edited_timestamp", + "embeds", + "flags", + "hit", + "id", + "mention_roles", + "mentions", + "pinned", + "poll", + "timestamp", + "tts", + "type" + ] + }, + "PublicUser": { + "type": "object", + "properties": { + "id": { + "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" + ] + }, + "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" + ] + }, + "Snowflake": { + "description": "A container for useful snowflake-related methods.", + "type": "object", + "additionalProperties": false + }, + "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" + ] + }, + "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" + ] + }, + "APIGuild": { + "type": "object", + "properties": { + "reload": { + "description": "Reloads entity data from the database.", + "type": "object", + "additionalProperties": false + }, + "name": { + "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" + } + }, + "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 + }, + "remove": { + "description": "Removes current entity from the database.", + "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" + }, + "description": { + "type": "string" + }, + "unavailable": { + "type": "boolean" + }, + "channels": { + "type": "array", + "items": { + "$ref": "#/definitions/Channel" + } + }, + "region": { + "type": "string" + }, + "system_channel_id": { + "type": "string" + }, + "rules_channel_id": { + "type": "string" + }, + "afk_timeout": { + "type": "integer" + }, + "explicit_content_filter": { + "type": "integer" + }, + "afk_channel_id": { + "type": "string" + }, + "bans": { + "type": "array", + "items": { + "$ref": "#/definitions/Ban" + } + }, + "default_message_notifications": { + "type": "integer" + }, + "discovery_splash": { + "type": "string" + }, + "features": { + "type": "array", + "items": { + "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" + }, + "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" + }, + "preferred_locale": { + "type": "string" + }, + "premium_subscription_count": { + "type": "integer" + }, + "premium_tier": { + "type": "integer" + }, + "public_updates_channel_id": { + "type": "string" + }, + "splash": { + "type": "string" + }, + "system_channel_flags": { + "type": "integer" + }, + "verification_level": { + "type": "integer" + }, + "welcome_screen": { + "$ref": "#/definitions/GuildWelcomeScreen" + }, + "widget_channel_id": { + "type": "string" + }, + "widget_enabled": { + "type": "boolean" + }, + "nsfw_level": { + "type": "integer" + }, + "permissions": { + "type": "integer" + }, + "premium_progress_bar_enabled": { + "type": "boolean" + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "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 + }, + "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" + ] + }, + "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 + } + }, + "additionalProperties": false, + "required": [ + "maxAttachmentSize", + "maxBulkDelete", + "maxCharacters", + "maxEmbedDownloadSize", + "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": {} + }, + "additionalProperties": false, + "required": [ + "auth", + "channel", + "guild", + "webhook" + ] + }, + "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" + ] + }, + "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" + ] + }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, + "TokenResponse": { + "type": "object", + "properties": { + "token": { + "type": "string" + }, + "settings": { + "$ref": "#/definitions/UserSettings" + } + }, + "additionalProperties": false, + "required": [ + "settings", + "token" + ] + }, + "MFAResponse": { + "type": "object", + "properties": { + "ticket": { + "type": "string" + }, + "mfa": { + "type": "boolean", + "enum": [ + true + ] + }, + "sms": { + "type": "boolean", + "enum": [ + false + ] + }, + "token": { + "type": "null" + } + }, + "additionalProperties": false, + "required": [ + "mfa", + "sms", + "ticket", + "token" + ] + }, + "WebAuthnResponse": { + "type": "object", + "properties": { + "webauthn": { + "type": "string" + }, + "ticket": { + "type": "string" + }, + "mfa": { + "type": "boolean", + "enum": [ + true + ] + }, + "sms": { + "type": "boolean", + "enum": [ + false + ] + }, + "token": { + "type": "null" + } + }, + "additionalProperties": false, + "required": [ + "mfa", + "sms", + "ticket", + "token", + "webauthn" + ] + } + }, + "$schema": "http://json-schema.org/draft-07/schema#" + }, + "BotModifySchema": { + "type": "object", + "properties": { + "avatar": { + "type": "string" + }, + "username": { + "type": "string" + } + }, + "additionalProperties": false, + "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, + "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" + ] + }, + "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 + }, + "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": { + "enum": [ + 0, + 1, + 2, + 4, + 5 + ], + "type": "number" + }, + "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", + "enum": [ + 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", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, + "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", + "enum": [ + 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", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "Guild": { + "type": "object", + "properties": { + "afk_channel_id": { + "type": "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": "string" + }, + "public_updates_channel": { + "$ref": "#/definitions/Channel" + }, + "rules_channel_id": { + "type": "string" + }, + "rules_channel": { + "type": "string" + }, + "region": { + "type": "string" + }, + "splash": { + "type": "string" + }, + "system_channel_id": { + "type": "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" + }, + "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", + "default_thread_rate_limit_per_user", + "flags", + "id", + "nsfw", + "owner", + "parent_id", + "position", + "type" + ] + }, + "ChannelType": { + "enum": [ + 0, + 1, + 10, + 11, + 12, + 13, + 14, + 15, + 2, + 255, + 3, + 33, + 34, + 35, + 4, + 5, + 6, + 64, + 7, + 8, + 9 + ], + "type": "number" + }, + "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", + "settings", + "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" + ] + }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, + "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": { + "enum": [ + 1, + 2, + 3, + 4 + ], + "type": "number" + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "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": { + "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" + } + }, + "additionalProperties": false, + "required": [ + "message_id" + ] + }, + "referenced_message": { + "$ref": "#/definitions/Message" + }, + "interaction": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/InteractionType" + }, + "name": { + "type": "string" + }, + "user_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "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", + "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" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "color", + "flags", + "guild", + "guild_id", + "hoist", + "id", + "managed", + "mentionable", + "name", + "permissions", + "position" + ] + }, + "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": "number", + "enum": [ + 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" + ] + }, + "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": { + "enum": [ + 1, + 2, + 3 + ], + "type": "number" + }, + "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" + }, + "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" + } + }, + "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", + "team", + "team_id", + "user", + "user_id" + ] + }, + "TeamMemberState": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "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": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "StickerFormatType": { + "enum": [ + 0, + 1, + 2, + 3 + ], + "type": "number" + }, + "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" + ] + }, + "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" + ] + }, + "MessageType": { + "enum": [ + 0, + 1, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 19, + 2, + 20, + 255, + 3, + 4, + 41, + 42, + 43, + 5, + 50, + 6, + 63, + 7, + 8, + 9 + ], + "type": "number" + }, + "InteractionType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, + "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" + ] + }, + "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" + ] + }, + "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", + "enum": [ + true + ] + } + }, + "additionalProperties": false, + "required": [ + "attachments", + "author", + "channel_id", + "components", + "edited_timestamp", + "embeds", + "flags", + "hit", + "id", + "mention_roles", + "mentions", + "pinned", + "poll", + "timestamp", + "tts", + "type" + ] + }, + "PublicUser": { + "type": "object", + "properties": { + "id": { + "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" + ] + }, + "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" + ] + }, + "Snowflake": { + "description": "A container for useful snowflake-related methods.", + "type": "object", + "additionalProperties": false + }, + "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" + ] + }, + "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" + ] + }, + "APIGuild": { + "type": "object", + "properties": { + "reload": { + "description": "Reloads entity data from the database.", + "type": "object", + "additionalProperties": false + }, + "name": { + "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" + } + }, + "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 + }, + "remove": { + "description": "Removes current entity from the database.", + "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" + }, + "description": { + "type": "string" + }, + "unavailable": { + "type": "boolean" + }, + "channels": { + "type": "array", + "items": { + "$ref": "#/definitions/Channel" + } + }, + "region": { + "type": "string" + }, + "system_channel_id": { + "type": "string" + }, + "rules_channel_id": { + "type": "string" + }, + "afk_timeout": { + "type": "integer" + }, + "explicit_content_filter": { + "type": "integer" + }, + "afk_channel_id": { + "type": "string" + }, + "bans": { + "type": "array", + "items": { + "$ref": "#/definitions/Ban" + } + }, + "default_message_notifications": { + "type": "integer" + }, + "discovery_splash": { + "type": "string" + }, + "features": { + "type": "array", + "items": { + "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" + }, + "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" + }, + "preferred_locale": { + "type": "string" + }, + "premium_subscription_count": { + "type": "integer" + }, + "premium_tier": { + "type": "integer" + }, + "public_updates_channel_id": { + "type": "string" + }, + "splash": { + "type": "string" + }, + "system_channel_flags": { + "type": "integer" + }, + "verification_level": { + "type": "integer" + }, + "welcome_screen": { + "$ref": "#/definitions/GuildWelcomeScreen" + }, + "widget_channel_id": { + "type": "string" + }, + "widget_enabled": { + "type": "boolean" + }, + "nsfw_level": { + "type": "integer" + }, + "permissions": { + "type": "integer" + }, + "premium_progress_bar_enabled": { + "type": "boolean" + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "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 + }, + "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" + ] + }, + "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 + } + }, + "additionalProperties": false, + "required": [ + "maxAttachmentSize", + "maxBulkDelete", + "maxCharacters", + "maxEmbedDownloadSize", + "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": {} + }, + "additionalProperties": false, + "required": [ + "auth", + "channel", + "guild", + "webhook" + ] + }, + "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" + ] + }, + "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" + ] + }, + "Badge": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "description", + "icon", + "id" + ] + }, + "TokenResponse": { + "type": "object", + "properties": { + "token": { + "type": "string" + }, + "settings": { + "$ref": "#/definitions/UserSettings" + } + }, + "additionalProperties": false, + "required": [ + "settings", + "token" + ] + }, + "MFAResponse": { + "type": "object", + "properties": { + "ticket": { + "type": "string" + }, + "mfa": { + "type": "boolean", + "enum": [ + true + ] + }, + "sms": { + "type": "boolean", + "enum": [ + false + ] + }, + "token": { + "type": "null" + } + }, + "additionalProperties": false, + "required": [ + "mfa", + "sms", + "ticket", + "token" + ] + }, + "WebAuthnResponse": { + "type": "object", + "properties": { + "webauthn": { + "type": "string" + }, + "ticket": { + "type": "string" + }, + "mfa": { + "type": "boolean", + "enum": [ + true + ] + }, + "sms": { + "type": "boolean", + "enum": [ + false + ] + }, + "token": { + "type": "null" + } + }, + "additionalProperties": false, + "required": [ + "mfa", + "sms", + "ticket", + "token", + "webauthn" + ] + } + }, + "$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": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, + "ChannelPermissionOverwriteType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, + "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" + ] + }, + "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 + }, + "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": { + "enum": [ + 0, + 1, + 2, + 4, + 5 + ], + "type": "number" + }, + "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", + "enum": [ + 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", + "enum": [ + 2 + ] + }, + "ButtonStyle": { + "enum": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "number" + }, + "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", + "enum": [ + 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", + "enum": [ + 4 + ] + }, + "TextInputStyle": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "Guild": { + "type": "object", + "properties": { + "afk_channel_id": { + "type": "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": "string" + }, + "public_updates_channel": { + "$ref": "#/definitions/Channel" + }, + "rules_channel_id": { + "type": "string" + }, + "rules_channel": { + "type": "string" + }, + "region": { + "type": "string" + }, + "splash": { + "type": "string" + }, + "system_channel_id": { + "type": "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" + }, + "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", + "default_thread_rate_limit_per_user", + "flags", + "id", + "nsfw", + "owner", + "parent_id", + "position", + "type" + ] + }, + "ChannelType": { + "enum": [ + 0, + 1, + 10, + 11, + 12, + 13, + 14, + 15, + 2, + 255, + 3, + 33, + 34, + 35, + 4, + 5, + 6, + 64, + 7, + 8, + 9 + ], + "type": "number" + }, + "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", + "settings", + "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" + ] + }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + }, + "embedded": { + "type": "string" + } + }, + "additionalProperties": false + }, + "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": { + "enum": [ + 1, + 2, + 3, + 4 + ], + "type": "number" + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "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": { + "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" + } + }, + "additionalProperties": false, + "required": [ + "message_id" + ] + }, + "referenced_message": { + "$ref": "#/definitions/Message" + }, + "interaction": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/InteractionType" + }, + "name": { + "type": "string" + }, + "user_id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "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", + "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" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "color", + "flags", + "guild", + "guild_id", + "hoist", + "id", + "managed", + "mentionable", + "name", + "permissions", + "position" + ] + }, + "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": "number", + "enum": [ + 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" + ] + }, + "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": { + "enum": [ + 1, + 2, + 3 + ], + "type": "number" + }, + "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" + }, + "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" + } + }, + "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", + "team", + "team_id", + "user", + "user_id" + ] + }, + "TeamMemberState": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "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": { + "enum": [ + 1, + 2 + ], + "type": "number" + }, + "StickerFormatType": { + "enum": [ + 0, + 1, + 2, + 3 + ], + "type": "number" + }, + "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" + ] + }, + "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" + ] + }, + "MessageType": { + "enum": [ + 0, + 1, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 19, + 2, + 20, + 255, + 3, + 4, + 41, + 42, + 43, + 5, + 50, + 6, + 63, + 7, + 8, + 9 + ], + "type": "number" + }, + "InteractionType": { + "enum": [ + 0, + 1, + 2 + ], + "type": "number" + }, + "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" + ] + }, + "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" + ] + }, + "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", + "enum": [ + true + ] + } + }, + "additionalProperties": false, + "required": [ + "attachments", + "author", + "channel_id", + "components", + "edited_timestamp", + "embeds", + "flags", + "hit", + "id", + "mention_roles", + "mentions", + "pinned", + "poll", + "timestamp", + "tts", + "type" + ] + }, + "PublicUser": { + "type": "object", + "properties": { + "id": { + "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" + ] + }, + "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" + ] + }, + "Snowflake": { + "description": "A container for useful snowflake-related methods.", + "type": "object", + "additionalProperties": false + }, + "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" + ] + }, + "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" + ] + }, + "APIGuild": { + "type": "object", + "properties": { + "reload": { + "description": "Reloads entity data from the database.", + "type": "object", + "additionalProperties": false + }, + "name": { + "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" + } + }, + "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 + }, + "remove": { + "description": "Removes current entity from the database.", + "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" + }, + "description": { + "type": "string" + }, + "unavailable": { + "type": "boolean" + }, + "channels": { + "type": "array", + "items": { + "$ref": "#/definitions/Channel" + } + }, + "region": { + "type": "string" + }, + "system_channel_id": { + "type": "string" + }, + "rules_channel_id": { + "type": "string" + }, + "afk_timeout": { + "type": "integer" + }, + "explicit_content_filter": { + "type": "integer" + }, + "afk_channel_id": { + "type": "string" + }, + "bans": { + "type": "array", + "items": { + "$ref": "#/definitions/Ban" + } + }, + "default_message_notifications": { + "type": "integer" + }, + "discovery_splash": { + "type": "string" + }, + "features": { + "type": "array", + "items": { + "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" + }, + "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" + }, + "preferred_locale": { + "type": "string" + }, + "premium_subscription_count": { + "type": "integer" + }, + "premium_tier": { + "type": "integer" + }, + "public_updates_channel_id": { + "type": "string" + }, + "splash": { + "type": "string" + }, + "system_channel_flags": { + "type": "integer" + }, + "verification_level": { + "type": "integer" + }, + "welcome_screen": { + "$ref": "#/definitions/GuildWelcomeScreen" + }, + "widget_channel_id": { + "type": "string" + }, + "widget_enabled": { + "type": "boolean" + }, + "nsfw_level": { + "type": "integer" + }, + "permissions": { + "type": "integer" + }, + "premium_progress_bar_enabled": { + "type": "boolean" + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "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" + ] + }, + "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 + }, + "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" + ] + }, + "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 + } + }, + "additionalProperties": false, + "required": [ + "maxAttachmentSize", + "maxBulkDelete", + "maxCharacters", + "maxEmbedDownloadSize", + "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": {} + }, + "additionalProperties": false, + "required": [ + "auth", + "channel", + "guild", + "webhook" ] }, "GlobalRateLimits": { @@ -5088,6 +62551,96 @@ "type" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -8964,14 +66517,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -9564,9 +67117,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -9576,22 +67127,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -9807,6 +67342,96 @@ ] }, "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -13683,14 +71308,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -14283,9 +71908,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -14295,22 +71918,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -14521,6 +72128,96 @@ "nonce" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -18397,14 +76094,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -18997,9 +76694,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -19009,22 +76704,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -19271,6 +76950,96 @@ "user_id" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -23147,14 +80916,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -23747,9 +81516,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -23759,22 +81526,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -23990,6 +81741,96 @@ "state" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -27866,14 +85707,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -28466,9 +86307,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -28478,22 +86317,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -28700,6 +86523,96 @@ }, "additionalProperties": false, "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -32576,14 +90489,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -33176,9 +91089,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -33188,22 +91099,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -33413,6 +91308,96 @@ "recipients" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -37289,14 +95274,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -37889,9 +95874,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -37901,22 +95884,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -38135,6 +96102,96 @@ "image" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -42011,14 +100068,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -42611,9 +100668,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -42623,22 +100678,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -42845,6 +100884,96 @@ }, "additionalProperties": false, "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -46721,14 +104850,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -47321,9 +105450,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -47333,22 +105460,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -47555,6 +105666,96 @@ "login" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -51431,14 +109632,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -52031,9 +110232,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -52043,22 +110242,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -52284,6 +110467,96 @@ }, "additionalProperties": false, "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -56160,14 +114433,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -56760,9 +115033,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -56772,22 +115043,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -56997,6 +115252,96 @@ "name" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -60873,14 +119218,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -61473,9 +119818,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -61485,22 +119828,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -61770,6 +120097,96 @@ }, "additionalProperties": false, "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -65646,14 +124063,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -66246,9 +124663,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -66258,22 +124673,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -66502,6 +124901,96 @@ }, "additionalProperties": false, "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -70378,14 +128867,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -70978,9 +129467,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -70990,22 +129477,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -71375,6 +129846,96 @@ "token" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -75251,14 +133812,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -75851,9 +134412,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -75863,22 +134422,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -76106,6 +134649,96 @@ }, "additionalProperties": false, "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -79982,14 +138615,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -80582,9 +139215,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -80594,22 +139225,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -80847,6 +139462,96 @@ "guild_id" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -84723,14 +143428,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -85323,9 +144028,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -85335,22 +144038,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -85570,6 +144257,96 @@ "password" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -89446,14 +148223,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -90046,9 +148823,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -90058,22 +148833,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -90299,6 +149058,96 @@ }, "additionalProperties": false, "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -94175,14 +153024,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -94775,9 +153624,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -94787,22 +153634,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -95018,6 +153849,96 @@ }, "additionalProperties": false, "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -98894,14 +157815,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -99494,9 +158415,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -99506,22 +158425,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -99725,6 +158628,96 @@ }, "additionalProperties": false, "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -103601,14 +162594,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -104201,9 +163194,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -104213,22 +163204,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -104569,6 +163544,96 @@ }, "additionalProperties": false, "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -108445,14 +167510,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -109045,9 +168110,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -109057,22 +168120,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -109267,6 +168314,96 @@ "PollCreationSchema": { "$ref": "#/definitions/PollCreationSchema", "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -113143,14 +172280,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -113743,9 +172880,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -113755,22 +172890,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -113965,6 +173084,9 @@ "MessageEditSchema": { "type": "object", "properties": { + "embed": { + "$ref": "#/definitions/Embed" + }, "file": { "type": "object", "properties": { @@ -113977,12 +173099,29 @@ "filename" ] }, - "embed": { - "$ref": "#/definitions/Embed" - }, "flags": { "type": "integer" }, + "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" + ] + } + }, "content": { "type": "string" }, @@ -114055,26 +173194,6 @@ "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" - ] - } - }, "sticker_ids": { "type": "array", "items": { @@ -114108,6 +173227,96 @@ }, "additionalProperties": false, "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -117984,14 +177193,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -118584,9 +177793,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -118596,22 +177803,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -118818,6 +178009,96 @@ "password" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -122694,14 +181975,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -123294,9 +182575,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -123306,22 +182585,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -123536,6 +182799,96 @@ "tags" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -127412,14 +186765,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -128012,9 +187365,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -128024,22 +187375,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -128247,6 +187582,96 @@ "token" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -132123,14 +191548,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -132723,9 +192148,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -132735,22 +192158,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -132958,6 +192365,96 @@ "before" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -136834,14 +196331,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -137434,9 +196931,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -137446,22 +196941,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -137704,6 +197183,96 @@ "username" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -141580,14 +201149,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -142180,9 +201749,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -142192,22 +201759,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -142415,6 +201966,96 @@ "username" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -146291,14 +205932,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -146891,9 +206532,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -146903,22 +206542,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -147125,6 +206748,96 @@ }, "additionalProperties": false, "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -151001,14 +210714,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -151601,9 +211314,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -151613,22 +211324,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -151871,6 +211566,96 @@ "guild_id" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -155747,14 +215532,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -156347,9 +216132,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -156359,22 +216142,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -156596,6 +216363,96 @@ }, "additionalProperties": false, "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -160472,14 +220329,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -161072,9 +220929,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -161084,22 +220939,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -161310,6 +221149,96 @@ ] }, "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -165186,14 +225115,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -165786,9 +225715,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -165798,22 +225725,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -166098,6 +226009,96 @@ "protocol" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -169974,14 +229975,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -170574,9 +230575,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -170586,22 +230585,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -170808,6 +230791,96 @@ "name" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -174684,14 +234757,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -175284,9 +235357,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -175296,22 +235367,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -175518,6 +235573,96 @@ "name" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -179394,14 +239539,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -179994,9 +240139,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -180006,22 +240149,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -180225,6 +240352,96 @@ "code" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -184101,14 +244318,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -184701,9 +244918,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -184713,22 +244928,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -184938,6 +245137,96 @@ "password" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -188814,14 +249103,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -189414,9 +249703,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -189426,22 +249713,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -189661,6 +249932,96 @@ "ticket" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -193537,14 +253898,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -194137,9 +254498,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -194149,22 +254508,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -194368,6 +254711,96 @@ "user_id" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -198244,14 +258677,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -198844,9 +259277,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -198856,22 +259287,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -199124,6 +259539,96 @@ }, "additionalProperties": false, "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -203000,14 +263505,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -203600,9 +264105,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -203612,22 +264115,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -203865,6 +264352,96 @@ }, "additionalProperties": false, "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -207741,14 +268318,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -208341,9 +268918,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -208353,22 +268928,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -208572,6 +269131,96 @@ "note" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -212448,14 +273097,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -213048,9 +273697,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -213060,22 +273707,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -213304,6 +273935,96 @@ }, "additionalProperties": false, "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -217180,14 +277901,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -217780,9 +278501,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -217792,22 +278511,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -218131,6 +278834,96 @@ }, "additionalProperties": false, "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -222007,14 +282800,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -222607,9 +283400,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -222619,22 +283410,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -222837,6 +283612,96 @@ }, "additionalProperties": false, "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -226713,14 +287578,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -227313,9 +288178,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -227325,22 +288188,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -227582,6 +288429,96 @@ "user_id" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -231458,14 +292395,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -232058,9 +292995,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -232070,22 +293005,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -232315,6 +293234,96 @@ "self_mute" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -236191,14 +297200,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -236791,9 +297800,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -236803,22 +297810,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -237100,6 +298091,96 @@ "video_ssrc" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -240976,14 +302057,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -241576,9 +302657,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -241588,22 +302667,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -241807,6 +302870,96 @@ "password" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -245683,14 +306836,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -246283,9 +307436,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -246295,22 +307446,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -246522,6 +307657,96 @@ "ticket" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -250398,14 +311623,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -250998,9 +312223,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -251010,22 +312233,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -251227,6 +312434,96 @@ } ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -255103,14 +316400,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -255703,9 +317000,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -255715,22 +317010,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -255938,6 +317217,96 @@ "ticket" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -259814,14 +321183,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -260414,9 +321783,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -260426,22 +321793,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -260649,6 +322000,96 @@ "name" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -264525,14 +325966,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -265125,9 +326566,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -265137,22 +326576,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -265446,6 +326869,96 @@ }, "additionalProperties": false, "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -269322,14 +330835,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -269922,9 +331435,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -269934,22 +331445,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -270157,6 +331652,96 @@ "enabled" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -274033,14 +335618,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -274633,9 +336218,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -274645,22 +336228,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -274900,6 +336467,96 @@ "message" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -278776,14 +340433,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -279376,9 +341033,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -279388,22 +341043,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -279615,6 +341254,96 @@ "captcha_sitekey" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -283491,14 +345220,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -284091,9 +345820,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -284103,22 +345830,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -284320,6 +346031,96 @@ } ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -288196,14 +349997,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -288796,9 +350597,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -288808,22 +350607,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -289031,6 +350814,96 @@ "regenerate_nonce" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -292907,14 +354780,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -293507,9 +355380,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -293519,22 +355390,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -293753,6 +355608,96 @@ "total" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -297629,14 +359574,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -298229,9 +360174,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -298241,22 +360184,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -298489,6 +360416,96 @@ "url" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -302365,14 +364382,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -302965,9 +364982,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -302977,22 +364992,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -303196,6 +365195,96 @@ "url" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -307072,14 +369161,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -307672,9 +369761,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -307684,22 +369771,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -307906,6 +369977,96 @@ "tokens" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -311782,14 +373943,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -312382,9 +374543,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -312394,22 +374553,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -312645,6 +374788,96 @@ "user" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -316521,14 +378754,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -317121,9 +379354,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -317133,22 +379364,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -317352,6 +379567,96 @@ "id" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -321228,14 +383533,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -321828,9 +384133,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -321840,22 +384143,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -322138,6 +384425,96 @@ "valid_rules_channel" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -326014,14 +388391,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -326614,9 +388991,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -326626,22 +389001,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -326852,6 +389211,96 @@ "total_results" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -330728,14 +393177,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -331328,9 +393777,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -331340,22 +393787,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -331559,6 +393990,96 @@ "pruned" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -335435,14 +397956,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -336035,9 +398556,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -336047,22 +398566,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -336266,6 +398769,96 @@ "purged" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -340142,14 +402735,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -340742,9 +403335,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -340754,22 +403345,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -340980,6 +403555,96 @@ "recommended_guilds" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -344856,14 +407521,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -345456,9 +408121,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -345468,22 +408131,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -345691,6 +408338,96 @@ } ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -349567,14 +412304,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -350167,9 +412904,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -350179,22 +412914,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -350398,6 +413117,96 @@ "code" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -354274,14 +417083,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -354874,9 +417683,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -354886,22 +417693,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -355180,6 +417971,96 @@ "presence_count" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -359056,14 +421937,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -359656,9 +422537,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -359668,22 +422547,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -359898,6 +422761,96 @@ "enabled" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -363774,14 +426727,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -364374,9 +427327,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -364386,22 +427337,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -364617,6 +427552,96 @@ "gateway" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -368493,14 +431518,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -369093,9 +432118,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -369105,22 +432128,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -369386,6 +432393,96 @@ "ping" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -373262,14 +436359,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -373862,9 +436959,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -373874,22 +436969,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -374114,6 +437193,96 @@ "counts" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -377990,14 +441159,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -378590,9 +441759,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -378602,22 +441769,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -378848,6 +441999,96 @@ "promotional_email_opt_in" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -382724,14 +445965,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -383324,9 +446565,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -383336,22 +446575,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -383576,6 +446799,96 @@ "stickers" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -387452,14 +450765,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -388052,9 +451365,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -388064,22 +451375,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -388283,6 +451578,96 @@ "location" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -392159,14 +455544,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -392759,9 +456144,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -392771,22 +456154,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -393018,6 +456385,96 @@ "width" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -396894,14 +460351,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -397494,9 +460951,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -397506,22 +460961,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -397765,6 +461204,96 @@ "gifs" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -401641,14 +465170,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -402241,9 +465770,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -402253,22 +465780,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -402466,6 +465977,96 @@ "$ref": "#/definitions/TenorGifResponse" }, "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -406342,14 +469943,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -406942,9 +470543,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -406954,22 +470553,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -407177,6 +470760,96 @@ "token" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -411053,14 +474726,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -411653,9 +475326,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -411665,22 +475336,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -411884,6 +475539,96 @@ "token" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -415760,14 +479505,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -416360,9 +480105,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -416372,22 +480115,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -416598,6 +480325,96 @@ "token" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -420474,14 +484291,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -421074,9 +484891,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -421086,22 +484901,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -421516,6 +485315,96 @@ "widget_enabled" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -425392,14 +489281,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -425992,9 +489881,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -426004,22 +489891,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -426214,6 +490085,96 @@ "APIPublicUser": { "$ref": "#/definitions/PublicUser", "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -430090,14 +494051,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -430690,9 +494651,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -430702,22 +494661,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -431012,6 +494955,96 @@ "verified" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -434888,14 +498921,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -435488,9 +499521,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -435500,22 +499531,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -435713,6 +499728,96 @@ "$ref": "#/definitions/APIGuild" }, "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -439589,14 +503694,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -440189,9 +504294,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -440201,22 +504304,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -440414,6 +504501,96 @@ "$ref": "#/definitions/DmChannelDTO" }, "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -444290,14 +508467,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -444890,9 +509067,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -444902,22 +509077,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -445115,6 +509274,96 @@ "$ref": "#/definitions/BackupCode" }, "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -448991,14 +513240,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -449591,9 +513840,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -449603,22 +513850,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -449916,6 +514147,96 @@ "verified" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -453792,14 +518113,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -454392,9 +518713,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -454404,22 +518723,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -454615,6 +518918,96 @@ "type": "array", "items": {}, "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -458491,14 +522884,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -459091,9 +523484,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -459103,22 +523494,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -459314,6 +523689,96 @@ "type": "array", "items": {}, "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -463190,14 +527655,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -463790,9 +528255,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -463802,22 +528265,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -464013,6 +528460,96 @@ "type": "array", "items": {}, "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -467889,14 +532426,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -468489,9 +533026,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -468501,22 +533036,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -468714,6 +533233,96 @@ "$ref": "#/definitions/Application" }, "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -472590,14 +537199,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -473190,9 +537799,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -473202,22 +537809,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -473415,6 +538006,96 @@ "$ref": "#/definitions/Invite" }, "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -477291,14 +541972,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -477891,9 +542572,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -477903,22 +542582,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -478116,6 +542779,96 @@ "$ref": "#/definitions/Message" }, "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -481992,14 +546745,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -482592,9 +547345,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -482604,22 +547355,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -482817,6 +547552,96 @@ "$ref": "#/definitions/Webhook" }, "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -486693,14 +551518,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -487293,9 +552118,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -487305,22 +552128,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -487518,6 +552325,96 @@ "$ref": "#/definitions/Categories" }, "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -491394,14 +556291,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -491994,9 +556891,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -492006,22 +556901,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -492283,6 +557162,96 @@ "tosPage" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -496159,14 +561128,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -496759,9 +561728,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -496771,22 +561738,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -496984,6 +561935,96 @@ "$ref": "#/definitions/Channel" }, "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -500860,14 +565901,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -501460,9 +566501,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -501472,22 +566511,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -501685,6 +566708,96 @@ "$ref": "#/definitions/Emoji" }, "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -505561,14 +570674,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -506161,9 +571274,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -506173,22 +571284,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -506386,6 +571481,96 @@ "$ref": "#/definitions/Member" }, "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -510262,14 +575447,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -510862,9 +576047,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -510874,22 +576057,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -511134,6 +576301,96 @@ "user" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -515010,14 +580267,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -515610,9 +580867,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -515622,22 +580877,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -516071,6 +581310,96 @@ "widget_enabled" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -519947,14 +585276,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -520547,9 +585876,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -520559,22 +585886,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -520772,6 +586083,96 @@ "$ref": "#/definitions/Role" }, "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -524648,14 +590049,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -525248,9 +590649,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -525260,22 +590659,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -525473,6 +590856,96 @@ "$ref": "#/definitions/Sticker" }, "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -529349,14 +594822,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -529949,9 +595422,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -529961,22 +595432,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -530174,6 +595629,96 @@ "$ref": "#/definitions/Template" }, "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -534050,14 +599595,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -534650,9 +600195,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -534662,22 +600205,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -534875,6 +600402,96 @@ "$ref": "#/definitions/GuildVoiceRegion" }, "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -538751,14 +604368,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -539351,9 +604968,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -539363,22 +604978,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -539602,6 +605201,96 @@ "user" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -543478,14 +609167,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -544078,9 +609767,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -544090,22 +609777,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -544303,6 +609974,96 @@ "$ref": "#/definitions/StickerPack" }, "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -548179,14 +613940,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -548779,9 +614540,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -548791,22 +614550,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -549002,6 +614745,96 @@ "type": "object", "additionalProperties": false, "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -552878,14 +618711,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -553478,9 +619311,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -553490,22 +619321,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -553724,6 +619539,96 @@ "url" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -557600,14 +623505,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -558200,9 +624105,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -558212,22 +624115,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -558439,6 +624326,96 @@ "user_id" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -562315,14 +628292,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -562915,9 +628892,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -562927,22 +628902,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -563273,6 +629232,96 @@ "user_profile" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -567149,14 +633198,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -567749,9 +633798,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -567761,22 +633808,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -567998,6 +634029,96 @@ ] }, "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -571874,14 +637995,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -572474,9 +638595,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -572486,22 +638605,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -572717,6 +638820,96 @@ "user" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -576593,14 +642786,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -577193,9 +643386,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -577205,22 +643396,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -577428,6 +643603,96 @@ "name" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -581304,14 +647569,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -581904,9 +648169,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -581916,22 +648179,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -582139,6 +648386,96 @@ "user" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -586015,14 +652352,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -586615,9 +652952,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -586627,22 +652962,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -586837,6 +653156,96 @@ "ActivitySchema": { "$ref": "#/definitions/ActivitySchema", "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -590713,14 +657122,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -591313,9 +657722,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -591325,22 +657732,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -591550,6 +657941,96 @@ "user_ids" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -595426,14 +661907,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -596026,9 +662507,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -596038,22 +662517,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -596260,6 +662723,96 @@ "messages" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -600136,14 +666689,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -600736,9 +667289,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -600748,22 +667299,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -600985,6 +667520,96 @@ "token" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -604861,14 +671486,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -605461,9 +672086,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -605473,22 +672096,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -605714,6 +672321,96 @@ "webauthn" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -609590,14 +676287,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -610190,9 +676887,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -610202,22 +676897,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -610422,6 +677101,96 @@ } ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -614298,14 +681067,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -614898,9 +681667,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -614910,22 +681677,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -615129,6 +681880,96 @@ "nick" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -619005,14 +685846,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -619605,9 +686446,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -619617,22 +686456,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -619836,6 +686659,96 @@ "days" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -623712,14 +690625,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -624312,9 +691225,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -624324,22 +691235,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { @@ -624549,6 +691444,96 @@ "token" ], "definitions": { + "Headers": { + "type": "object", + "properties": { + "append": { + "type": "object", + "additionalProperties": false + }, + "delete": { + "type": "object", + "additionalProperties": false + }, + "get": { + "type": "object", + "additionalProperties": false + }, + "has": { + "type": "object", + "additionalProperties": false + }, + "set": { + "type": "object", + "additionalProperties": false + }, + "getSetCookie": { + "type": "object", + "additionalProperties": false + }, + "forEach": { + "description": "Performs the specified action for each element in an array.", + "type": "object", + "additionalProperties": false + }, + "keys": { + "description": "Returns an array consisting of the keys of the object", + "type": "object", + "additionalProperties": false + }, + "values": { + "type": "object", + "additionalProperties": false + }, + "entries": { + "description": "Returns an array consisting of the key value pairs of the object", + "type": "object", + "additionalProperties": false + }, + "__@iterator": { + "type": "object", + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "__@iterator", + "append", + "delete", + "entries", + "forEach", + "get", + "getSetCookie", + "has", + "keys", + "set", + "values" + ] + }, + "ResponseType": { + "enum": [ + "basic", + "cors", + "default", + "error", + "opaque", + "opaqueredirect" + ], + "type": "string" + }, + "ReadableStream": { + "description": "This Streams API interface represents a readable stream of byte data.", + "type": "object", + "properties": { + "locked": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "locked" + ] + }, "ChannelPermissionOverwriteType": { "enum": [ 0, @@ -628425,14 +695410,14 @@ "APIGuild": { "type": "object", "properties": { - "name": { - "type": "string" - }, "reload": { "description": "Reloads entity data from the database.", "type": "object", "additionalProperties": false }, + "name": { + "type": "string" + }, "id": { "type": "string" }, @@ -629025,9 +696010,7 @@ "channel": { "$ref": "#/definitions/RateLimitOptions" }, - "auth": { - "$ref": "#/definitions/AuthRateLimit" - } + "auth": {} }, "additionalProperties": false, "required": [ @@ -629037,22 +696020,6 @@ "webhook" ] }, - "AuthRateLimit": { - "type": "object", - "properties": { - "login": { - "$ref": "#/definitions/RateLimitOptions" - }, - "register": { - "$ref": "#/definitions/RateLimitOptions" - } - }, - "additionalProperties": false, - "required": [ - "login", - "register" - ] - }, "GlobalRateLimits": { "type": "object", "properties": { diff --git a/src/gateway/opcodes/Identify.ts b/src/gateway/opcodes/Identify.ts index c535cd45..94320eee 100644 --- a/src/gateway/opcodes/Identify.ts +++ b/src/gateway/opcodes/Identify.ts @@ -82,6 +82,7 @@ export async function onIdentify(this: WebSocket, data: Payload) { const identify: IdentifySchema = data.d; this.capabilities = new Capabilities(identify.capabilities || 0); + this.large_threshold = identify.large_threshold || 250; const user = await tryGetUserFromToken(identify.token, { relations: ["relationships", "relationships.to", "settings"], diff --git a/src/gateway/opcodes/RequestGuildMembers.ts b/src/gateway/opcodes/RequestGuildMembers.ts index c84bf893..3381caed 100644 --- a/src/gateway/opcodes/RequestGuildMembers.ts +++ b/src/gateway/opcodes/RequestGuildMembers.ts @@ -17,6 +17,7 @@ */ import { + getDatabase, getPermission, GuildMembersChunkEvent, Member, @@ -29,51 +30,103 @@ import { check } from "./instanceOf"; import { FindManyOptions, In, Like } from "typeorm"; export async function onRequestGuildMembers(this: WebSocket, { d }: Payload) { - // TODO: check data + // Schema validation can only accept either string or array, so transforming it here to support both + if (!d.guild_id) throw new Error('"guild_id" is required'); + d.guild_id = Array.isArray(d.guild_id) ? d.guild_id[0] : d.guild_id; + + if (d.user_ids && !Array.isArray(d.user_ids)) d.user_ids = [d.user_ids]; + check.call(this, RequestGuildMembersSchema, d); - const { guild_id, query, presences, nonce } = - d as RequestGuildMembersSchema; - let { limit, user_ids } = d as RequestGuildMembersSchema; + const { query, presences, nonce } = d as RequestGuildMembersSchema; + let { limit, user_ids, guild_id } = d as RequestGuildMembersSchema; + + guild_id = guild_id as string; + user_ids = user_ids as string[] | undefined; if ("query" in d && (!limit || Number.isNaN(limit))) throw new Error('"query" requires "limit" to be set'); if ("query" in d && user_ids) throw new Error('"query" and "user_ids" are mutually exclusive'); - if (user_ids && !Array.isArray(user_ids)) user_ids = [user_ids]; - user_ids = user_ids as string[] | undefined; // TODO: Configurable limit? if ((query || (user_ids && user_ids.length > 0)) && (!limit || limit > 100)) limit = 100; - const permissions = await getPermission( - this.user_id, - Array.isArray(guild_id) ? guild_id[0] : guild_id, - ); + const permissions = await getPermission(this.user_id, guild_id); permissions.hasThrow("VIEW_CHANNEL"); - const whereQuery: FindManyOptions["where"] = {}; - if (query) { - whereQuery.user = { - username: Like(query + "%"), - }; - } else if (user_ids && user_ids.length > 0) { - whereQuery.id = In(user_ids); - } + const memberCount = await Member.count({ + where: { + guild_id, + }, + }); const memberFind: FindManyOptions = { where: { - ...whereQuery, - guild_id: Array.isArray(guild_id) ? guild_id[0] : guild_id, + guild_id, }, relations: ["user", "roles"], }; if (limit) memberFind.take = Math.abs(Number(limit || 100)); - const members = await Member.find(memberFind); + + let members: Member[] = []; + + if (memberCount > 75000) { + // since we dont have voice channels yet, just return the connecting users member object + members = await Member.find({ + ...memberFind, + where: { + ...memberFind.where, + user: { + id: this.user_id, + }, + }, + }); + } else if (memberCount > this.large_threshold) { + // find all members who are online, have a role, have a nickname, or are in a voice channel, as well as respecting the query and user_ids + const db = getDatabase(); + if (!db) throw new Error("Database not initialized"); + const repo = db.getRepository(Member); + const q = repo + .createQueryBuilder("member") + .where("member.guild_id = :guild_id", { guild_id }) + .leftJoinAndSelect("member.roles", "role") + .leftJoinAndSelect("member.user", "user") + .leftJoinAndSelect("user.sessions", "session") + .andWhere( + "',' || member.roles || ',' NOT LIKE :everyoneRoleIdList", + { everyoneRoleIdList: "%," + guild_id + ",%" }, + ) + .andWhere("session.status != 'offline'") + .addOrderBy("user.username", "ASC") + .limit(memberFind.take); + + if (query && query != "") { + q.andWhere(`user.username ILIKE :query`, { + query: `${query}%`, + }); + } else if (user_ids) { + q.andWhere(`user.id IN (:...user_ids)`, { user_ids }); + } + + members = await q.getMany(); + } else { + if (query) { + // @ts-expect-error memberFind.where is very much defined + memberFind.where.user = { + username: Like(query + "%"), + }; + } else if (user_ids && user_ids.length > 0) { + // @ts-expect-error memberFind.where is still very much defined + memberFind.where.id = In(user_ids); + } + + members = await Member.find(memberFind); + } const baseData = { - guild_id: Array.isArray(guild_id) ? guild_id[0] : guild_id, + guild_id, nonce, }; @@ -114,7 +167,17 @@ export async function onRequestGuildMembers(this: WebSocket, { d }: Payload) { }); } - if (notFound.length > 0) chunks[0].not_found = notFound; + if (notFound.length > 0) { + if (chunks.length == 0) + chunks.push({ + ...baseData, + members: [], + presences: presences ? [] : undefined, + chunk_index: 0, + chunk_count: 1, + }); + chunks[0].not_found = notFound; + } chunks.forEach((chunk) => { Send(this, { diff --git a/src/gateway/util/WebSocket.ts b/src/gateway/util/WebSocket.ts index 833756ff..8cfc5e08 100644 --- a/src/gateway/util/WebSocket.ts +++ b/src/gateway/util/WebSocket.ts @@ -1,17 +1,17 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ @@ -43,4 +43,5 @@ export interface WebSocket extends WS { listen_options: ListenEventOpts; capabilities?: Capabilities; // client?: Client; + large_threshold: number; } diff --git a/src/util/schemas/RequestGuildMembersSchema.ts b/src/util/schemas/RequestGuildMembersSchema.ts index 6909ba85..9e60d26e 100644 --- a/src/util/schemas/RequestGuildMembersSchema.ts +++ b/src/util/schemas/RequestGuildMembersSchema.ts @@ -26,7 +26,7 @@ export interface RequestGuildMembersSchema { } export const RequestGuildMembersSchema = { - guild_id: [] as string | string[], + guild_id: "" as string | string[], $query: String, $limit: Number, $presences: Boolean, From db38e3e3ed7d3fa33b4092fa78de559d74a6299e Mon Sep 17 00:00:00 2001 From: TomatoCake <60300461+DEVTomatoCake@users.noreply.github.com> Date: Sun, 18 Aug 2024 09:31:54 +0200 Subject: [PATCH 08/16] Send "pinned" as "true" in pins update event --- src/api/routes/channels/#channel_id/pins.ts | 23 +++++++++------------ 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/src/api/routes/channels/#channel_id/pins.ts b/src/api/routes/channels/#channel_id/pins.ts index 724ebffd..1e1da018 100644 --- a/src/api/routes/channels/#channel_id/pins.ts +++ b/src/api/routes/channels/#channel_id/pins.ts @@ -1,24 +1,23 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ import { route } from "@spacebar/api"; import { - Channel, ChannelPinsUpdateEvent, Config, DiscordApiErrors, @@ -60,8 +59,10 @@ router.put( if (pinned_count >= maxPins) throw DiscordApiErrors.MAXIMUM_PINS.withParams(maxPins); + message.pinned = true; + await Promise.all([ - Message.update({ id: message_id }, { pinned: true }), + message.save(), emitEvent({ event: "MESSAGE_UPDATE", channel_id, @@ -98,31 +99,27 @@ router.delete( async (req: Request, res: Response) => { const { channel_id, message_id } = req.params; - const channel = await Channel.findOneOrFail({ - where: { id: channel_id }, - }); - if (channel.guild_id) req.permission?.hasThrow("MANAGE_MESSAGES"); - const message = await Message.findOneOrFail({ where: { id: message_id }, }); + + if (message.guild_id) req.permission?.hasThrow("MANAGE_MESSAGES"); + message.pinned = false; await Promise.all([ message.save(), - emitEvent({ event: "MESSAGE_UPDATE", channel_id, data: message, } as MessageUpdateEvent), - emitEvent({ event: "CHANNEL_PINS_UPDATE", channel_id, data: { channel_id, - guild_id: channel.guild_id, + guild_id: message.guild_id, last_pin_timestamp: undefined, }, } as ChannelPinsUpdateEvent), From 5679318be0d4bc96002864f21be1b966d578a567 Mon Sep 17 00:00:00 2001 From: Cyber Date: Sun, 18 Aug 2024 11:17:19 +0200 Subject: [PATCH 09/16] feat: message pinned message --- src/api/routes/channels/#channel_id/pins.ts | 33 ++++++++++++++++----- 1 file changed, 26 insertions(+), 7 deletions(-) diff --git a/src/api/routes/channels/#channel_id/pins.ts b/src/api/routes/channels/#channel_id/pins.ts index 1e1da018..9a806b5a 100644 --- a/src/api/routes/channels/#channel_id/pins.ts +++ b/src/api/routes/channels/#channel_id/pins.ts @@ -1,23 +1,24 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ import { route } from "@spacebar/api"; import { + Channel, ChannelPinsUpdateEvent, Config, DiscordApiErrors, @@ -77,6 +78,20 @@ router.put( last_pin_timestamp: undefined, }, } as ChannelPinsUpdateEvent), + + Message.create({ + type: 6, + embeds: [], + reactions: [], + channel_id: message.channel_id, + guild_id: message.guild_id, + author_id: req.user_id, + message_reference: { + message_id: message.id, + channel_id: message.channel_id, + guild_id: message.guild_id, + }, + }).save(), ]); res.sendStatus(204); @@ -99,27 +114,31 @@ router.delete( async (req: Request, res: Response) => { const { channel_id, message_id } = req.params; + const channel = await Channel.findOneOrFail({ + where: { id: channel_id }, + }); + if (channel.guild_id) req.permission?.hasThrow("MANAGE_MESSAGES"); + const message = await Message.findOneOrFail({ where: { id: message_id }, }); - - if (message.guild_id) req.permission?.hasThrow("MANAGE_MESSAGES"); - message.pinned = false; await Promise.all([ message.save(), + emitEvent({ event: "MESSAGE_UPDATE", channel_id, data: message, } as MessageUpdateEvent), + emitEvent({ event: "CHANNEL_PINS_UPDATE", channel_id, data: { channel_id, - guild_id: message.guild_id, + guild_id: channel.guild_id, last_pin_timestamp: undefined, }, } as ChannelPinsUpdateEvent), From 7853ad3acf8f79d904a808382aa4ccc6d5df78fd Mon Sep 17 00:00:00 2001 From: Cyber Date: Sun, 18 Aug 2024 11:31:15 +0200 Subject: [PATCH 10/16] fix: update the code with latest commit --- src/api/routes/channels/#channel_id/pins.ts | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/src/api/routes/channels/#channel_id/pins.ts b/src/api/routes/channels/#channel_id/pins.ts index 9a806b5a..7b2236e8 100644 --- a/src/api/routes/channels/#channel_id/pins.ts +++ b/src/api/routes/channels/#channel_id/pins.ts @@ -1,24 +1,23 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ import { route } from "@spacebar/api"; import { - Channel, ChannelPinsUpdateEvent, Config, DiscordApiErrors, @@ -114,31 +113,27 @@ router.delete( async (req: Request, res: Response) => { const { channel_id, message_id } = req.params; - const channel = await Channel.findOneOrFail({ - where: { id: channel_id }, - }); - if (channel.guild_id) req.permission?.hasThrow("MANAGE_MESSAGES"); - const message = await Message.findOneOrFail({ where: { id: message_id }, }); + + if (message.guild_id) req.permission?.hasThrow("MANAGE_MESSAGES"); + message.pinned = false; await Promise.all([ message.save(), - emitEvent({ event: "MESSAGE_UPDATE", channel_id, data: message, } as MessageUpdateEvent), - emitEvent({ event: "CHANNEL_PINS_UPDATE", channel_id, data: { channel_id, - guild_id: channel.guild_id, + guild_id: message.guild_id, last_pin_timestamp: undefined, }, } as ChannelPinsUpdateEvent), From 917f394cc562bbf5c23b8a14ee0c8d70783bc29d Mon Sep 17 00:00:00 2001 From: TomatoCake <60300461+DEVTomatoCake@users.noreply.github.com> Date: Sun, 18 Aug 2024 12:05:50 +0200 Subject: [PATCH 11/16] Consistent widget disabled error --- src/api/routes/guilds/#guild_id/widget.json.ts | 18 ++++++++++++------ src/api/routes/guilds/#guild_id/widget.png.ts | 10 +++++----- src/util/util/Constants.ts | 2 +- 3 files changed, 18 insertions(+), 12 deletions(-) diff --git a/src/api/routes/guilds/#guild_id/widget.json.ts b/src/api/routes/guilds/#guild_id/widget.json.ts index 39f49804..eb2dd102 100644 --- a/src/api/routes/guilds/#guild_id/widget.json.ts +++ b/src/api/routes/guilds/#guild_id/widget.json.ts @@ -1,25 +1,31 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ import { random, route } from "@spacebar/api"; -import { Channel, Guild, Invite, Member, Permissions } from "@spacebar/util"; +import { + Channel, + DiscordApiErrors, + Guild, + Invite, + Member, + Permissions, +} from "@spacebar/util"; import { Request, Response, Router } from "express"; -import { HTTPError } from "lambert-server"; const router: Router = Router(); @@ -48,7 +54,7 @@ router.get( const { guild_id } = req.params; const guild = await Guild.findOneOrFail({ where: { id: guild_id } }); - if (!guild.widget_enabled) throw new HTTPError("Widget Disabled", 404); + if (!guild.widget_enabled) throw DiscordApiErrors.EMBED_DISABLED; // Fetch existing widget invite for widget channel let invite = await Invite.findOne({ diff --git a/src/api/routes/guilds/#guild_id/widget.png.ts b/src/api/routes/guilds/#guild_id/widget.png.ts index c9ba8afc..f0f94ea0 100644 --- a/src/api/routes/guilds/#guild_id/widget.png.ts +++ b/src/api/routes/guilds/#guild_id/widget.png.ts @@ -1,17 +1,17 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ @@ -19,7 +19,7 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ import { route } from "@spacebar/api"; -import { Guild } from "@spacebar/util"; +import { DiscordApiErrors, Guild } from "@spacebar/util"; import { Request, Response, Router } from "express"; import fs from "fs"; import { HTTPError } from "lambert-server"; @@ -48,7 +48,7 @@ router.get( const { guild_id } = req.params; const guild = await Guild.findOneOrFail({ where: { id: guild_id } }); - if (!guild.widget_enabled) throw new HTTPError("Unknown Guild", 404); + if (!guild.widget_enabled) throw DiscordApiErrors.EMBED_DISABLED; // Fetch guild information const icon = guild.icon; diff --git a/src/util/util/Constants.ts b/src/util/util/Constants.ts index a6caae00..34e925e5 100644 --- a/src/util/util/Constants.ts +++ b/src/util/util/Constants.ts @@ -812,7 +812,7 @@ export const DiscordApiErrors = { "Cannot execute action on a DM channel", 50003, ), - EMBED_DISABLED: new ApiError("Guild widget disabled", 50004), + EMBED_DISABLED: new ApiError("Widget Disabled", 50004), CANNOT_EDIT_MESSAGE_BY_OTHER: new ApiError( "Cannot edit a message authored by another user", 50005, From a401f63318ededb7a20c88dc5a06a7dd73f27076 Mon Sep 17 00:00:00 2001 From: Cyber Date: Sun, 18 Aug 2024 12:08:04 +0200 Subject: [PATCH 12/16] fix: message timestamp --- src/api/routes/channels/#channel_id/pins.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/api/routes/channels/#channel_id/pins.ts b/src/api/routes/channels/#channel_id/pins.ts index 7b2236e8..b6bb66b9 100644 --- a/src/api/routes/channels/#channel_id/pins.ts +++ b/src/api/routes/channels/#channel_id/pins.ts @@ -79,6 +79,7 @@ router.put( } as ChannelPinsUpdateEvent), Message.create({ + timestamp: new Date(), type: 6, embeds: [], reactions: [], From c505db07236e9c786b8540d6ef80604ff3003f22 Mon Sep 17 00:00:00 2001 From: TomatoCake <60300461+DEVTomatoCake@users.noreply.github.com> Date: Sun, 18 Aug 2024 13:28:24 +0200 Subject: [PATCH 13/16] Fix widget.png guild icon loading --- src/api/routes/guilds/#guild_id/widget.png.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/api/routes/guilds/#guild_id/widget.png.ts b/src/api/routes/guilds/#guild_id/widget.png.ts index c9ba8afc..271728a4 100644 --- a/src/api/routes/guilds/#guild_id/widget.png.ts +++ b/src/api/routes/guilds/#guild_id/widget.png.ts @@ -1,17 +1,17 @@ /* Spacebar: A FOSS re-implementation and extension of the Discord.com backend. Copyright (C) 2023 Spacebar and Spacebar Contributors - + This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . */ @@ -24,6 +24,7 @@ import { Request, Response, Router } from "express"; import fs from "fs"; import { HTTPError } from "lambert-server"; import path from "path"; +import { storage } from "../../../../cdn/util/Storage"; const router: Router = Router(); @@ -51,7 +52,7 @@ router.get( if (!guild.widget_enabled) throw new HTTPError("Unknown Guild", 404); // Fetch guild information - const icon = guild.icon; + const icon = "avatars/" + guild_id + "/" + guild.icon; const name = guild.name; const presence = guild.presence_count + " ONLINE"; @@ -69,8 +70,7 @@ router.get( } // Setup canvas - const { createCanvas } = require("canvas"); - const { loadImage } = require("canvas"); + const { createCanvas, loadImage } = require("canvas"); const sizeOf = require("image-size"); // TODO: Widget style templates need Spacebar branding @@ -211,8 +211,8 @@ async function drawIcon( scale: number, icon: string, ) { - const img = new (require("canvas").Image)(); - img.src = icon; + const { loadImage } = require("canvas"); + const img = await loadImage(await storage.get(icon)); // Do some canvas clipping magic! canvas.save(); From 39e3b5ad7a8eb8f33d3d2278ba70c3747affd4ee Mon Sep 17 00:00:00 2001 From: Cyber Date: Sun, 18 Aug 2024 13:32:19 +0200 Subject: [PATCH 14/16] feat: emit `MESSAGE_CREATE` --- src/api/routes/channels/#channel_id/pins.ts | 45 ++++++++++++++------- 1 file changed, 31 insertions(+), 14 deletions(-) diff --git a/src/api/routes/channels/#channel_id/pins.ts b/src/api/routes/channels/#channel_id/pins.ts index b6bb66b9..d43db6ec 100644 --- a/src/api/routes/channels/#channel_id/pins.ts +++ b/src/api/routes/channels/#channel_id/pins.ts @@ -23,7 +23,9 @@ import { DiscordApiErrors, emitEvent, Message, + MessageCreateEvent, MessageUpdateEvent, + User, } from "@spacebar/util"; import { Request, Response, Router } from "express"; @@ -61,6 +63,30 @@ router.put( message.pinned = true; + const author = await User.getPublicUser(req.user_id); + + const systemPinMessage = Message.create({ + timestamp: new Date(), + type: 6, + guild_id: message.guild_id, + channel_id: message.channel_id, + author, + message_reference: { + message_id: message.id, + channel_id: message.channel_id, + guild_id: message.guild_id, + }, + reactions: [], + attachments: [], + embeds: [], + sticker_items: [], + edited_timestamp: undefined, + mentions: [], + mention_channels: [], + mention_roles: [], + mention_everyone: false, + }); + await Promise.all([ message.save(), emitEvent({ @@ -77,21 +103,12 @@ router.put( last_pin_timestamp: undefined, }, } as ChannelPinsUpdateEvent), - - Message.create({ - timestamp: new Date(), - type: 6, - embeds: [], - reactions: [], + systemPinMessage.save(), + emitEvent({ + event: "MESSAGE_CREATE", channel_id: message.channel_id, - guild_id: message.guild_id, - author_id: req.user_id, - message_reference: { - message_id: message.id, - channel_id: message.channel_id, - guild_id: message.guild_id, - }, - }).save(), + data: systemPinMessage, + } as MessageCreateEvent), ]); res.sendStatus(204); From c9a51cfd179270775f631a6139c87d271bab3a66 Mon Sep 17 00:00:00 2001 From: "Emma [it/its]@Rory&" Date: Sun, 18 Aug 2024 18:54:51 +0200 Subject: [PATCH 15/16] Fix .DS_Store ignore, add gitattributes for nix/scripts --- .gitattributes | 4 ++++ .gitignore | 4 ++-- src/webrtc/.DS_Store | Bin 6148 -> 0 bytes 3 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 .gitattributes delete mode 100644 src/webrtc/.DS_Store diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..5859d46d --- /dev/null +++ b/.gitattributes @@ -0,0 +1,4 @@ +* text=auto +*.sh -crlf +*.nix -crlf +.husky/pre-commit -crlf \ No newline at end of file diff --git a/.gitignore b/.gitignore index e62c03d6..0fcd6d2d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -.DS_STORE +**/.DS_STORE db/ dist/ node_modules @@ -19,4 +19,4 @@ build *.tmp tmp/ dump/ -result +result \ No newline at end of file diff --git a/src/webrtc/.DS_Store b/src/webrtc/.DS_Store deleted file mode 100644 index bfb0a4165ee92c5850a98ab16b2c02a383ec7a7e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHKJ5Iwu5S<||EYYN-px6^2asv~Y6XXKOiGU)JBM`kiI1IPo2AqgDAHb1CN(y)* z%|7qUyj}Sf9*>CV@@caWnTtpbHeE23 zRDcRlfiDH@`%vJ9P2v#fpAIZO0s!qd-VM(_O8|=nfKB2MhzLxB3Jj{|h@nA8ykuRI zI0Ob=)NjT)d9&t(qJBH##mhyTK(17P3LGjhi|yR{|26!F`Tvl_9TlJge@X$Z+Eu&6 zD`jt;yqxvg0>6QO8fv{9i??E+w_ZG%D~L3VZ+r CM Date: Sun, 18 Aug 2024 18:57:19 +0200 Subject: [PATCH 16/16] Update nix inputs --- flake.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flake.lock b/flake.lock index 29505fc3..42952374 100644 --- a/flake.lock +++ b/flake.lock @@ -20,11 +20,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1723362943, - "narHash": "sha256-dFZRVSgmJkyM0bkPpaYRtG/kRMRTorUIDj8BxoOt1T4=", + "lastModified": 1723637854, + "narHash": "sha256-med8+5DSWa2UnOqtdICndjDAEjxr5D7zaIiK4pn0Q7c=", "owner": "nixos", "repo": "nixpkgs", - "rev": "a58bc8ad779655e790115244571758e8de055e3d", + "rev": "c3aa7b8938b17aebd2deecf7be0636000d62a2b9", "type": "github" }, "original": {