diff --git a/assets/email_templates/new_login_location.html b/assets/email_templates/new_login_location.html index f1c5f8c5d..b8c4a4fb9 100644 --- a/assets/email_templates/new_login_location.html +++ b/assets/email_templates/new_login_location.html @@ -1,76 +1,87 @@ - + + + + + + + Verify {instanceName} Login from New Location - - - - - - Verify {instanceName} Login from New Location + + - .ExternalClass { - width: 100%; - } - - - - -
- Branding + Branding -
+
-

+

- Hey {userUsername}, -

-

- It looks like someone tried to log into your {instanceName} - account from a new location. If this is you, follow the link - below to authorize logging in from this location on your - account. If this isn't you, we suggest changing your - password as soon as possible. -

-

- IP Address: {ipAddress} -
- Location: {locationCity}, {locationRegion}, - {locationCountryName} -

-
-
+ Hey {userUsername}, +

+

+ It looks like someone tried to log into your {instanceName} + account from a new location. If this is you, follow the link + below to authorize logging in from this location on your + account. If this isn't you, we suggest changing your + password as soon as possible. +

+

+ IP Address: {ipAddress} +
+ Location: {locationCity}, {locationRegion}, + {locationCountryName} +

+
+ -
-
Verify Login +
+
+
-

- Alternatively, you can directly paste this link into - your browser: -

- {actionUrl} + " + > +

+ Alternatively, you can directly paste this link into + your browser: +

+ {actionUrl} +
-
- - + diff --git a/assets/email_templates/password_changed.html b/assets/email_templates/password_changed.html index d04262792..7d368a0a7 100644 --- a/assets/email_templates/password_changed.html +++ b/assets/email_templates/password_changed.html @@ -1,4 +1,4 @@ - + @@ -22,7 +22,7 @@ -
+
Branding + + + + + + + Password Reset Request for {instanceName} - - - - - - Password Reset Request for {instanceName} + + - .ExternalClass { - width: 100%; - } - - - - -
- Branding + Branding -
+
-

+

- Hey {userUsername}, -

-

- Your {instanceName} password can be reset by clicking the - button below. If you did not request a new password, please - ignore this email. -

-
-
+ Hey {userUsername}, +

+

+ Your {instanceName} password can be reset by clicking the + button below. If you did not request a new password, please + ignore this email. +

+
+ -
-
-

- Alternatively, you can directly paste this link into - your browser: -

- {actionUrl} + " + >Reset Password +
+
+
+

+ Alternatively, you can directly paste this link into + your browser: +

+ {actionUrl} +
-
- - + diff --git a/assets/email_templates/phone_removed.html b/assets/email_templates/phone_removed.html index 7cc552e95..bcbc8f187 100644 --- a/assets/email_templates/phone_removed.html +++ b/assets/email_templates/phone_removed.html @@ -1,4 +1,4 @@ - + @@ -22,7 +22,7 @@ -
+
Branding + @@ -22,7 +22,7 @@ -
+
diff --git a/assets/openapi.json b/assets/openapi.json index f649c9b22..2788cdb08 100644 --- a/assets/openapi.json +++ b/assets/openapi.json @@ -734,6 +734,114 @@ } } }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/components/schemas/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageComponent" + } + } + }, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "required": [ + "name" + ] + }, + "PollCreationSchema": { + "type": "object", + "properties": { + "question": { + "$ref": "#/components/schemas/PollMedia" + }, + "answers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PollAnswer" + } + }, + "duration": { + "type": "integer" + }, + "allow_multiselect": { + "type": "boolean" + }, + "layout_type": { + "type": "integer" + } + }, + "required": [ + "answers", + "question" + ] + }, + "PollMedia": { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "emoji": { + "$ref": "#/components/schemas/PartialEmoji" + } + } + }, + "PollAnswer": { + "type": "object", + "properties": { + "answer_id": { + "type": "string" + }, + "poll_media": { + "$ref": "#/components/schemas/PollMedia" + } + }, + "required": [ + "poll_media" + ] + }, "ChannelOverride": { "type": "object", "properties": { @@ -1193,7 +1301,8 @@ "$ref": "#/components/schemas/Guild" }, "parent_id": { - "type": "string" + "type": "string", + "nullable": true }, "parent": { "$ref": "#/components/schemas/Channel" @@ -1802,6 +1911,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/components/schemas/FriendSourceFlags" }, @@ -1892,6 +2005,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "required": [ @@ -1908,6 +2025,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -1926,7 +2044,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -2240,6 +2359,9 @@ "$ref": "#/components/schemas/MessageComponent" } }, + "poll": { + "$ref": "#/components/schemas/Poll" + }, "id": { "type": "string" } @@ -2963,23 +3085,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -3018,40 +3123,71 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/components/schemas/PollMedia" }, - "emoji": { - "$ref": "#/components/schemas/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/components/schemas/PollResult" + } + }, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/components/schemas/MessageComponent" + "$ref": "#/components/schemas/PollAnswerCount" } } }, "required": [ - "components", - "type" + "answer_counts", + "is_finalized" + ] + }, + "PollAnswerCount": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "count": { + "type": "integer" + }, + "me_voted": { + "type": "boolean" + } + }, + "required": [ + "count", + "id", + "me_voted" ] }, "VoiceState": { @@ -3444,7 +3580,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/components/schemas/MessageComponent" + } + }, + "poll": { + "$ref": "#/components/schemas/Poll" }, "hit": { "type": "boolean", @@ -3466,6 +3607,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -5212,7 +5354,27 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/components/schemas/MessageComponent" + } + }, + "poll": { + "$ref": "#/components/schemas/PollCreationSchema" + }, + "enforce_nonce": { + "type": "boolean" + }, + "applied_tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "thread_name": { + "type": "string" + }, + "avatar_url": { + "type": "string" } } }, @@ -5338,7 +5500,27 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/components/schemas/MessageComponent" + } + }, + "poll": { + "$ref": "#/components/schemas/PollCreationSchema" + }, + "enforce_nonce": { + "type": "boolean" + }, + "applied_tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "thread_name": { + "type": "string" + }, + "avatar_url": { + "type": "string" } } }, @@ -5919,6 +6101,9 @@ "explicit_content_filter": { "type": "integer" }, + "friend_discovery_flags": { + "type": "integer" + }, "friend_source_flags": { "$ref": "#/components/schemas/FriendSourceFlags" }, @@ -5982,6 +6167,9 @@ }, "timezone_offset": { "type": "integer" + }, + "view_nsfw_guilds": { + "type": "boolean" } } }, @@ -7660,6 +7848,9 @@ "$ref": "#/components/schemas/StickerPack" } }, + "APIConnectionsConfiguration": { + "type": "object" + }, "UpdatesResponse": { "type": "object", "properties": { @@ -7917,6 +8108,23 @@ "user" ] }, + "BulkBanSchema": { + "type": "object", + "properties": { + "user_ids": { + "type": "array", + "items": { + "type": "string" + } + }, + "delete_message_seconds": { + "type": "integer" + } + }, + "required": [ + "user_ids" + ] + }, "BulkDeleteSchema": { "type": "object", "properties": { @@ -13729,12 +13937,25 @@ }, "/guilds/{guild_id}/bulk-ban/": { "post": { - "x-permission-required": "BAN_MEMBERS", + "x-permission-required": [ + "BAN_MEMBERS", + "MANAGE_GUILD" + ], "security": [ { "bearer": [] } ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BulkBanSchema" + } + } + } + }, "responses": { "200": { "description": "", @@ -14322,6 +14543,30 @@ ] } }, + "/connections/": { + "get": { + "security": [ + { + "bearer": [] + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIConnectionsConfiguration" + } + } + } + } + }, + "tags": [ + "connections" + ] + } + }, "/connections/{connection_name}/callback/": { "post": { "security": [ diff --git a/assets/public/0c8138dcc0dfe2689cdd73f7952c2475.png b/assets/public/0c8138dcc0dfe2689cdd73f7952c2475.png deleted file mode 100644 index 3e8eeae96..000000000 Binary files a/assets/public/0c8138dcc0dfe2689cdd73f7952c2475.png and /dev/null differ diff --git a/assets/public/22341bdb500c7b63a93bbce957d1601e.png b/assets/public/22341bdb500c7b63a93bbce957d1601e.png new file mode 100644 index 000000000..c8bf93d01 Binary files /dev/null and b/assets/public/22341bdb500c7b63a93bbce957d1601e.png differ diff --git a/assets/public/4a8562cf00887030c416d3ec2d46385a.png b/assets/public/4a8562cf00887030c416d3ec2d46385a.png new file mode 100644 index 000000000..73426bcde Binary files /dev/null and b/assets/public/4a8562cf00887030c416d3ec2d46385a.png differ diff --git a/assets/public/5ac2728593bb455250d11b848a0c36c6.png b/assets/public/5ac2728593bb455250d11b848a0c36c6.png deleted file mode 100644 index 9f137906b..000000000 Binary files a/assets/public/5ac2728593bb455250d11b848a0c36c6.png and /dev/null differ diff --git a/assets/public/7213ab6677377974697dfdfbaf5f6a6f.png b/assets/public/7213ab6677377974697dfdfbaf5f6a6f.png new file mode 100644 index 000000000..f1fa9f0bc Binary files /dev/null and b/assets/public/7213ab6677377974697dfdfbaf5f6a6f.png differ diff --git a/assets/public/823a3de61c4dc2415cc4dbc38fca4299.png b/assets/public/823a3de61c4dc2415cc4dbc38fca4299.png deleted file mode 100644 index 9b92bd2f3..000000000 Binary files a/assets/public/823a3de61c4dc2415cc4dbc38fca4299.png and /dev/null differ diff --git a/assets/public/9b0bb198936784c45c72833cc426cc55.png b/assets/public/9b0bb198936784c45c72833cc426cc55.png new file mode 100644 index 000000000..367051ceb Binary files /dev/null and b/assets/public/9b0bb198936784c45c72833cc426cc55.png differ diff --git a/assets/public/9d6ddb4e4d899a533a8cc617011351c9.png b/assets/public/9d6ddb4e4d899a533a8cc617011351c9.png new file mode 100644 index 000000000..740cdd253 Binary files /dev/null and b/assets/public/9d6ddb4e4d899a533a8cc617011351c9.png differ diff --git a/assets/public/addd2f3268df46459e1d6012ad8e75bd.png b/assets/public/addd2f3268df46459e1d6012ad8e75bd.png deleted file mode 100644 index 62c599a7a..000000000 Binary files a/assets/public/addd2f3268df46459e1d6012ad8e75bd.png and /dev/null differ diff --git a/assets/public/c4e0c8300fa491d94acfd2a1fb26cea8.png b/assets/public/c4e0c8300fa491d94acfd2a1fb26cea8.png deleted file mode 100644 index bd7afef2a..000000000 Binary files a/assets/public/c4e0c8300fa491d94acfd2a1fb26cea8.png and /dev/null differ diff --git a/assets/public/d9977836b82058bf2f74eebd50edc095.png b/assets/public/d9977836b82058bf2f74eebd50edc095.png new file mode 100644 index 000000000..bb73cd99d Binary files /dev/null and b/assets/public/d9977836b82058bf2f74eebd50edc095.png differ diff --git a/assets/public/e56a89224be0b2b1f7c04eca975be468.png b/assets/public/e56a89224be0b2b1f7c04eca975be468.png deleted file mode 100644 index 67ee7bbd3..000000000 Binary files a/assets/public/e56a89224be0b2b1f7c04eca975be468.png and /dev/null differ diff --git a/assets/public/verify.html b/assets/public/verify.html new file mode 100644 index 000000000..c70d77094 --- /dev/null +++ b/assets/public/verify.html @@ -0,0 +1,147 @@ + + + + + + + Spacebar Server + + + + + + + + + +
+ Spacebar Logo + +
+

Verifying your email

+

Please wait...

+
+
+ + + + diff --git a/assets/schemas.json b/assets/schemas.json index 7a57dfcf5..00f86b360 100644 --- a/assets/schemas.json +++ b/assets/schemas.json @@ -849,6 +849,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -1322,7 +1435,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -1655,6 +1771,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -1937,6 +2059,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -2027,6 +2153,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -2044,6 +2174,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -2062,7 +2193,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -2379,6 +2511,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -3116,24 +3251,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -3172,41 +3289,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -3607,7 +3757,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -3630,6 +3785,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -3680,6 +3836,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -4145,6 +4307,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -4482,6 +4657,29 @@ "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": { @@ -5069,6 +5267,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -5542,7 +5853,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -5875,6 +6189,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -6157,6 +6477,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -6247,6 +6571,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -6264,6 +6592,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -6282,7 +6611,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -6599,6 +6929,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -7336,24 +7669,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -7392,41 +7707,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -7827,7 +8175,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -7850,6 +8203,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -7900,6 +8254,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -8365,6 +8725,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -8702,6 +9075,29 @@ "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": { @@ -9289,6 +9685,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -9762,7 +10271,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -10095,6 +10607,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -10377,6 +10895,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -10467,6 +10989,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -10484,6 +11010,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -10502,7 +11029,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -10819,6 +11347,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -11556,24 +12087,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -11612,41 +12125,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -12047,7 +12593,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -12070,6 +12621,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -12120,6 +12672,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -12585,6 +13143,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -12922,6 +13493,29 @@ "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": { @@ -13504,6 +14098,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -13977,7 +14684,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -14310,6 +15020,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -14592,6 +15308,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -14682,6 +15402,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -14699,6 +15423,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -14717,7 +15442,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -15034,6 +15760,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -15771,24 +16500,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -15827,41 +16538,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -16262,7 +17006,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -16285,6 +17034,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -16335,6 +17085,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -16800,6 +17556,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -17137,6 +17906,29 @@ "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": { @@ -17755,6 +18547,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -18228,7 +19133,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -18561,6 +19469,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -18843,6 +19757,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -18933,6 +19851,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -18950,6 +19872,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -18968,7 +19891,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -19285,6 +20209,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -20022,24 +20949,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -20078,41 +20987,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -20513,7 +21455,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -20536,6 +21483,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -20586,6 +21534,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -21051,6 +22005,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -21388,6 +22355,29 @@ "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": { @@ -21975,6 +22965,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -22448,7 +23551,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -22781,6 +23887,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -23063,6 +24175,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -23153,6 +24269,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -23170,6 +24290,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -23188,7 +24309,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -23505,6 +24627,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -24242,24 +25367,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -24298,41 +25405,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -24733,7 +25873,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -24756,6 +25901,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -24806,6 +25952,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -25271,6 +26423,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -25608,6 +26773,29 @@ "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": { @@ -26186,6 +27374,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -26659,7 +27960,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -26992,6 +28296,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -27274,6 +28584,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -27364,6 +28678,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -27381,6 +28699,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -27399,7 +28718,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -27716,6 +29036,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -28453,24 +29776,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -28509,41 +29814,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -28944,7 +30282,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -28967,6 +30310,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -29017,6 +30361,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -29482,6 +30832,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -29819,6 +31182,29 @@ "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": { @@ -30400,6 +31786,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -30873,7 +32372,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -31206,6 +32708,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -31488,6 +32996,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -31578,6 +33090,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -31595,6 +33111,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -31613,7 +33130,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -31930,6 +33448,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -32667,24 +34188,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -32723,41 +34226,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -33158,7 +34694,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -33181,6 +34722,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -33231,6 +34773,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -33696,6 +35244,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -34033,6 +35594,29 @@ "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": { @@ -34623,6 +36207,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -35096,7 +36793,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -35429,6 +37129,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -35711,6 +37417,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -35801,6 +37511,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -35818,6 +37532,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -35836,7 +37551,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -36153,6 +37869,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -36890,24 +38609,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -36946,41 +38647,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -37381,7 +39115,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -37404,6 +39143,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -37454,6 +39194,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -37919,6 +39665,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -38256,6 +40015,29 @@ "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": { @@ -38834,6 +40616,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -39307,7 +41202,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -39640,6 +41538,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -39922,6 +41826,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -40012,6 +41920,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -40029,6 +41941,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -40047,7 +41960,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -40364,6 +42278,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -41101,24 +43018,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -41157,41 +43056,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -41592,7 +43524,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -41615,6 +43552,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -41665,6 +43603,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -42130,6 +44074,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -42467,6 +44424,29 @@ "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": { @@ -43045,6 +45025,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -43518,7 +45611,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -43851,6 +45947,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -44133,6 +46235,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -44223,6 +46329,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -44240,6 +46350,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -44258,7 +46369,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -44575,6 +46687,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -45312,24 +47427,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -45368,41 +47465,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -45803,7 +47933,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -45826,6 +47961,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -45876,6 +48012,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -46341,6 +48483,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -46678,6 +48833,29 @@ "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": { @@ -47275,6 +49453,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -47748,7 +50039,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -48081,6 +50375,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -48363,6 +50663,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -48453,6 +50757,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -48470,6 +50778,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -48488,7 +50797,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -48805,6 +51115,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -49542,24 +51855,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -49598,41 +51893,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -50033,7 +52361,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -50056,6 +52389,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -50106,6 +52440,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -50571,6 +52911,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -50908,6 +53261,29 @@ "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": { @@ -51489,6 +53865,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -51962,7 +54451,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -52295,6 +54787,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -52577,6 +55075,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -52667,6 +55169,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -52684,6 +55190,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -52702,7 +55209,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -53019,6 +55527,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -53756,24 +56267,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -53812,41 +56305,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -54247,7 +56773,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -54270,6 +56801,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -54320,6 +56852,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -54785,6 +57323,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -55122,6 +57673,29 @@ "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": { @@ -55763,6 +58337,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -56236,7 +58923,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -56569,6 +59259,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -56851,6 +59547,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -56941,6 +59641,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -56958,6 +59662,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -56976,7 +59681,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -57293,6 +59999,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -58030,24 +60739,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -58086,41 +60777,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -58521,7 +61245,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -58544,6 +61273,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -58594,6 +61324,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -59059,6 +61795,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -59396,6 +62145,29 @@ "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": { @@ -59996,6 +62768,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -60469,7 +63354,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -60802,6 +63690,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -61084,6 +63978,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -61174,6 +64072,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -61191,6 +64093,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -61209,7 +64112,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -61526,6 +64430,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -62263,24 +65170,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -62319,41 +65208,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -62754,7 +65676,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -62777,6 +65704,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -62827,6 +65755,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -63292,6 +66226,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -63629,6 +66576,29 @@ "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": { @@ -64370,6 +67340,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -64843,7 +67926,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -65176,6 +68262,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -65458,6 +68550,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -65548,6 +68644,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -65565,6 +68665,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -65583,7 +68684,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -65900,6 +69002,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -66637,24 +69742,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -66693,41 +69780,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -67128,7 +70248,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -67151,6 +70276,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -67201,6 +70327,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -67666,6 +70798,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -68003,6 +71148,29 @@ "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": { @@ -68602,6 +71770,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -69075,7 +72356,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -69408,6 +72692,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -69690,6 +72980,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -69780,6 +73074,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -69797,6 +73095,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -69815,7 +73114,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -70132,6 +73432,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -70869,24 +74172,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -70925,41 +74210,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -71360,7 +74678,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -71383,6 +74706,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -71433,6 +74757,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -71898,6 +75228,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -72235,6 +75578,29 @@ "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": { @@ -72844,6 +76210,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -73317,7 +76796,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -73650,6 +77132,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -73932,6 +77420,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -74022,6 +77514,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -74039,6 +77535,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -74057,7 +77554,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -74374,6 +77872,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -75111,24 +78612,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -75167,41 +78650,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -75602,7 +79118,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -75625,6 +79146,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -75675,6 +79197,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -76140,6 +79668,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -76477,6 +80018,29 @@ "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": { @@ -77068,6 +80632,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -77541,7 +81218,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -77874,6 +81554,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -78156,6 +81842,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -78246,6 +81936,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -78263,6 +81957,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -78281,7 +81976,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -78598,6 +82294,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -79335,24 +83034,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -79391,41 +83072,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -79826,7 +83540,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -79849,6 +83568,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -79899,6 +83619,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -80364,6 +84090,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -80701,6 +84440,29 @@ "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": { @@ -81298,6 +85060,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -81771,7 +85646,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -82104,6 +85982,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -82386,6 +86270,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -82476,6 +86364,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -82493,6 +86385,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -82511,7 +86404,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -82828,6 +86722,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -83565,24 +87462,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -83621,41 +87500,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -84056,7 +87968,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -84079,6 +87996,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -84129,6 +88047,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -84594,6 +88518,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -84931,6 +88868,29 @@ "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": { @@ -85518,6 +89478,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -85991,7 +90064,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -86324,6 +90400,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -86606,6 +90688,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -86696,6 +90782,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -86713,6 +90803,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -86731,7 +90822,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -87048,6 +91140,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -87785,24 +91880,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -87841,41 +91918,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -88276,7 +92386,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -88299,6 +92414,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -88349,6 +92465,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -88814,6 +92936,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -89151,6 +93286,29 @@ "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": { @@ -89726,6 +93884,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -90199,7 +94470,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -90532,6 +94806,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -90814,6 +95094,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -90904,6 +95188,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -90921,6 +95209,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -90939,7 +95228,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -91256,6 +95546,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -91993,24 +96286,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -92049,41 +96324,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -92484,7 +96792,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -92507,6 +96820,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -92557,6 +96871,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -93022,6 +97342,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -93359,6 +97692,29 @@ "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": { @@ -93520,7 +97876,6 @@ }, "additionalProperties": false, "required": [ - "channel_id", "message_id" ] }, @@ -93567,7 +97922,27 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/PollCreationSchema" + }, + "enforce_nonce": { + "type": "boolean" + }, + "applied_tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "thread_name": { + "type": "string" + }, + "avatar_url": { + "type": "string" } }, "additionalProperties": false, @@ -94052,6 +98427,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -94525,7 +99013,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -94858,6 +99349,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -95140,6 +99637,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -95230,6 +99731,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -95247,6 +99752,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -95265,7 +99771,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -95582,6 +100089,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -96319,24 +100829,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -96375,41 +100867,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -96810,7 +101335,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -96833,6 +101363,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -96883,6 +101414,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -97348,6 +101885,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -97685,6 +102235,29 @@ "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": { @@ -97768,132 +102341,8 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "MessageEditSchema": { - "type": "object", - "properties": { - "file": { - "type": "object", - "properties": { - "filename": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "filename" - ] - }, - "embed": { - "$ref": "#/definitions/Embed" - }, - "flags": { - "type": "integer" - }, - "content": { - "type": "string" - }, - "mobile_network_type": { - "type": "string" - }, - "nonce": { - "type": "string" - }, - "channel_id": { - "type": "string" - }, - "tts": { - "type": "boolean" - }, - "embeds": { - "type": "array", - "items": { - "$ref": "#/definitions/Embed" - } - }, - "allowed_mentions": { - "type": "object", - "properties": { - "parse": { - "type": "array", - "items": { - "type": "string" - } - }, - "roles": { - "type": "array", - "items": { - "type": "string" - } - }, - "users": { - "type": "array", - "items": { - "type": "string" - } - }, - "replied_user": { - "type": "boolean" - } - }, - "additionalProperties": false - }, - "message_reference": { - "type": "object", - "properties": { - "message_id": { - "type": "string" - }, - "channel_id": { - "type": "string" - }, - "guild_id": { - "type": "string" - }, - "fail_if_not_exists": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "channel_id", - "message_id" - ] - }, - "payload_json": { - "type": "string" - }, - "attachments": { - "description": "TODO: we should create an interface for attachments\nTODO: OpenWAAO<-->attachment-style metadata conversion", - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "filename": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "filename", - "id" - ] - } - }, - "sticker_ids": { - "type": "array", - "items": { - "type": "string" - } - }, - "components": { - "type": "array", - "items": {} - } - }, - "additionalProperties": false, + "PollCreationSchema": { + "$ref": "#/definitions/PollCreationSchema", "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -98375,6 +102824,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -98848,7 +103410,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -99181,6 +103746,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -99463,6 +104034,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -99553,6 +104128,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -99570,6 +104149,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -99588,7 +104168,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -99905,6 +104486,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -100642,24 +105226,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -100698,41 +105264,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -101133,7 +105732,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -101156,6 +105760,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -101206,6 +105811,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -101671,6 +106282,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -102008,6 +106632,29 @@ "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": { @@ -102091,20 +106738,151 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "MfaCodesSchema": { + "MessageEditSchema": { "type": "object", "properties": { - "password": { + "file": { + "type": "object", + "properties": { + "filename": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "filename" + ] + }, + "embed": { + "$ref": "#/definitions/Embed" + }, + "flags": { + "type": "integer" + }, + "content": { "type": "string" }, - "regenerate": { + "mobile_network_type": { + "type": "string" + }, + "nonce": { + "type": "string" + }, + "channel_id": { + "type": "string" + }, + "tts": { "type": "boolean" + }, + "embeds": { + "type": "array", + "items": { + "$ref": "#/definitions/Embed" + } + }, + "allowed_mentions": { + "type": "object", + "properties": { + "parse": { + "type": "array", + "items": { + "type": "string" + } + }, + "roles": { + "type": "array", + "items": { + "type": "string" + } + }, + "users": { + "type": "array", + "items": { + "type": "string" + } + }, + "replied_user": { + "type": "boolean" + } + }, + "additionalProperties": false + }, + "message_reference": { + "type": "object", + "properties": { + "message_id": { + "type": "string" + }, + "channel_id": { + "type": "string" + }, + "guild_id": { + "type": "string" + }, + "fail_if_not_exists": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "message_id" + ] + }, + "payload_json": { + "type": "string" + }, + "attachments": { + "description": "TODO: we should create an interface for attachments\nTODO: OpenWAAO<-->attachment-style metadata conversion", + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "filename": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "filename", + "id" + ] + } + }, + "sticker_ids": { + "type": "array", + "items": { + "type": "string" + } + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/PollCreationSchema" + }, + "enforce_nonce": { + "type": "boolean" + }, + "applied_tags": { + "type": "array", + "items": { + "type": "string" + } + }, + "thread_name": { + "type": "string" + }, + "avatar_url": { + "type": "string" } }, "additionalProperties": false, - "required": [ - "password" - ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -102586,6 +107364,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -103059,7 +107950,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -103392,6 +108286,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -103674,6 +108574,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -103764,6 +108668,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -103781,6 +108689,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -103799,7 +108708,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -104116,6 +109026,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -104853,24 +109766,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -104909,41 +109804,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -105344,7 +110272,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -105367,6 +110300,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -105417,6 +110351,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -105882,6 +110822,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -106219,6 +111172,29 @@ "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": { @@ -106302,27 +111278,19 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "ModifyGuildStickerSchema": { + "MfaCodesSchema": { "type": "object", "properties": { - "name": { - "minLength": 2, - "maxLength": 30, - "type": "string" - }, - "description": { - "maxLength": 100, + "password": { "type": "string" }, - "tags": { - "maxLength": 200, - "type": "string" + "regenerate": { + "type": "boolean" } }, "additionalProperties": false, "required": [ - "name", - "tags" + "password" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -106805,6 +111773,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -107278,7 +112359,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -107611,6 +112695,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -107893,6 +112983,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -107983,6 +113077,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -108000,6 +113098,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -108018,7 +113117,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -108335,6 +113435,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -109072,24 +114175,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -109128,41 +114213,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -109563,7 +114681,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -109586,6 +114709,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -109636,6 +114760,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -110101,6 +115231,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -110438,6 +115581,29 @@ "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": { @@ -110521,20 +115687,27 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "PasswordResetSchema": { + "ModifyGuildStickerSchema": { "type": "object", "properties": { - "password": { + "name": { + "minLength": 2, + "maxLength": 30, "type": "string" }, - "token": { + "description": { + "maxLength": 100, + "type": "string" + }, + "tags": { + "maxLength": 200, "type": "string" } }, "additionalProperties": false, "required": [ - "password", - "token" + "name", + "tags" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -111017,6 +116190,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -111490,7 +116776,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -111823,6 +117112,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -112105,6 +117400,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -112195,6 +117494,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -112212,6 +117515,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -112230,7 +117534,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -112547,6 +117852,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -113284,24 +118592,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -113340,41 +118630,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -113775,7 +119098,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -113798,6 +119126,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -113848,6 +119177,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -114313,6 +119648,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -114650,6 +119998,29 @@ "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": { @@ -114733,20 +120104,20 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "PurgeSchema": { + "PasswordResetSchema": { "type": "object", "properties": { - "before": { + "password": { "type": "string" }, - "after": { + "token": { "type": "string" } }, "additionalProperties": false, "required": [ - "after", - "before" + "password", + "token" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -115229,6 +120600,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -115702,7 +121186,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -116035,6 +121522,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -116317,6 +121810,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -116407,6 +121904,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -116424,6 +121925,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -116442,7 +121944,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -116759,6 +122262,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -117496,24 +123002,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -117552,41 +123040,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -117987,7 +123508,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -118010,6 +123536,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -118060,6 +123587,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -118525,6 +124058,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -118862,6 +124408,29 @@ "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": { @@ -118945,55 +124514,20 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "RegisterSchema": { + "PurgeSchema": { "type": "object", "properties": { - "username": { - "minLength": 2, - "maxLength": 32, - "type": "string" - }, - "password": { - "minLength": 1, - "maxLength": 72, - "type": "string" - }, - "consent": { - "type": "boolean" - }, - "email": { - "format": "email", - "type": "string" - }, - "fingerprint": { - "type": "string" - }, - "invite": { - "type": "string" - }, - "date_of_birth": { - "type": "string" - }, - "gift_code_sku_id": { - "type": "string" - }, - "captcha_key": { + "before": { "type": "string" }, - "promotional_email_opt_in": { - "type": "boolean" - }, - "unique_username_registration": { - "type": "boolean" - }, - "global_name": { + "after": { "type": "string" } }, "additionalProperties": false, "required": [ - "consent", - "username" + "after", + "before" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -119476,6 +125010,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -119949,7 +125596,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -120282,6 +125932,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -120564,6 +126220,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -120654,6 +126314,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -120671,6 +126335,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -120689,7 +126354,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -121006,6 +126672,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -121743,24 +127412,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -121799,41 +127450,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -122234,7 +127918,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -122257,6 +127946,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -122307,6 +127997,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -122772,6 +128468,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -123109,6 +128818,29 @@ "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": { @@ -123192,19 +128924,54 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "RelationshipPostSchema": { + "RegisterSchema": { "type": "object", "properties": { - "discriminator": { + "username": { + "minLength": 2, + "maxLength": 32, "type": "string" }, - "username": { + "password": { + "minLength": 1, + "maxLength": 72, + "type": "string" + }, + "consent": { + "type": "boolean" + }, + "email": { + "format": "email", + "type": "string" + }, + "fingerprint": { + "type": "string" + }, + "invite": { + "type": "string" + }, + "date_of_birth": { + "type": "string" + }, + "gift_code_sku_id": { + "type": "string" + }, + "captcha_key": { + "type": "string" + }, + "promotional_email_opt_in": { + "type": "boolean" + }, + "unique_username_registration": { + "type": "boolean" + }, + "global_name": { "type": "string" } }, "additionalProperties": false, "required": [ - "discriminator", + "consent", "username" ], "definitions": { @@ -123688,6 +129455,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -124161,7 +130041,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -124494,6 +130377,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -124776,6 +130665,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -124866,6 +130759,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -124883,6 +130780,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -124901,7 +130799,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -125218,6 +131117,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -125955,24 +131857,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -126011,41 +131895,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -126446,7 +132363,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -126469,6 +132391,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -126519,6 +132442,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -126984,6 +132913,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -127321,6 +133263,29 @@ "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": { @@ -127404,20 +133369,21 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "RelationshipPutSchema": { + "RelationshipPostSchema": { "type": "object", "properties": { - "type": { - "enum": [ - 1, - 2, - 3, - 4 - ], - "type": "number" + "discriminator": { + "type": "string" + }, + "username": { + "type": "string" } }, "additionalProperties": false, + "required": [ + "discriminator", + "username" + ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -127899,6 +133865,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -128372,7 +134451,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -128705,6 +134787,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -128987,6 +135075,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -129077,6 +135169,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -129094,6 +135190,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -129112,7 +135209,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -129429,6 +135527,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -130166,24 +136267,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -130222,41 +136305,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -130657,7 +136773,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -130680,6 +136801,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -130730,6 +136852,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -131195,6 +137323,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -131532,6 +137673,29 @@ "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": { @@ -131615,32 +137779,17 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "RoleModifySchema": { + "RelationshipPutSchema": { "type": "object", "properties": { - "name": { - "type": "string" - }, - "permissions": { - "type": "string" - }, - "color": { - "type": "integer" - }, - "hoist": { - "type": "boolean" - }, - "mentionable": { - "type": "boolean" - }, - "position": { - "type": "integer" - }, - "icon": { - "type": "string" - }, - "unicode_emoji": { - "type": "string" + "type": { + "enum": [ + 1, + 2, + 3, + 4 + ], + "type": "number" } }, "additionalProperties": false, @@ -132125,6 +138274,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -132598,7 +138860,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -132931,6 +139196,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -133213,6 +139484,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -133303,6 +139578,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -133320,6 +139599,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -133338,7 +139618,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -133655,6 +139936,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -134392,24 +140676,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -134448,41 +140714,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -134883,7 +141182,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -134906,6 +141210,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -134956,6 +141261,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -135421,6 +141732,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -135758,6 +142082,29 @@ "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": { @@ -135841,24 +142188,35 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "RolePositionUpdateSchema": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "position": { - "type": "integer" - } + "RoleModifySchema": { + "type": "object", + "properties": { + "name": { + "type": "string" }, - "additionalProperties": false, - "required": [ - "id", - "position" - ] + "permissions": { + "type": "string" + }, + "color": { + "type": "integer" + }, + "hoist": { + "type": "boolean" + }, + "mentionable": { + "type": "boolean" + }, + "position": { + "type": "integer" + }, + "icon": { + "type": "string" + }, + "unicode_emoji": { + "type": "string" + } }, + "additionalProperties": false, "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -136340,6 +142698,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -136813,7 +143284,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -137146,6 +143620,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -137428,6 +143908,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -137518,6 +144002,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -137535,6 +144023,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -137553,7 +144042,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -137870,6 +144360,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -138607,24 +145100,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -138663,41 +145138,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -139098,7 +145606,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -139121,6 +145634,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -139171,6 +145685,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -139636,6 +146156,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -139973,6 +146506,29 @@ "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": { @@ -140056,98 +146612,24 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "SelectProtocolSchema": { - "type": "object", - "properties": { - "protocol": { - "enum": [ - "udp", - "webrtc" - ], - "type": "string" - }, - "data": { - "anyOf": [ - { - "type": "object", - "properties": { - "address": { - "type": "string" - }, - "port": { - "type": "integer" - }, - "mode": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "address", - "mode", - "port" - ] - }, - { - "type": "string" - } - ] - }, - "sdp": { - "type": "string" - }, - "codecs": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "enum": [ - "H264", - "VP8", - "VP9", - "opus" - ], - "type": "string" - }, - "type": { - "enum": [ - "audio", - "video" - ], - "type": "string" - }, - "priority": { - "type": "integer" - }, - "payload_type": { - "type": "integer" - }, - "rtx_payload_type": { - "type": [ - "null", - "integer" - ] - } - }, - "additionalProperties": false, - "required": [ - "name", - "payload_type", - "priority", - "type" - ] + "RolePositionUpdateSchema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "position": { + "type": "integer" } }, - "rtc_connection_id": { - "type": "string" - } + "additionalProperties": false, + "required": [ + "id", + "position" + ] }, - "additionalProperties": false, - "required": [ - "data", - "protocol" - ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -140629,6 +147111,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -141102,7 +147697,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -141435,6 +148033,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -141717,6 +148321,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -141807,6 +148415,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -141824,6 +148436,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -141842,7 +148455,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -142159,6 +148773,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -142896,24 +149513,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -142952,41 +149551,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -143387,7 +150019,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -143410,6 +150047,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -143460,6 +150098,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -143925,6 +150569,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -144262,6 +150919,29 @@ "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": { @@ -144345,19 +151025,97 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "TemplateCreateSchema": { + "SelectProtocolSchema": { "type": "object", "properties": { - "name": { + "protocol": { + "enum": [ + "udp", + "webrtc" + ], "type": "string" }, - "description": { + "data": { + "anyOf": [ + { + "type": "object", + "properties": { + "address": { + "type": "string" + }, + "port": { + "type": "integer" + }, + "mode": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "address", + "mode", + "port" + ] + }, + { + "type": "string" + } + ] + }, + "sdp": { + "type": "string" + }, + "codecs": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "enum": [ + "H264", + "VP8", + "VP9", + "opus" + ], + "type": "string" + }, + "type": { + "enum": [ + "audio", + "video" + ], + "type": "string" + }, + "priority": { + "type": "integer" + }, + "payload_type": { + "type": "integer" + }, + "rtx_payload_type": { + "type": [ + "null", + "integer" + ] + } + }, + "additionalProperties": false, + "required": [ + "name", + "payload_type", + "priority", + "type" + ] + } + }, + "rtc_connection_id": { "type": "string" } }, "additionalProperties": false, "required": [ - "name" + "data", + "protocol" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -144840,6 +151598,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -145313,7 +152184,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -145646,6 +152520,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -145928,6 +152808,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -146018,6 +152902,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -146035,6 +152923,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -146053,7 +152942,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -146370,6 +153260,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -147107,24 +154000,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -147163,41 +154038,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -147598,7 +154506,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -147621,6 +154534,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -147671,6 +154585,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -148136,6 +155056,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -148473,6 +155406,29 @@ "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": { @@ -148556,7 +155512,7 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "TemplateModifySchema": { + "TemplateCreateSchema": { "type": "object", "properties": { "name": { @@ -149051,6 +156007,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -149524,7 +156593,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -149857,6 +156929,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -150139,6 +157217,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -150229,6 +157311,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -150246,6 +157332,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -150264,7 +157351,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -150581,6 +157669,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -151318,24 +158409,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -151374,41 +158447,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -151809,7 +158915,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -151832,6 +158943,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -151882,6 +158994,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -152347,6 +159465,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -152684,6 +159815,29 @@ "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": { @@ -152767,16 +159921,19 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "TotpDisableSchema": { + "TemplateModifySchema": { "type": "object", "properties": { - "code": { + "name": { + "type": "string" + }, + "description": { "type": "string" } }, "additionalProperties": false, "required": [ - "code" + "name" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -153259,6 +160416,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -153732,7 +161002,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -154065,6 +161338,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -154347,6 +161626,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -154437,6 +161720,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -154454,6 +161741,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -154472,7 +161760,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -154789,6 +162078,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -155526,24 +162818,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -155582,41 +162856,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -156017,7 +163324,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -156040,6 +163352,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -156090,6 +163403,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -156555,6 +163874,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -156892,6 +164224,29 @@ "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": { @@ -156975,22 +164330,16 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "TotpEnableSchema": { + "TotpDisableSchema": { "type": "object", "properties": { - "password": { - "type": "string" - }, "code": { "type": "string" - }, - "secret": { - "type": "string" } }, "additionalProperties": false, "required": [ - "password" + "code" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -157473,6 +164822,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -157946,7 +165408,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -158279,6 +165744,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -158561,6 +166032,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -158651,6 +166126,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -158668,6 +166147,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -158686,7 +166166,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -159003,6 +166484,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -159740,24 +167224,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -159796,41 +167262,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -160231,7 +167730,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -160254,6 +167758,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -160304,6 +167809,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -160769,6 +168280,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -161106,58 +168630,81 @@ "bio" ] }, - "TokenResponse": { + "Badge": { "type": "object", "properties": { - "token": { + "id": { "type": "string" }, - "settings": { - "$ref": "#/definitions/UserSettings" + "description": { + "type": "string" + }, + "icon": { + "type": "string" + }, + "link": { + "type": "string" } }, "additionalProperties": false, "required": [ - "settings", - "token" + "description", + "icon", + "id" ] }, - "MFAResponse": { + "TokenResponse": { "type": "object", "properties": { - "ticket": { + "token": { "type": "string" }, - "mfa": { - "type": "boolean", - "enum": [ - true - ] - }, - "sms": { - "type": "boolean", - "enum": [ - false - ] - }, - "token": { - "type": "null" + "settings": { + "$ref": "#/definitions/UserSettings" } }, "additionalProperties": false, "required": [ - "mfa", - "sms", - "ticket", + "settings", "token" ] }, - "WebAuthnResponse": { + "MFAResponse": { "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" + ] + }, + "WebAuthnResponse": { + "type": "object", + "properties": { + "webauthn": { + "type": "string" + }, "ticket": { "type": "string" }, @@ -161189,32 +168736,22 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "TotpSchema": { + "TotpEnableSchema": { "type": "object", "properties": { - "code": { + "password": { "type": "string" }, - "ticket": { + "code": { "type": "string" }, - "gift_code_sku_id": { - "type": [ - "null", - "string" - ] - }, - "login_source": { - "type": [ - "null", - "string" - ] + "secret": { + "type": "string" } }, "additionalProperties": false, "required": [ - "code", - "ticket" + "password" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -161697,6 +169234,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -162170,7 +169820,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -162503,6 +170156,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -162785,6 +170444,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -162875,6 +170538,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -162892,6 +170559,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -162910,7 +170578,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -163227,6 +170896,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -163964,24 +171636,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -164020,41 +171674,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -164455,7 +172142,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -164478,6 +172170,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -164528,6 +172221,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -164993,6 +172692,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -165330,6 +173042,29 @@ "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": { @@ -165413,16 +173148,32 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "UserDeleteSchema": { + "TotpSchema": { "type": "object", "properties": { - "user_id": { + "code": { "type": "string" + }, + "ticket": { + "type": "string" + }, + "gift_code_sku_id": { + "type": [ + "null", + "string" + ] + }, + "login_source": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ - "user_id" + "code", + "ticket" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -165905,6 +173656,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -166378,7 +174242,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -166711,6 +174578,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -166993,6 +174866,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -167083,6 +174960,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -167100,6 +174981,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -167118,7 +175000,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -167435,6 +175318,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -168172,24 +176058,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -168228,41 +176096,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -168663,7 +176564,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -168686,6 +176592,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -168736,6 +176643,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -169201,6 +177114,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -169538,6 +177464,29 @@ "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": { @@ -169621,66 +177570,17 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "UserGuildSettingsSchema": { + "UserDeleteSchema": { "type": "object", "properties": { - "channel_overrides": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ChannelOverride" - } - }, - "version": { - "type": "integer" - }, - "message_notifications": { - "type": "integer" - }, - "mobile_push": { - "type": "boolean" - }, - "mute_config": { - "anyOf": [ - { - "$ref": "#/definitions/MuteConfig" - }, - { - "type": "null" - } - ] - }, - "muted": { - "type": "boolean" - }, - "suppress_everyone": { - "type": "boolean" - }, - "suppress_roles": { - "type": "boolean" - }, - "guild_id": { - "type": [ - "null", - "string" - ] - }, - "flags": { - "type": "integer" - }, - "mute_scheduled_events": { - "type": "boolean" - }, - "hide_muted_channels": { - "type": "boolean" - }, - "notify_highlights": { - "enum": [ - 0 - ], - "type": "number" + "user_id": { + "type": "string" } }, "additionalProperties": false, + "required": [ + "user_id" + ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -170162,6 +178062,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -170635,7 +178648,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -170968,6 +178984,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -171250,6 +179272,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -171340,6 +179366,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -171357,6 +179387,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -171375,7 +179406,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -171692,6 +179724,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -172429,24 +180464,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -172485,41 +180502,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -172920,7 +180970,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -172943,6 +180998,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -172993,6 +181049,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -173458,6 +181520,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -173795,6 +181870,29 @@ "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": { @@ -173878,49 +181976,63 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "UserModifySchema": { + "UserGuildSettingsSchema": { "type": "object", "properties": { - "username": { - "minLength": 1, - "maxLength": 100, - "type": "string" + "channel_overrides": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ChannelOverride" + } }, - "avatar": { - "type": [ - "null", - "string" + "version": { + "type": "integer" + }, + "message_notifications": { + "type": "integer" + }, + "mobile_push": { + "type": "boolean" + }, + "mute_config": { + "anyOf": [ + { + "$ref": "#/definitions/MuteConfig" + }, + { + "type": "null" + } ] }, - "bio": { - "maxLength": 1024, - "type": "string" + "muted": { + "type": "boolean" }, - "accent_color": { - "type": "integer" + "suppress_everyone": { + "type": "boolean" }, - "banner": { + "suppress_roles": { + "type": "boolean" + }, + "guild_id": { "type": [ "null", "string" ] }, - "password": { - "type": "string" - }, - "new_password": { - "type": "string" + "flags": { + "type": "integer" }, - "code": { - "type": "string" + "mute_scheduled_events": { + "type": "boolean" }, - "email": { - "type": "string" + "hide_muted_channels": { + "type": "boolean" }, - "discriminator": { - "minLength": 4, - "maxLength": 4, - "type": "string" + "notify_highlights": { + "enum": [ + 0 + ], + "type": "number" } }, "additionalProperties": false, @@ -174405,6 +182517,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -174878,7 +183103,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -175211,6 +183439,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -175493,6 +183727,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -175583,6 +183821,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -175600,6 +183842,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -175618,7 +183861,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -175935,6 +184179,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -176672,24 +184919,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -176728,41 +184957,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -177163,7 +185425,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -177186,6 +185453,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -177236,6 +185504,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -177701,6 +185975,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -178038,6 +186325,29 @@ "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": { @@ -178121,17 +186431,52 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "UserNoteUpdateSchema": { + "UserModifySchema": { "type": "object", "properties": { - "note": { + "username": { + "minLength": 1, + "maxLength": 100, + "type": "string" + }, + "avatar": { + "type": [ + "null", + "string" + ] + }, + "bio": { + "maxLength": 1024, + "type": "string" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": [ + "null", + "string" + ] + }, + "password": { + "type": "string" + }, + "new_password": { + "type": "string" + }, + "code": { + "type": "string" + }, + "email": { + "type": "string" + }, + "discriminator": { + "minLength": 4, + "maxLength": 4, "type": "string" } }, "additionalProperties": false, - "required": [ - "note" - ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -178613,6 +186958,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -179086,7 +187544,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -179419,6 +187880,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -179701,6 +188168,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -179791,6 +188262,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -179808,6 +188283,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -179826,7 +188302,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -180143,6 +188620,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -180880,24 +189360,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -180936,41 +189398,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -181371,7 +189866,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -181394,6 +189894,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -181444,6 +189945,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -181909,6 +190416,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -182246,6 +190766,29 @@ "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": { @@ -182329,42 +190872,17 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "UserProfileModifySchema": { + "UserNoteUpdateSchema": { "type": "object", "properties": { - "bio": { - "type": "string" - }, - "accent_color": { - "type": [ - "null", - "integer" - ] - }, - "banner": { - "type": [ - "null", - "string" - ] - }, - "pronouns": { + "note": { "type": "string" - }, - "theme_colors": { - "items": [ - { - "type": "integer" - }, - { - "type": "integer" - } - ], - "type": "array", - "minItems": 2, - "maxItems": 2 } }, "additionalProperties": false, + "required": [ + "note" + ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -182846,6 +191364,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -183319,7 +191950,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -183652,6 +192286,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -183934,6 +192574,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -184024,6 +192668,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -184041,6 +192689,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -184059,7 +192708,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -184376,6 +193026,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -185113,24 +193766,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -185169,41 +193804,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -185604,7 +194272,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -185627,6 +194300,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -185677,6 +194351,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -186142,6 +194822,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -186479,6 +195172,29 @@ "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": { @@ -186562,128 +195278,39 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "UserSettingsSchema": { + "UserProfileModifySchema": { "type": "object", "properties": { - "status": { - "enum": [ - "dnd", - "idle", - "invisible", - "offline", - "online" - ], + "bio": { "type": "string" }, - "afk_timeout": { - "type": "integer" - }, - "allow_accessibility_detection": { - "type": "boolean" - }, - "animate_emoji": { - "type": "boolean" - }, - "animate_stickers": { - "type": "integer" + "accent_color": { + "type": [ + "null", + "integer" + ] }, - "contact_sync_enabled": { - "type": "boolean" + "banner": { + "type": [ + "null", + "string" + ] }, - "convert_emoticons": { - "type": "boolean" + "pronouns": { + "type": "string" }, - "custom_status": { - "anyOf": [ + "theme_colors": { + "items": [ { - "$ref": "#/definitions/CustomStatus" + "type": "integer" }, { - "type": "null" + "type": "integer" } - ] - }, - "default_guilds_restricted": { - "type": "boolean" - }, - "detect_platform_accounts": { - "type": "boolean" - }, - "developer_mode": { - "type": "boolean" - }, - "disable_games_tab": { - "type": "boolean" - }, - "enable_tts_command": { - "type": "boolean" - }, - "explicit_content_filter": { - "type": "integer" - }, - "friend_source_flags": { - "$ref": "#/definitions/FriendSourceFlags" - }, - "gateway_connected": { - "type": "boolean" - }, - "gif_auto_play": { - "type": "boolean" - }, - "guild_folders": { - "type": "array", - "items": { - "$ref": "#/definitions/GuildFolder" - } - }, - "guild_positions": { - "type": "array", - "items": { - "type": "string" - } - }, - "inline_attachment_media": { - "type": "boolean" - }, - "inline_embed_media": { - "type": "boolean" - }, - "locale": { - "type": "string" - }, - "message_display_compact": { - "type": "boolean" - }, - "native_phone_integration_enabled": { - "type": "boolean" - }, - "render_embeds": { - "type": "boolean" - }, - "render_reactions": { - "type": "boolean" - }, - "restricted_guilds": { - "type": "array", - "items": { - "type": "string" - } - }, - "show_current_game": { - "type": "boolean" - }, - "stream_notifications_enabled": { - "type": "boolean" - }, - "theme": { - "enum": [ - "dark", - "light" ], - "type": "string" - }, - "timezone_offset": { - "type": "integer" + "type": "array", + "minItems": 2, + "maxItems": 2 } }, "additionalProperties": false, @@ -187168,6 +195795,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -187641,7 +196381,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -187974,6 +196717,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -188256,6 +197005,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -188346,6 +197099,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -188363,6 +197120,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -188381,7 +197139,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -188698,6 +197457,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -189435,24 +198197,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -189491,41 +198235,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -189926,7 +198703,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -189949,6 +198731,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -189999,6 +198782,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -190464,6 +199253,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -190801,6 +199603,29 @@ "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": { @@ -190884,13 +199709,134 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "VanityUrlSchema": { + "UserSettingsSchema": { "type": "object", "properties": { - "code": { - "minLength": 1, - "maxLength": 20, + "status": { + "enum": [ + "dnd", + "idle", + "invisible", + "offline", + "online" + ], + "type": "string" + }, + "afk_timeout": { + "type": "integer" + }, + "allow_accessibility_detection": { + "type": "boolean" + }, + "animate_emoji": { + "type": "boolean" + }, + "animate_stickers": { + "type": "integer" + }, + "contact_sync_enabled": { + "type": "boolean" + }, + "convert_emoticons": { + "type": "boolean" + }, + "custom_status": { + "anyOf": [ + { + "$ref": "#/definitions/CustomStatus" + }, + { + "type": "null" + } + ] + }, + "default_guilds_restricted": { + "type": "boolean" + }, + "detect_platform_accounts": { + "type": "boolean" + }, + "developer_mode": { + "type": "boolean" + }, + "disable_games_tab": { + "type": "boolean" + }, + "enable_tts_command": { + "type": "boolean" + }, + "explicit_content_filter": { + "type": "integer" + }, + "friend_discovery_flags": { + "type": "integer" + }, + "friend_source_flags": { + "$ref": "#/definitions/FriendSourceFlags" + }, + "gateway_connected": { + "type": "boolean" + }, + "gif_auto_play": { + "type": "boolean" + }, + "guild_folders": { + "type": "array", + "items": { + "$ref": "#/definitions/GuildFolder" + } + }, + "guild_positions": { + "type": "array", + "items": { + "type": "string" + } + }, + "inline_attachment_media": { + "type": "boolean" + }, + "inline_embed_media": { + "type": "boolean" + }, + "locale": { + "type": "string" + }, + "message_display_compact": { + "type": "boolean" + }, + "native_phone_integration_enabled": { + "type": "boolean" + }, + "render_embeds": { + "type": "boolean" + }, + "render_reactions": { + "type": "boolean" + }, + "restricted_guilds": { + "type": "array", + "items": { + "type": "string" + } + }, + "show_current_game": { + "type": "boolean" + }, + "stream_notifications_enabled": { + "type": "boolean" + }, + "theme": { + "enum": [ + "dark", + "light" + ], "type": "string" + }, + "timezone_offset": { + "type": "integer" + }, + "view_nsfw_guilds": { + "type": "boolean" } }, "additionalProperties": false, @@ -191375,6 +200321,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -191848,7 +200907,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -192181,6 +201243,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -192463,6 +201531,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -192553,6 +201625,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -192570,6 +201646,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -192588,7 +201665,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -192905,6 +201983,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -193642,24 +202723,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -193698,41 +202761,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -194133,7 +203229,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -194156,6 +203257,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -194206,6 +203308,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -194671,6 +203779,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -195008,6 +204129,29 @@ "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": { @@ -195091,55 +204235,16 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "VoiceIdentifySchema": { + "VanityUrlSchema": { "type": "object", "properties": { - "server_id": { - "type": "string" - }, - "user_id": { - "type": "string" - }, - "session_id": { - "type": "string" - }, - "token": { + "code": { + "minLength": 1, + "maxLength": 20, "type": "string" - }, - "video": { - "type": "boolean" - }, - "streams": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string" - }, - "rid": { - "type": "string" - }, - "quality": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "quality", - "rid", - "type" - ] - } } }, "additionalProperties": false, - "required": [ - "server_id", - "session_id", - "token", - "user_id" - ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -195621,6 +204726,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -196094,7 +205312,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -196427,6 +205648,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -196709,6 +205936,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -196799,6 +206030,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -196816,6 +206051,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -196834,7 +206070,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -197151,6 +206388,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -197888,24 +207128,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -197944,41 +207166,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -198379,7 +207634,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -198402,6 +207662,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -198452,6 +207713,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -198917,6 +208184,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -199254,6 +208534,29 @@ "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": { @@ -199337,42 +208640,54 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "VoiceStateUpdateSchema": { + "VoiceIdentifySchema": { "type": "object", "properties": { - "guild_id": { + "server_id": { "type": "string" }, - "channel_id": { + "user_id": { "type": "string" }, - "self_mute": { - "type": "boolean" - }, - "self_deaf": { - "type": "boolean" - }, - "self_video": { - "type": "boolean" - }, - "preferred_region": { + "session_id": { "type": "string" }, - "request_to_speak_timestamp": { - "type": "string", - "format": "date-time" + "token": { + "type": "string" }, - "suppress": { + "video": { "type": "boolean" }, - "flags": { - "type": "integer" + "streams": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string" + }, + "rid": { + "type": "string" + }, + "quality": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "quality", + "rid", + "type" + ] + } } }, "additionalProperties": false, "required": [ - "self_deaf", - "self_mute" + "server_id", + "session_id", + "token", + "user_id" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -199855,6 +209170,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -200328,7 +209756,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -200661,6 +210092,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -200943,6 +210380,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -201033,6 +210474,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -201050,6 +210495,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -201068,7 +210514,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -201385,6 +210832,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -202122,24 +211572,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -202178,41 +211610,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -202613,7 +212078,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -202636,6 +212106,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -202686,6 +212157,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -203151,6 +212628,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -203488,6 +212978,29 @@ "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": { @@ -203571,94 +213084,42 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "VoiceVideoSchema": { + "VoiceStateUpdateSchema": { "type": "object", "properties": { - "audio_ssrc": { - "type": "integer" + "guild_id": { + "type": "string" }, - "video_ssrc": { - "type": "integer" + "channel_id": { + "type": "string" }, - "rtx_ssrc": { - "type": "integer" + "self_mute": { + "type": "boolean" }, - "user_id": { + "self_deaf": { + "type": "boolean" + }, + "self_video": { + "type": "boolean" + }, + "preferred_region": { "type": "string" }, - "streams": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "enum": [ - "audio", - "video" - ], - "type": "string" - }, - "rid": { - "type": "string" - }, - "ssrc": { - "type": "integer" - }, - "active": { - "type": "boolean" - }, - "quality": { - "type": "integer" - }, - "rtx_ssrc": { - "type": "integer" - }, - "max_bitrate": { - "type": "integer" - }, - "max_framerate": { - "type": "integer" - }, - "max_resolution": { - "type": "object", - "properties": { - "type": { - "type": "string" - }, - "width": { - "type": "integer" - }, - "height": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "height", - "type", - "width" - ] - } - }, - "additionalProperties": false, - "required": [ - "active", - "max_bitrate", - "max_framerate", - "max_resolution", - "quality", - "rid", - "rtx_ssrc", - "ssrc", - "type" - ] - } + "request_to_speak_timestamp": { + "type": "string", + "format": "date-time" + }, + "suppress": { + "type": "boolean" + }, + "flags": { + "type": "integer" } }, "additionalProperties": false, "required": [ - "audio_ssrc", - "video_ssrc" + "self_deaf", + "self_mute" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -204141,6 +213602,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -204614,7 +214188,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -204947,6 +214524,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -205229,6 +214812,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -205319,6 +214906,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -205336,6 +214927,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -205354,7 +214946,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -205671,6 +215264,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -206408,24 +216004,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -206464,41 +216042,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -206899,7 +216510,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -206922,6 +216538,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -206972,6 +216589,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -207437,6 +217060,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -207774,6 +217410,29 @@ "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": { @@ -207857,16 +217516,94 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GenerateWebAuthnCredentialsSchema": { + "VoiceVideoSchema": { "type": "object", "properties": { - "password": { + "audio_ssrc": { + "type": "integer" + }, + "video_ssrc": { + "type": "integer" + }, + "rtx_ssrc": { + "type": "integer" + }, + "user_id": { "type": "string" + }, + "streams": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "enum": [ + "audio", + "video" + ], + "type": "string" + }, + "rid": { + "type": "string" + }, + "ssrc": { + "type": "integer" + }, + "active": { + "type": "boolean" + }, + "quality": { + "type": "integer" + }, + "rtx_ssrc": { + "type": "integer" + }, + "max_bitrate": { + "type": "integer" + }, + "max_framerate": { + "type": "integer" + }, + "max_resolution": { + "type": "object", + "properties": { + "type": { + "type": "string" + }, + "width": { + "type": "integer" + }, + "height": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "height", + "type", + "width" + ] + } + }, + "additionalProperties": false, + "required": [ + "active", + "max_bitrate", + "max_framerate", + "max_resolution", + "quality", + "rid", + "rtx_ssrc", + "ssrc", + "type" + ] + } } }, "additionalProperties": false, "required": [ - "password" + "audio_ssrc", + "video_ssrc" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -208349,6 +218086,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -208822,7 +218672,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -209155,6 +219008,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -209437,6 +219296,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -209527,6 +219390,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -209544,6 +219411,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -209562,7 +219430,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -209879,6 +219748,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -210616,24 +220488,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -210672,41 +220526,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -211107,7 +220994,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -211130,6 +221022,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -211180,6 +221073,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -211645,6 +221544,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -211982,6 +221894,29 @@ "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": { @@ -212065,24 +222000,16 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "CreateWebAuthnCredentialSchema": { + "GenerateWebAuthnCredentialsSchema": { "type": "object", "properties": { - "credential": { - "type": "string" - }, - "name": { - "type": "string" - }, - "ticket": { + "password": { "type": "string" } }, "additionalProperties": false, "required": [ - "credential", - "name", - "ticket" + "password" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -212565,6 +222492,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -213038,7 +223078,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -213371,6 +223414,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -213653,6 +223702,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -213743,6 +223796,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -213760,6 +223817,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -213778,7 +223836,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -214095,6 +224154,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -214832,24 +224894,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -214888,41 +224932,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -215323,7 +225400,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -215346,6 +225428,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -215396,6 +225479,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -215861,6 +225950,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -216198,6 +226300,29 @@ "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": { @@ -216281,14 +226406,24 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "WebAuthnPostSchema": { - "anyOf": [ - { - "$ref": "#/definitions/GenerateWebAuthnCredentialsSchema" + "CreateWebAuthnCredentialSchema": { + "type": "object", + "properties": { + "credential": { + "type": "string" }, - { - "$ref": "#/definitions/CreateWebAuthnCredentialSchema" + "name": { + "type": "string" + }, + "ticket": { + "type": "string" } + }, + "additionalProperties": false, + "required": [ + "credential", + "name", + "ticket" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -216771,6 +226906,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -217244,7 +227492,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -217577,6 +227828,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -217859,6 +228116,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -217949,6 +228210,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -217966,6 +228231,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -217984,7 +228250,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -218301,6 +228568,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -219038,24 +229308,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -219094,41 +229346,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -219529,7 +229814,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -219552,6 +229842,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -219602,6 +229893,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -220067,6 +230364,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -220404,6 +230714,29 @@ "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": { @@ -220487,20 +230820,14 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "WebAuthnTotpSchema": { - "type": "object", - "properties": { - "code": { - "type": "string" + "WebAuthnPostSchema": { + "anyOf": [ + { + "$ref": "#/definitions/GenerateWebAuthnCredentialsSchema" }, - "ticket": { - "type": "string" + { + "$ref": "#/definitions/CreateWebAuthnCredentialSchema" } - }, - "additionalProperties": false, - "required": [ - "code", - "ticket" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -220983,6 +231310,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -221456,7 +231896,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -221789,6 +232232,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -222071,6 +232520,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -222161,6 +232614,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -222178,6 +232635,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -222196,7 +232654,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -222513,6 +232972,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -223250,24 +233712,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -223306,41 +233750,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -223741,7 +234218,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -223764,6 +234246,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -223814,6 +234297,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -224279,6 +234768,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -224616,6 +235118,29 @@ "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": { @@ -224699,20 +235224,20 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "WebhookCreateSchema": { + "WebAuthnTotpSchema": { "type": "object", "properties": { - "name": { - "maxLength": 80, + "code": { "type": "string" }, - "avatar": { + "ticket": { "type": "string" } }, "additionalProperties": false, "required": [ - "name" + "code", + "ticket" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -225195,6 +235720,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -225668,7 +236306,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -226001,6 +236642,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -226283,6 +236930,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -226373,6 +237024,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -226390,6 +237045,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -226408,7 +237064,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -226725,6 +237382,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -227462,24 +238122,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -227518,41 +238160,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -227953,7 +238628,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -227976,6 +238656,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -228026,6 +238707,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -228491,6 +239178,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -228828,6 +239528,29 @@ "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": { @@ -228911,20 +239634,20 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "WidgetModifySchema": { + "WebhookCreateSchema": { "type": "object", "properties": { - "enabled": { - "type": "boolean" + "name": { + "maxLength": 80, + "type": "string" }, - "channel_id": { + "avatar": { "type": "string" } }, "additionalProperties": false, "required": [ - "channel_id", - "enabled" + "name" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -229407,6 +240130,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -229880,7 +240716,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -230213,6 +241052,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -230495,6 +241340,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -230585,6 +241434,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -230602,6 +241455,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -230620,7 +241474,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -230937,6 +241792,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -231674,24 +242532,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -231730,41 +242570,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -232165,7 +243038,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -232188,6 +243066,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -232238,6 +243117,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -232703,6 +243588,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -233040,6 +243938,29 @@ "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": { @@ -233123,52 +244044,20 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIErrorResponse": { + "WidgetModifySchema": { "type": "object", "properties": { - "code": { - "type": "integer" + "enabled": { + "type": "boolean" }, - "message": { + "channel_id": { "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" + "channel_id", + "enabled" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -233651,6 +244540,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -234124,7 +245126,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -234457,6 +245462,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -234739,6 +245750,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -234829,6 +245844,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -234846,6 +245865,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -234864,7 +245884,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -235181,6 +246202,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -235918,24 +246942,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -235974,41 +246980,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -236409,7 +247448,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -236432,6 +247476,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -236482,6 +247527,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -236947,6 +247998,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -237284,6 +248348,29 @@ "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": { @@ -237367,24 +248454,52 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "CaptchaRequiredResponse": { + "APIErrorResponse": { "type": "object", "properties": { - "captcha_key": { - "type": "string" + "code": { + "type": "integer" }, - "captcha_sitekey": { + "message": { "type": "string" }, - "captcha_service": { - "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": [ - "captcha_key", - "captcha_service", - "captcha_sitekey" + "code", + "errors", + "message" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -237867,6 +248982,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -238340,7 +249568,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -238673,6 +249904,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -238955,6 +250192,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -239045,6 +250286,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -239062,6 +250307,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -239080,7 +250326,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -239397,6 +250644,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -240134,24 +251384,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -240190,41 +251422,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -240625,7 +251890,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -240648,6 +251918,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -240698,6 +251969,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -241163,6 +252440,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -241500,6 +252790,29 @@ "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": { @@ -241583,14 +252896,24 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIErrorOrCaptchaResponse": { - "anyOf": [ - { - "$ref": "#/definitions/APIErrorResponse" + "CaptchaRequiredResponse": { + "type": "object", + "properties": { + "captcha_key": { + "type": "string" }, - { - "$ref": "#/definitions/CaptchaRequiredResponse" + "captcha_sitekey": { + "type": "string" + }, + "captcha_service": { + "type": "string" } + }, + "additionalProperties": false, + "required": [ + "captcha_key", + "captcha_service", + "captcha_sitekey" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -242073,6 +253396,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -242546,7 +253982,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -242879,6 +254318,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -243161,6 +254606,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -243251,6 +254700,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -243268,6 +254721,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -243286,7 +254740,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -243603,6 +255058,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -244340,24 +255798,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -244396,41 +255836,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -244831,7 +256304,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -244854,6 +256332,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -244904,6 +256383,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -245369,6 +256854,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -245706,6 +257204,29 @@ "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": { @@ -245789,20 +257310,14 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "BackupCodesChallengeResponse": { - "type": "object", - "properties": { - "nonce": { - "type": "string" + "APIErrorOrCaptchaResponse": { + "anyOf": [ + { + "$ref": "#/definitions/APIErrorResponse" }, - "regenerate_nonce": { - "type": "string" + { + "$ref": "#/definitions/CaptchaRequiredResponse" } - }, - "additionalProperties": false, - "required": [ - "nonce", - "regenerate_nonce" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -246285,6 +257800,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -246758,7 +258386,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -247091,6 +258722,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -247373,6 +259010,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -247463,6 +259104,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -247480,6 +259125,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -247498,7 +259144,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -247815,6 +259462,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -248552,24 +260202,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -248608,41 +260240,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -249043,7 +260708,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -249066,6 +260736,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -249116,6 +260787,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -249581,6 +261258,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -249918,6 +261608,29 @@ "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": { @@ -250001,31 +261714,20 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "DiscoverableGuildsResponse": { + "BackupCodesChallengeResponse": { "type": "object", "properties": { - "total": { - "type": "integer" - }, - "guilds": { - "type": "array", - "items": { - "$ref": "#/definitions/Guild" - } - }, - "offset": { - "type": "integer" + "nonce": { + "type": "string" }, - "limit": { - "type": "integer" + "regenerate_nonce": { + "type": "string" } }, "additionalProperties": false, "required": [ - "guilds", - "limit", - "offset", - "total" + "nonce", + "regenerate_nonce" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -250508,6 +262210,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -250981,7 +262796,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -251314,6 +263132,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -251596,6 +263420,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -251686,6 +263514,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -251703,6 +263535,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -251721,7 +263554,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -252038,6 +263872,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -252775,24 +264612,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -252831,41 +264650,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -253266,7 +265118,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -253289,6 +265146,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -253339,6 +265197,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -253804,6 +265668,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -254141,6 +266018,29 @@ "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": { @@ -254224,45 +266124,31 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GatewayBotResponse": { + "DiscoverableGuildsResponse": { "type": "object", "properties": { - "url": { - "type": "string" + "total": { + "type": "integer" }, - "shards": { + "guilds": { + "type": "array", + "items": { + "$ref": "#/definitions/Guild" + } + }, + "offset": { "type": "integer" }, - "session_start_limit": { - "type": "object", - "properties": { - "total": { - "type": "integer" - }, - "remaining": { - "type": "integer" - }, - "reset_after": { - "type": "integer" - }, - "max_concurrency": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "max_concurrency", - "remaining", - "reset_after", - "total" - ] + "limit": { + "type": "integer" } }, "additionalProperties": false, "required": [ - "session_start_limit", - "shards", - "url" + "guilds", + "limit", + "offset", + "total" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -254745,6 +266631,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -255218,7 +267217,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -255551,6 +267553,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -255833,6 +267841,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -255923,6 +267935,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -255940,6 +267956,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -255958,7 +267975,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -256275,6 +268293,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -257012,24 +269033,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -257068,41 +269071,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -257503,7 +269539,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -257526,6 +269567,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -257576,6 +269618,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -258041,6 +270089,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -258378,6 +270439,29 @@ "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": { @@ -258461,15 +270545,44 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GatewayResponse": { + "GatewayBotResponse": { "type": "object", "properties": { "url": { "type": "string" + }, + "shards": { + "type": "integer" + }, + "session_start_limit": { + "type": "object", + "properties": { + "total": { + "type": "integer" + }, + "remaining": { + "type": "integer" + }, + "reset_after": { + "type": "integer" + }, + "max_concurrency": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "max_concurrency", + "remaining", + "reset_after", + "total" + ] } }, "additionalProperties": false, "required": [ + "session_start_limit", + "shards", "url" ], "definitions": { @@ -258953,6 +271066,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -259426,7 +271652,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -259759,6 +271988,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -260041,6 +272276,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -260131,6 +272370,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -260148,6 +272391,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -260166,7 +272410,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -260483,6 +272728,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -261220,24 +273468,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -261276,41 +273506,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -261711,7 +273974,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -261734,6 +274002,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -261784,6 +274053,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -262249,6 +274524,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -262586,6 +274874,29 @@ "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": { @@ -262669,19 +274980,16 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GenerateRegistrationTokensResponse": { + "GatewayResponse": { "type": "object", "properties": { - "tokens": { - "type": "array", - "items": { - "type": "string" - } + "url": { + "type": "string" } }, "additionalProperties": false, "required": [ - "tokens" + "url" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -263164,6 +275472,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -263637,7 +276058,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -263970,6 +276394,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -264252,6 +276682,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -264342,6 +276776,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -264359,6 +276797,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -264377,7 +276816,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -264694,6 +277134,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -265431,24 +277874,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -265487,41 +277912,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -265922,7 +278380,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -265945,6 +278408,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -265995,6 +278459,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -266460,6 +278930,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -266797,6 +279280,29 @@ "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": { @@ -266880,48 +279386,19 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildBansResponse": { + "GenerateRegistrationTokensResponse": { "type": "object", "properties": { - "reason": { - "type": "string" - }, - "user": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "id": { - "type": "string" - }, - "avatar": { - "type": [ - "null", - "string" - ] - }, - "public_flags": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "avatar", - "discriminator", - "id", - "public_flags", - "username" - ] + "tokens": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, "required": [ - "reason", - "user" + "tokens" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -267404,6 +279881,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -267877,7 +280467,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -268210,6 +280803,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -268492,6 +281091,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -268582,6 +281185,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -268599,6 +281206,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -268617,7 +281225,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -268934,6 +281543,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -269671,24 +282283,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -269727,41 +282321,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -270162,7 +282789,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -270185,6 +282817,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -270235,6 +282868,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -270700,6 +283339,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -271037,6 +283689,29 @@ "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": { @@ -271120,16 +283795,48 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildCreateResponse": { + "GuildBansResponse": { "type": "object", "properties": { - "id": { + "reason": { "type": "string" + }, + "user": { + "type": "object", + "properties": { + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "id": { + "type": "string" + }, + "avatar": { + "type": [ + "null", + "string" + ] + }, + "public_flags": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "avatar", + "discriminator", + "id", + "public_flags", + "username" + ] } }, "additionalProperties": false, "required": [ - "id" + "reason", + "user" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -271612,6 +284319,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -272085,7 +284905,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -272418,6 +285241,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -272700,6 +285529,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -272790,6 +285623,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -272807,6 +285644,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -272825,7 +285663,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -273142,6 +285981,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -273879,24 +286721,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -273935,41 +286759,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -274370,7 +287227,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -274393,6 +287255,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -274443,6 +287306,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -274908,6 +287777,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -275245,6 +288127,29 @@ "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": { @@ -275328,95 +288233,16 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildDiscoveryRequirementsResponse": { + "GuildCreateResponse": { "type": "object", "properties": { - "uild_id": { + "id": { "type": "string" - }, - "safe_environment": { - "type": "boolean" - }, - "healthy": { - "type": "boolean" - }, - "health_score_pending": { - "type": "boolean" - }, - "size": { - "type": "boolean" - }, - "nsfw_properties": {}, - "protected": { - "type": "boolean" - }, - "sufficient": { - "type": "boolean" - }, - "sufficient_without_grace_period": { - "type": "boolean" - }, - "valid_rules_channel": { - "type": "boolean" - }, - "retention_healthy": { - "type": "boolean" - }, - "engagement_healthy": { - "type": "boolean" - }, - "age": { - "type": "boolean" - }, - "minimum_age": { - "type": "integer" - }, - "health_score": { - "type": "object", - "properties": { - "avg_nonnew_participators": { - "type": "integer" - }, - "avg_nonnew_communicators": { - "type": "integer" - }, - "num_intentful_joiners": { - "type": "integer" - }, - "perc_ret_w1_intentful": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "avg_nonnew_communicators", - "avg_nonnew_participators", - "num_intentful_joiners", - "perc_ret_w1_intentful" - ] - }, - "minimum_size": { - "type": "integer" } }, "additionalProperties": false, "required": [ - "age", - "engagement_healthy", - "health_score", - "health_score_pending", - "healthy", - "minimum_age", - "minimum_size", - "nsfw_properties", - "protected", - "retention_healthy", - "safe_environment", - "size", - "sufficient", - "sufficient_without_grace_period", - "uild_id", - "valid_rules_channel" + "id" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -275899,6 +288725,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -276372,7 +289311,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -276705,6 +289647,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -276987,6 +289935,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -277077,6 +290029,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -277094,6 +290050,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -277112,7 +290069,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -277429,6 +290387,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -278166,24 +291127,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -278222,41 +291165,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -278657,7 +291633,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -278680,6 +291661,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -278730,6 +291712,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -279195,6 +292183,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -279532,6 +292533,29 @@ "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": { @@ -279615,23 +292639,95 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildMessagesSearchResponse": { + "GuildDiscoveryRequirementsResponse": { "type": "object", "properties": { - "messages": { - "type": "array", - "items": { - "$ref": "#/definitions/GuildMessagesSearchMessage" - } + "uild_id": { + "type": "string" }, - "total_results": { + "safe_environment": { + "type": "boolean" + }, + "healthy": { + "type": "boolean" + }, + "health_score_pending": { + "type": "boolean" + }, + "size": { + "type": "boolean" + }, + "nsfw_properties": {}, + "protected": { + "type": "boolean" + }, + "sufficient": { + "type": "boolean" + }, + "sufficient_without_grace_period": { + "type": "boolean" + }, + "valid_rules_channel": { + "type": "boolean" + }, + "retention_healthy": { + "type": "boolean" + }, + "engagement_healthy": { + "type": "boolean" + }, + "age": { + "type": "boolean" + }, + "minimum_age": { + "type": "integer" + }, + "health_score": { + "type": "object", + "properties": { + "avg_nonnew_participators": { + "type": "integer" + }, + "avg_nonnew_communicators": { + "type": "integer" + }, + "num_intentful_joiners": { + "type": "integer" + }, + "perc_ret_w1_intentful": { + "type": "integer" + } + }, + "additionalProperties": false, + "required": [ + "avg_nonnew_communicators", + "avg_nonnew_participators", + "num_intentful_joiners", + "perc_ret_w1_intentful" + ] + }, + "minimum_size": { "type": "integer" } }, "additionalProperties": false, "required": [ - "messages", - "total_results" + "age", + "engagement_healthy", + "health_score", + "health_score_pending", + "healthy", + "minimum_age", + "minimum_size", + "nsfw_properties", + "protected", + "retention_healthy", + "safe_environment", + "size", + "sufficient", + "sufficient_without_grace_period", + "uild_id", + "valid_rules_channel" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -280114,6 +293210,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -280587,7 +293796,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -280920,6 +294132,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -281202,6 +294420,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -281292,6 +294514,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -281309,6 +294535,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -281327,7 +294554,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -281644,6 +294872,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -282381,24 +295612,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -282437,41 +295650,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -282872,7 +296118,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -282895,6 +296146,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -282945,6 +296197,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -283410,6 +296668,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -283747,6 +297018,29 @@ "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": { @@ -283830,16 +297124,23 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildPruneResponse": { + "GuildMessagesSearchResponse": { "type": "object", "properties": { - "pruned": { + "messages": { + "type": "array", + "items": { + "$ref": "#/definitions/GuildMessagesSearchMessage" + } + }, + "total_results": { "type": "integer" } }, "additionalProperties": false, "required": [ - "pruned" + "messages", + "total_results" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -284322,6 +297623,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -284795,7 +298209,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -285128,6 +298545,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -285410,6 +298833,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -285500,6 +298927,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -285517,6 +298948,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -285535,7 +298967,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -285852,6 +299285,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -286589,24 +300025,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -286645,41 +300063,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -287080,7 +300531,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -287103,6 +300559,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -287153,6 +300610,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -287618,6 +301081,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -287955,6 +301431,29 @@ "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": { @@ -288038,16 +301537,16 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildPurgeResponse": { + "GuildPruneResponse": { "type": "object", "properties": { - "purged": { + "pruned": { "type": "integer" } }, "additionalProperties": false, "required": [ - "purged" + "pruned" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -288530,6 +302029,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -289003,7 +302615,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -289336,6 +302951,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -289618,6 +303239,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -289708,6 +303333,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -289725,6 +303354,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -289743,7 +303373,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -290060,6 +303691,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -290797,24 +304431,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -290853,41 +304469,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -291288,7 +304937,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -291311,6 +304965,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -291361,6 +305016,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -291826,6 +305487,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -292163,6 +305837,29 @@ "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": { @@ -292246,23 +305943,16 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildRecommendationsResponse": { + "GuildPurgeResponse": { "type": "object", "properties": { - "recommended_guilds": { - "type": "array", - "items": { - "$ref": "#/definitions/Guild" - } - }, - "load_id": { - "type": "string" + "purged": { + "type": "integer" } }, "additionalProperties": false, "required": [ - "load_id", - "recommended_guilds" + "purged" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -292745,6 +306435,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -293218,7 +307021,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -293551,6 +307357,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -293833,6 +307645,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -293923,6 +307739,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -293940,6 +307760,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -293958,7 +307779,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -294275,6 +308097,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -295012,24 +308837,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -295068,41 +308875,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -295503,7 +309343,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -295526,6 +309371,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -295576,6 +309422,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -296041,6 +309893,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -296378,6 +310243,29 @@ "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": { @@ -296461,20 +310349,23 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildVanityUrlResponse": { - "anyOf": [ - { - "$ref": "#/definitions/GuildVanityUrl" - }, - { - "$ref": "#/definitions/GuildVanityUrlNoInvite" - }, - { + "GuildRecommendationsResponse": { + "type": "object", + "properties": { + "recommended_guilds": { "type": "array", "items": { - "$ref": "#/definitions/GuildVanityUrl" + "$ref": "#/definitions/Guild" } + }, + "load_id": { + "type": "string" } + }, + "additionalProperties": false, + "required": [ + "load_id", + "recommended_guilds" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -296957,6 +310848,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -297430,7 +311434,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -297763,6 +311770,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -298045,6 +312058,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -298135,6 +312152,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -298152,6 +312173,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -298170,7 +312192,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -298487,6 +312510,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -299224,24 +313250,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -299280,41 +313288,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -299715,7 +313756,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -299738,6 +313784,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -299788,6 +313835,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -300253,6 +314306,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -300590,6 +314656,29 @@ "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": { @@ -300673,16 +314762,20 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildVanityUrlCreateResponse": { - "type": "object", - "properties": { - "code": { - "type": "string" + "GuildVanityUrlResponse": { + "anyOf": [ + { + "$ref": "#/definitions/GuildVanityUrl" + }, + { + "$ref": "#/definitions/GuildVanityUrlNoInvite" + }, + { + "type": "array", + "items": { + "$ref": "#/definitions/GuildVanityUrl" + } } - }, - "additionalProperties": false, - "required": [ - "code" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -301165,6 +315258,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -301638,7 +315844,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -301971,6 +316180,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -302253,6 +316468,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -302343,6 +316562,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -302360,6 +316583,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -302378,7 +316602,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -302695,6 +316920,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -303432,24 +317660,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -303488,41 +317698,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -303923,7 +318166,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -303946,6 +318194,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -303996,6 +318245,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -304461,6 +318716,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -304798,6 +319066,29 @@ "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": { @@ -304881,91 +319172,16 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildWidgetJsonResponse": { + "GuildVanityUrlCreateResponse": { "type": "object", "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "instant_invite": { + "code": { "type": "string" - }, - "channels": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "position": { - "type": "integer" - } - }, - "additionalProperties": false, - "required": [ - "id", - "name", - "position" - ] - } - }, - "members": { - "type": "array", - "items": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "username": { - "type": "string" - }, - "discriminator": { - "type": "string" - }, - "avatar": { - "type": [ - "null", - "string" - ] - }, - "status": { - "$ref": "#/definitions/ClientStatus" - }, - "avatar_url": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "avatar", - "avatar_url", - "discriminator", - "id", - "status", - "username" - ] - } - }, - "presence_count": { - "type": "integer" } }, "additionalProperties": false, "required": [ - "channels", - "id", - "instant_invite", - "members", - "name", - "presence_count" + "code" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -305448,6 +319664,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -305921,7 +320250,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -306254,6 +320586,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -306536,6 +320874,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -306626,6 +320968,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -306643,6 +320989,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -306661,7 +321008,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -306978,6 +321326,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -307715,24 +322066,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -307771,41 +322104,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -308206,7 +322572,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -308229,6 +322600,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -308279,6 +322651,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -308744,6 +323122,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -309081,6 +323472,29 @@ "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": { @@ -309164,27 +323578,91 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "GuildWidgetSettingsResponse": { + "GuildWidgetJsonResponse": { "type": "object", "properties": { - "enabled": { - "type": "boolean" + "id": { + "type": "string" }, - "channel_id": { - "anyOf": [ - { - "$ref": "#/definitions/Snowflake" + "name": { + "type": "string" + }, + "instant_invite": { + "type": "string" + }, + "channels": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "position": { + "type": "integer" + } }, - { - "type": "null" - } - ] + "additionalProperties": false, + "required": [ + "id", + "name", + "position" + ] + } + }, + "members": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "avatar": { + "type": [ + "null", + "string" + ] + }, + "status": { + "$ref": "#/definitions/ClientStatus" + }, + "avatar_url": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "avatar", + "avatar_url", + "discriminator", + "id", + "status", + "username" + ] + } + }, + "presence_count": { + "type": "integer" } }, "additionalProperties": false, "required": [ - "channel_id", - "enabled" + "channels", + "id", + "instant_invite", + "members", + "name", + "presence_count" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -309667,6 +324145,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -310140,7 +324731,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -310473,6 +325067,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -310755,6 +325355,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -310845,6 +325449,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -310862,6 +325470,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -310880,7 +325489,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -311197,6 +325807,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -311934,24 +326547,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -311990,41 +326585,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -312425,7 +327053,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -312448,6 +327081,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -312498,6 +327132,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -312963,6 +327603,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -313300,6 +327953,29 @@ "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": { @@ -313383,28 +328059,27 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "InstanceDomainsResponse": { + "GuildWidgetSettingsResponse": { "type": "object", "properties": { - "cdn": { - "type": "string" - }, - "gateway": { - "type": "string" - }, - "defaultApiVersion": { - "type": "string" + "enabled": { + "type": "boolean" }, - "apiEndpoint": { - "type": "string" + "channel_id": { + "anyOf": [ + { + "$ref": "#/definitions/Snowflake" + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, "required": [ - "apiEndpoint", - "cdn", - "defaultApiVersion", - "gateway" + "channel_id", + "enabled" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -313887,6 +328562,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -314360,7 +329148,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -314693,6 +329484,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -314975,6 +329772,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -315065,6 +329866,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -315082,6 +329887,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -315100,7 +329906,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -315417,6 +330224,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -316154,24 +330964,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -316210,41 +331002,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -316645,7 +331470,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -316668,6 +331498,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -316718,6 +331549,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -317183,6 +332020,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -317520,6 +332370,29 @@ "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": { @@ -317603,78 +332476,28 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "InstancePingResponse": { + "InstanceDomainsResponse": { "type": "object", "properties": { - "ping": { - "type": "string", - "enum": [ - "pong!" - ] + "cdn": { + "type": "string" }, - "instance": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "description": { - "type": [ - "null", - "string" - ] - }, - "image": { - "type": [ - "null", - "string" - ] - }, - "correspondenceEmail": { - "type": [ - "null", - "string" - ] - }, - "correspondenceUserID": { - "type": [ - "null", - "string" - ] - }, - "frontPage": { - "type": [ - "null", - "string" - ] - }, - "tosPage": { - "type": [ - "null", - "string" - ] - } - }, - "additionalProperties": false, - "required": [ - "correspondenceEmail", - "correspondenceUserID", - "description", - "frontPage", - "id", - "image", - "name", - "tosPage" - ] + "gateway": { + "type": "string" + }, + "defaultApiVersion": { + "type": "string" + }, + "apiEndpoint": { + "type": "string" } }, "additionalProperties": false, "required": [ - "instance", - "ping" + "apiEndpoint", + "cdn", + "defaultApiVersion", + "gateway" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -318157,6 +332980,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -318630,7 +333566,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -318963,6 +333902,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -319245,6 +334190,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -319335,6 +334284,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -319352,6 +334305,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -319370,7 +334324,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -319687,6 +334642,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -320424,24 +335382,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -320480,41 +335420,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -320915,7 +335888,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -320938,6 +335916,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -320988,6 +335967,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -321453,6 +336438,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -321790,6 +336788,29 @@ "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": { @@ -321873,37 +336894,78 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "InstanceStatsResponse": { + "InstancePingResponse": { "type": "object", "properties": { - "counts": { + "ping": { + "type": "string", + "enum": [ + "pong!" + ] + }, + "instance": { "type": "object", "properties": { - "user": { - "type": "integer" + "id": { + "type": "string" }, - "guild": { - "type": "integer" + "name": { + "type": "string" }, - "message": { - "type": "integer" + "description": { + "type": [ + "null", + "string" + ] }, - "members": { - "type": "integer" + "image": { + "type": [ + "null", + "string" + ] + }, + "correspondenceEmail": { + "type": [ + "null", + "string" + ] + }, + "correspondenceUserID": { + "type": [ + "null", + "string" + ] + }, + "frontPage": { + "type": [ + "null", + "string" + ] + }, + "tosPage": { + "type": [ + "null", + "string" + ] } }, "additionalProperties": false, "required": [ - "guild", - "members", - "message", - "user" + "correspondenceEmail", + "correspondenceUserID", + "description", + "frontPage", + "id", + "image", + "name", + "tosPage" ] } }, "additionalProperties": false, "required": [ - "counts" + "instance", + "ping" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -322386,6 +337448,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -322859,7 +338034,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -323192,6 +338370,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -323474,6 +338658,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -323564,6 +338752,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -323581,6 +338773,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -323599,7 +338792,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -323916,6 +339110,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -324653,24 +339850,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -324709,41 +339888,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -325144,7 +340356,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -325167,6 +340384,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -325217,6 +340435,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -325682,6 +340906,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -326019,6 +341256,29 @@ "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": { @@ -326102,43 +341362,37 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "LocationMetadataResponse": { + "InstanceStatsResponse": { "type": "object", "properties": { - "consent_required": { - "type": "boolean" - }, - "country_code": { - "type": "string" - }, - "promotional_email_opt_in": { + "counts": { "type": "object", "properties": { - "required": { - "type": "boolean", - "enum": [ - true - ] + "user": { + "type": "integer" }, - "pre_checked": { - "type": "boolean", - "enum": [ - false - ] + "guild": { + "type": "integer" + }, + "message": { + "type": "integer" + }, + "members": { + "type": "integer" } }, "additionalProperties": false, "required": [ - "pre_checked", - "required" + "guild", + "members", + "message", + "user" ] } }, "additionalProperties": false, "required": [ - "consent_required", - "country_code", - "promotional_email_opt_in" + "counts" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -326621,6 +341875,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -327094,7 +342461,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -327427,6 +342797,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -327709,6 +343085,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -327799,6 +343179,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -327816,6 +343200,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -327834,7 +343219,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -328151,6 +343537,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -328888,24 +344277,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -328944,41 +344315,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -329379,7 +344783,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -329402,6 +344811,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -329452,6 +344862,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -329917,6 +345333,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -330254,6 +345683,29 @@ "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": { @@ -330337,37 +345789,43 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "MemberJoinGuildResponse": { + "LocationMetadataResponse": { "type": "object", "properties": { - "guild": { - "$ref": "#/definitions/Guild" - }, - "emojis": { - "type": "array", - "items": { - "$ref": "#/definitions/Emoji" - } + "consent_required": { + "type": "boolean" }, - "roles": { - "type": "array", - "items": { - "$ref": "#/definitions/Role" - } + "country_code": { + "type": "string" }, - "stickers": { - "type": "array", - "items": { - "$ref": "#/definitions/Sticker" - } + "promotional_email_opt_in": { + "type": "object", + "properties": { + "required": { + "type": "boolean", + "enum": [ + true + ] + }, + "pre_checked": { + "type": "boolean", + "enum": [ + false + ] + } + }, + "additionalProperties": false, + "required": [ + "pre_checked", + "required" + ] } }, "additionalProperties": false, "required": [ - "emojis", - "guild", - "roles", - "stickers" + "consent_required", + "country_code", + "promotional_email_opt_in" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -330850,6 +346308,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -331323,7 +346894,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -331656,6 +347230,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -331938,6 +347518,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -332028,6 +347612,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -332045,6 +347633,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -332063,7 +347652,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -332380,6 +347970,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -333117,24 +348710,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -333173,41 +348748,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -333608,7 +349216,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -333631,6 +349244,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -333681,6 +349295,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -334146,6 +349766,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -334483,6 +350116,29 @@ "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": { @@ -334566,16 +350222,37 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "OAuthAuthorizeResponse": { + "MemberJoinGuildResponse": { "type": "object", "properties": { - "location": { - "type": "string" + "guild": { + "$ref": "#/definitions/Guild" + }, + "emojis": { + "type": "array", + "items": { + "$ref": "#/definitions/Emoji" + } + }, + "roles": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + } + }, + "stickers": { + "type": "array", + "items": { + "$ref": "#/definitions/Sticker" + } } }, "additionalProperties": false, "required": [ - "location" + "emojis", + "guild", + "roles", + "stickers" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -335058,6 +350735,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -335531,7 +351321,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -335864,6 +351657,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -336146,6 +351945,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -336236,6 +352039,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -336253,6 +352060,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -336271,7 +352079,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -336588,6 +352397,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -337325,24 +353137,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -337381,41 +353175,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -337816,7 +353643,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -337839,6 +353671,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -337889,6 +353722,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -338354,6 +354193,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -338691,6 +354543,29 @@ "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": { @@ -338774,44 +354649,16 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "TenorGifResponse": { + "OAuthAuthorizeResponse": { "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": { + "location": { "type": "string" } }, "additionalProperties": false, "required": [ - "gif_src", - "height", - "id", - "preview", - "src", - "title", - "url", - "width" + "location" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -339294,6 +355141,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -339767,7 +355727,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -340100,6 +356063,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -340382,6 +356351,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -340472,6 +356445,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -340489,6 +356466,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -340507,7 +356485,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -340824,6 +356803,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -341561,24 +357543,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -341617,41 +357581,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -342052,7 +358049,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -342075,6 +358077,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -342125,6 +358128,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -342590,6 +358599,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -342927,6 +358949,29 @@ "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": { @@ -343010,56 +359055,44 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "TenorTrendingResponse": { + "TenorGifResponse": { "type": "object", "properties": { - "categories": { - "type": "object", - "properties": { - "tags": { - "type": "array", - "items": { - "type": "object", - "properties": { - "searchterm": { - "type": "string" - }, - "path": { - "type": "string" - }, - "image": { - "type": "string" - }, - "name": { - "type": "string" - } - }, - "additionalProperties": false, - "required": [ - "image", - "name", - "path", - "searchterm" - ] - } - } - }, - "additionalProperties": false, - "required": [ - "tags" - ] + "id": { + "type": "string" }, - "gifs": { - "type": "array", - "items": { - "$ref": "#/definitions/TenorGifResponse" - } + "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": [ - "categories", - "gifs" + "gif_src", + "height", + "id", + "preview", + "src", + "title", + "url", + "width" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -343542,6 +359575,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -344015,7 +360161,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -344348,6 +360497,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -344630,6 +360785,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -344720,6 +360879,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -344737,6 +360900,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -344755,7 +360919,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -345072,6 +361237,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -345809,24 +361977,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -345865,41 +362015,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -346300,7 +362483,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -346323,6 +362511,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -346373,6 +362562,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -346838,6 +363033,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -347175,6 +363383,29 @@ "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": { @@ -347258,11 +363489,57 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "TenorGifsResponse": { - "type": "array", - "items": { - "$ref": "#/definitions/TenorGifResponse" + "TenorTrendingResponse": { + "type": "object", + "properties": { + "categories": { + "type": "object", + "properties": { + "tags": { + "type": "array", + "items": { + "type": "object", + "properties": { + "searchterm": { + "type": "string" + }, + "path": { + "type": "string" + }, + "image": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "image", + "name", + "path", + "searchterm" + ] + } + } + }, + "additionalProperties": false, + "required": [ + "tags" + ] + }, + "gifs": { + "type": "array", + "items": { + "$ref": "#/definitions/TenorGifResponse" + } + } }, + "additionalProperties": false, + "required": [ + "categories", + "gifs" + ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -347744,6 +364021,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -348217,7 +364607,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -348550,6 +364943,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -348832,6 +365231,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -348922,6 +365325,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -348939,6 +365346,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -348957,7 +365365,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -349274,6 +365683,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -350011,24 +366423,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -350067,41 +366461,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -350502,7 +366929,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -350525,6 +366957,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -350575,6 +367008,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -351040,6 +367479,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -351377,6 +367829,29 @@ "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": { @@ -351460,21 +367935,11 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "TokenResponse": { - "type": "object", - "properties": { - "token": { - "type": "string" - }, - "settings": { - "$ref": "#/definitions/UserSettings" - } + "TenorGifsResponse": { + "type": "array", + "items": { + "$ref": "#/definitions/TenorGifResponse" }, - "additionalProperties": false, - "required": [ - "settings", - "token" - ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -351956,6 +368421,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -352429,7 +369007,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -352762,6 +369343,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -353044,6 +369631,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -353134,6 +369725,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -353151,6 +369746,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -353169,7 +369765,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -353486,6 +370083,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -354223,24 +370823,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -354279,41 +370861,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -354714,7 +371329,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -354737,6 +371357,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -354787,6 +371408,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -355252,6 +371879,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -355589,6 +372229,29 @@ "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": { @@ -355672,15 +372335,19 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "TokenOnlyResponse": { + "TokenResponse": { "type": "object", "properties": { "token": { "type": "string" + }, + "settings": { + "$ref": "#/definitions/UserSettings" } }, "additionalProperties": false, "required": [ + "settings", "token" ], "definitions": { @@ -356164,6 +372831,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -356637,7 +373417,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -356970,6 +373753,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -357252,6 +374041,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -357342,6 +374135,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -357359,6 +374156,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -357377,7 +374175,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -357694,6 +374493,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -358431,24 +375233,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -358487,41 +375271,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -358922,7 +375739,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -358945,6 +375767,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -358995,6 +375818,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -359460,6 +376289,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -359797,6 +376639,29 @@ "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": { @@ -359880,22 +376745,15 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "TokenWithBackupCodesResponse": { + "TokenOnlyResponse": { "type": "object", "properties": { "token": { "type": "string" - }, - "backup_codes": { - "type": "array", - "items": { - "$ref": "#/definitions/BackupCode" - } } }, "additionalProperties": false, "required": [ - "backup_codes", "token" ], "definitions": { @@ -360379,6 +377237,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -360852,7 +377823,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -361185,6 +378159,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -361467,6 +378447,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -361557,6 +378541,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -361574,6 +378562,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -361592,7 +378581,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -361909,6 +378899,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -362646,24 +379639,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -362702,41 +379677,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -363137,7 +380145,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -363160,6 +380173,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -363210,6 +380224,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -363675,6 +380695,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -364012,6 +381045,29 @@ "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": { @@ -364095,227 +381151,23 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIGuild": { + "TokenWithBackupCodesResponse": { "type": "object", "properties": { - "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" - } - }, - "_do_validate": { - "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": { + "token": { "type": "string" }, - "widget_enabled": { - "type": "boolean" - }, - "nsfw_level": { - "type": "integer" - }, - "permissions": { - "type": "integer" - }, - "premium_progress_bar_enabled": { - "type": "boolean" - }, - "channel_ordering": { + "backup_codes": { "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/BackupCode" } } }, "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" + "backup_codes", + "token" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -364798,6 +381650,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -365271,7 +382236,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -365604,6 +382572,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -365886,6 +382860,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -365976,6 +382954,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -365993,6 +382975,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -366011,7 +382994,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -366328,6 +383312,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -367065,24 +384052,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -367121,41 +384090,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -367556,7 +384558,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -367579,6 +384586,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -367629,6 +384637,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -368094,6 +385108,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -368431,6 +385458,29 @@ "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": { @@ -368514,8 +385564,228 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIPublicUser": { - "$ref": "#/definitions/PublicUser", + "APIGuild": { + "type": "object", + "properties": { + "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" + } + }, + "_do_validate": { + "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" + ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -368997,6 +386267,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -369470,7 +386853,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -369803,6 +387189,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -370085,6 +387477,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -370175,6 +387571,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -370192,6 +387592,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -370210,7 +387611,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -370527,6 +387929,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -371264,24 +388669,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -371320,41 +388707,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -371755,7 +389175,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -371778,6 +389203,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -371828,6 +389254,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -372293,6 +389725,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -372630,6 +390075,29 @@ "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": { @@ -372713,102 +390181,8 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIPrivateUser": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "flags": { - "type": "integer" - }, - "premium_since": { - "type": "string", - "format": "date-time" - }, - "avatar": { - "type": "string" - }, - "verified": { - "type": "boolean" - }, - "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" - }, - "mfa_enabled": { - "type": "boolean" - }, - "email": { - "type": "string" - }, - "phone": { - "type": "string" - }, - "nsfw_allowed": { - "type": "boolean" - }, - "premium": { - "type": "boolean" - }, - "purchased_flags": { - "type": "integer" - }, - "premium_usage_flags": { - "type": "integer" - }, - "disabled": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "disabled", - "discriminator", - "flags", - "id", - "mfa_enabled", - "nsfw_allowed", - "premium", - "premium_since", - "premium_type", - "premium_usage_flags", - "public_flags", - "purchased_flags", - "username", - "verified" - ], + "APIPublicUser": { + "$ref": "#/definitions/PublicUser", "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -373290,6 +390664,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -373763,7 +391250,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -374096,6 +391586,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -374378,6 +391874,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -374468,6 +391968,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -374485,6 +391989,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -374503,7 +392008,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -374820,6 +392326,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -375557,24 +393066,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -375613,41 +393104,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -376048,7 +393572,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -376071,6 +393600,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -376121,6 +393651,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -376586,6 +394122,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -376923,6 +394472,29 @@ "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": { @@ -377006,11 +394578,108 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIGuildArray": { - "type": "array", - "items": { - "$ref": "#/definitions/APIGuild" + "APIPrivateUser": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "flags": { + "type": "integer" + }, + "premium_since": { + "type": "string", + "format": "date-time" + }, + "avatar": { + "type": "string" + }, + "verified": { + "type": "boolean" + }, + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { + "type": "boolean" + }, + "premium_type": { + "type": "integer" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, + "mfa_enabled": { + "type": "boolean" + }, + "email": { + "type": "string" + }, + "phone": { + "type": "string" + }, + "nsfw_allowed": { + "type": "boolean" + }, + "premium": { + "type": "boolean" + }, + "purchased_flags": { + "type": "integer" + }, + "premium_usage_flags": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "disabled", + "discriminator", + "flags", + "id", + "mfa_enabled", + "nsfw_allowed", + "premium", + "premium_since", + "premium_type", + "premium_usage_flags", + "public_flags", + "purchased_flags", + "username", + "verified" + ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -377492,6 +395161,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -377965,7 +395747,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -378298,6 +396083,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -378580,6 +396371,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -378670,6 +396465,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -378687,6 +396486,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -378705,7 +396505,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -379022,6 +396823,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -379759,24 +397563,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -379815,41 +397601,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -380250,7 +398069,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -380273,6 +398097,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -380323,6 +398148,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -380788,6 +398619,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -381125,6 +398969,29 @@ "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": { @@ -381208,10 +399075,10 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIDMChannelArray": { + "APIGuildArray": { "type": "array", "items": { - "$ref": "#/definitions/DmChannelDTO" + "$ref": "#/definitions/APIGuild" }, "definitions": { "ChannelPermissionOverwriteType": { @@ -381694,6 +399561,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -382167,7 +400147,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -382500,6 +400483,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -382782,6 +400771,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -382872,6 +400865,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -382889,6 +400886,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -382907,7 +400905,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -383224,6 +401223,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -383961,24 +401963,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -384017,41 +402001,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -384452,7 +402469,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -384475,6 +402497,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -384525,6 +402548,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -384990,6 +403019,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -385327,6 +403369,29 @@ "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": { @@ -385410,10 +403475,10 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIBackupCodeArray": { + "APIDMChannelArray": { "type": "array", "items": { - "$ref": "#/definitions/BackupCode" + "$ref": "#/definitions/DmChannelDTO" }, "definitions": { "ChannelPermissionOverwriteType": { @@ -385896,6 +403961,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -386369,7 +404547,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -386702,6 +404883,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -386984,6 +405171,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -387074,6 +405265,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -387091,6 +405286,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -387109,7 +405305,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -387426,6 +405623,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -388163,24 +406363,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -388219,41 +406401,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -388654,7 +406869,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -388677,6 +406897,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -388727,6 +406948,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -389192,6 +407419,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -389529,6 +407769,29 @@ "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": { @@ -389612,105 +407875,11 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "UserUpdateResponse": { - "type": "object", - "properties": { - "newToken": { - "type": "string" - }, - "id": { - "type": "string" - }, - "flags": { - "type": "integer" - }, - "premium_since": { - "type": "string", - "format": "date-time" - }, - "avatar": { - "type": "string" - }, - "verified": { - "type": "boolean" - }, - "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" - }, - "mfa_enabled": { - "type": "boolean" - }, - "email": { - "type": "string" - }, - "phone": { - "type": "string" - }, - "nsfw_allowed": { - "type": "boolean" - }, - "premium": { - "type": "boolean" - }, - "purchased_flags": { - "type": "integer" - }, - "premium_usage_flags": { - "type": "integer" - }, - "disabled": { - "type": "boolean" - } + "APIBackupCodeArray": { + "type": "array", + "items": { + "$ref": "#/definitions/BackupCode" }, - "additionalProperties": false, - "required": [ - "bio", - "bot", - "disabled", - "discriminator", - "flags", - "id", - "mfa_enabled", - "nsfw_allowed", - "premium", - "premium_since", - "premium_type", - "premium_usage_flags", - "public_flags", - "purchased_flags", - "username", - "verified" - ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -390192,6 +408361,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -390665,7 +408947,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -390998,6 +409283,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -391280,6 +409571,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -391370,6 +409665,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -391387,6 +409686,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -391405,7 +409705,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -391722,6 +410023,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -392459,24 +410763,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -392515,41 +410801,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -392950,7 +411269,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -392973,6 +411297,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -393023,6 +411348,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -393488,6 +411819,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -393825,6 +412169,29 @@ "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": { @@ -393908,9 +412275,111 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "ApplicationDetectableResponse": { - "type": "array", - "items": {}, + "UserUpdateResponse": { + "type": "object", + "properties": { + "newToken": { + "type": "string" + }, + "id": { + "type": "string" + }, + "flags": { + "type": "integer" + }, + "premium_since": { + "type": "string", + "format": "date-time" + }, + "avatar": { + "type": "string" + }, + "verified": { + "type": "boolean" + }, + "username": { + "type": "string" + }, + "discriminator": { + "type": "string" + }, + "public_flags": { + "type": "integer" + }, + "accent_color": { + "type": "integer" + }, + "banner": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "bot": { + "type": "boolean" + }, + "premium_type": { + "type": "integer" + }, + "theme_colors": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pronouns": { + "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, + "mfa_enabled": { + "type": "boolean" + }, + "email": { + "type": "string" + }, + "phone": { + "type": "string" + }, + "nsfw_allowed": { + "type": "boolean" + }, + "premium": { + "type": "boolean" + }, + "purchased_flags": { + "type": "integer" + }, + "premium_usage_flags": { + "type": "integer" + }, + "disabled": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "bio", + "bot", + "disabled", + "discriminator", + "flags", + "id", + "mfa_enabled", + "nsfw_allowed", + "premium", + "premium_since", + "premium_type", + "premium_usage_flags", + "public_flags", + "purchased_flags", + "username", + "verified" + ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -394392,6 +412861,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -394865,7 +413447,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -395198,6 +413783,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -395480,6 +414071,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -395570,6 +414165,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -395587,6 +414186,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -395605,7 +414205,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -395922,6 +414523,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -396659,24 +415263,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -396715,41 +415301,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -397150,7 +415769,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -397173,6 +415797,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -397223,6 +415848,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -397688,6 +416319,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -398025,6 +416669,29 @@ "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": { @@ -398108,7 +416775,7 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "ApplicationEntitlementsResponse": { + "ApplicationDetectableResponse": { "type": "array", "items": {}, "definitions": { @@ -398592,6 +417259,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -399065,7 +417845,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -399398,6 +418181,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -399680,6 +418469,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -399770,6 +418563,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -399787,6 +418584,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -399805,7 +418603,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -400122,6 +418921,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -400859,24 +419661,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -400915,41 +419699,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -401350,7 +420167,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -401373,6 +420195,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -401423,6 +420246,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -401888,6 +420717,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -402225,6 +421067,29 @@ "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": { @@ -402308,7 +421173,7 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "ApplicationSkusResponse": { + "ApplicationEntitlementsResponse": { "type": "array", "items": {}, "definitions": { @@ -402792,6 +421657,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -403265,7 +422243,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -403598,6 +422579,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -403880,6 +422867,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -403970,6 +422961,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -403987,6 +422982,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -404005,7 +423001,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -404322,6 +423319,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -405059,24 +424059,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -405115,41 +424097,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -405550,7 +424565,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -405573,6 +424593,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -405623,6 +424644,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -406088,6 +425115,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -406425,6 +425465,29 @@ "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": { @@ -406508,11 +425571,9 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIApplicationArray": { + "ApplicationSkusResponse": { "type": "array", - "items": { - "$ref": "#/definitions/Application" - }, + "items": {}, "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -406994,6 +426055,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -407467,7 +426641,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -407800,6 +426977,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -408082,6 +427265,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -408172,6 +427359,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -408189,6 +427380,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -408207,7 +427399,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -408524,6 +427717,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -409261,24 +428457,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -409317,41 +428495,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -409752,7 +428963,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -409775,6 +428991,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -409825,6 +429042,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -410290,6 +429513,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -410627,6 +429863,29 @@ "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": { @@ -410710,10 +429969,10 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIInviteArray": { + "APIApplicationArray": { "type": "array", "items": { - "$ref": "#/definitions/Invite" + "$ref": "#/definitions/Application" }, "definitions": { "ChannelPermissionOverwriteType": { @@ -411196,6 +430455,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -411669,7 +431041,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -412002,6 +431377,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -412284,6 +431665,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -412374,6 +431759,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -412391,6 +431780,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -412409,7 +431799,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -412726,6 +432117,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -413463,24 +432857,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -413519,41 +432895,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -413954,7 +433363,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -413977,6 +433391,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -414027,6 +433442,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -414492,6 +433913,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -414829,6 +434263,29 @@ "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": { @@ -414912,10 +434369,10 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIMessageArray": { + "APIInviteArray": { "type": "array", "items": { - "$ref": "#/definitions/Message" + "$ref": "#/definitions/Invite" }, "definitions": { "ChannelPermissionOverwriteType": { @@ -415398,6 +434855,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -415871,7 +435441,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -416204,6 +435777,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -416486,6 +436065,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -416576,6 +436159,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -416593,6 +436180,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -416611,7 +436199,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -416928,6 +436517,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -417665,24 +437257,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -417721,41 +437295,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -418156,7 +437763,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -418179,6 +437791,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -418229,6 +437842,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -418694,6 +438313,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -419031,6 +438663,29 @@ "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": { @@ -419114,10 +438769,10 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIWebhookArray": { + "APIMessageArray": { "type": "array", "items": { - "$ref": "#/definitions/Webhook" + "$ref": "#/definitions/Message" }, "definitions": { "ChannelPermissionOverwriteType": { @@ -419600,6 +439255,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -420073,7 +439841,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -420406,6 +440177,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -420688,6 +440465,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -420778,6 +440559,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -420795,6 +440580,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -420813,7 +440599,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -421130,6 +440917,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -421867,24 +441657,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -421923,41 +441695,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -422358,7 +442163,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -422381,6 +442191,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -422431,6 +442242,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -422896,6 +442713,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -423233,6 +443063,29 @@ "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": { @@ -423316,10 +443169,10 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIDiscoveryCategoryArray": { + "APIWebhookArray": { "type": "array", "items": { - "$ref": "#/definitions/Categories" + "$ref": "#/definitions/Webhook" }, "definitions": { "ChannelPermissionOverwriteType": { @@ -423802,6 +443655,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -424275,7 +444241,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -424608,6 +444577,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -424890,6 +444865,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -424980,6 +444959,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -424997,6 +444980,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -425015,7 +444999,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -425332,6 +445317,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -426069,24 +446057,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -426125,41 +446095,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -426560,7 +446563,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -426583,6 +446591,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -426633,6 +446642,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -427098,6 +447113,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -427435,6 +447463,29 @@ "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": { @@ -427518,75 +447569,11 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIGeneralConfiguration": { - "type": "object", - "properties": { - "instanceName": { - "type": "string", - "default": "Spacebar Instance" - }, - "instanceDescription": { - "type": [ - "null", - "string" - ], - "default": "This is a Spacebar instance made in the pre-release days" - }, - "frontPage": { - "type": [ - "null", - "string" - ], - "default": null - }, - "tosPage": { - "type": [ - "null", - "string" - ], - "default": null - }, - "correspondenceEmail": { - "type": [ - "null", - "string" - ], - "default": null - }, - "correspondenceUserID": { - "type": [ - "null", - "string" - ], - "default": null - }, - "image": { - "type": [ - "null", - "string" - ], - "default": null - }, - "instanceId": { - "type": "string" - }, - "autoCreateBotUsers": { - "type": "boolean", - "default": false - } + "APIDiscoveryCategoryArray": { + "type": "array", + "items": { + "$ref": "#/definitions/Categories" }, - "additionalProperties": false, - "required": [ - "autoCreateBotUsers", - "correspondenceEmail", - "correspondenceUserID", - "frontPage", - "image", - "instanceDescription", - "instanceId", - "instanceName", - "tosPage" - ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -428068,6 +448055,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -428541,7 +448641,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -428874,6 +448977,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -429156,6 +449265,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -429246,6 +449359,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -429263,6 +449380,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -429281,7 +449399,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -429598,6 +449717,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -430335,24 +450457,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -430391,41 +450495,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -430826,7 +450963,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -430849,6 +450991,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -430899,6 +451042,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -431364,6 +451513,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -431701,6 +451863,29 @@ "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": { @@ -431784,11 +451969,75 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIChannelArray": { - "type": "array", - "items": { - "$ref": "#/definitions/Channel" + "APIGeneralConfiguration": { + "type": "object", + "properties": { + "instanceName": { + "type": "string", + "default": "Spacebar Instance" + }, + "instanceDescription": { + "type": [ + "null", + "string" + ], + "default": "This is a Spacebar instance made in the pre-release days" + }, + "frontPage": { + "type": [ + "null", + "string" + ], + "default": null + }, + "tosPage": { + "type": [ + "null", + "string" + ], + "default": null + }, + "correspondenceEmail": { + "type": [ + "null", + "string" + ], + "default": null + }, + "correspondenceUserID": { + "type": [ + "null", + "string" + ], + "default": null + }, + "image": { + "type": [ + "null", + "string" + ], + "default": null + }, + "instanceId": { + "type": "string" + }, + "autoCreateBotUsers": { + "type": "boolean", + "default": false + } }, + "additionalProperties": false, + "required": [ + "autoCreateBotUsers", + "correspondenceEmail", + "correspondenceUserID", + "frontPage", + "image", + "instanceDescription", + "instanceId", + "instanceName", + "tosPage" + ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -432270,6 +452519,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -432743,7 +453105,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -433076,6 +453441,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -433358,6 +453729,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -433448,6 +453823,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -433465,6 +453844,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -433483,7 +453863,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -433800,6 +454181,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -434537,24 +454921,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -434593,41 +454959,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -435028,7 +455427,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -435051,6 +455455,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -435101,6 +455506,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -435566,6 +455977,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -435903,6 +456327,29 @@ "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": { @@ -435986,10 +456433,10 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIEmojiArray": { + "APIChannelArray": { "type": "array", "items": { - "$ref": "#/definitions/Emoji" + "$ref": "#/definitions/Channel" }, "definitions": { "ChannelPermissionOverwriteType": { @@ -436472,6 +456919,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -436945,7 +457505,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -437278,6 +457841,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -437560,6 +458129,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -437650,6 +458223,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -437667,6 +458244,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -437685,7 +458263,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -438002,6 +458581,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -438739,24 +459321,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -438795,41 +459359,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -439230,7 +459827,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -439253,6 +459855,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -439303,6 +459906,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -439768,6 +460377,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -440105,6 +460727,29 @@ "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": { @@ -440188,10 +460833,10 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIMemberArray": { + "APIEmojiArray": { "type": "array", "items": { - "$ref": "#/definitions/Member" + "$ref": "#/definitions/Emoji" }, "definitions": { "ChannelPermissionOverwriteType": { @@ -440674,6 +461319,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -441147,7 +461905,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -441480,6 +462241,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -441762,6 +462529,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -441852,6 +462623,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -441869,6 +462644,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -441887,7 +462663,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -442204,6 +462981,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -442941,24 +463721,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -442997,41 +463759,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -443432,7 +464227,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -443455,6 +464255,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -443505,6 +464306,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -443970,6 +464777,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -444307,6 +465127,29 @@ "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": { @@ -444390,58 +465233,11 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIPublicMember": { - "additionalProperties": false, - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "guild_id": { - "type": "string" - }, - "nick": { - "type": "string" - }, - "joined_at": { - "type": "string", - "format": "date-time" - }, - "pending": { - "type": "boolean" - }, - "deaf": { - "type": "boolean" - }, - "mute": { - "type": "boolean" - }, - "premium_since": { - "type": "integer" - }, - "avatar": { - "type": "string" - }, - "user": { - "$ref": "#/definitions/PublicUser" - }, - "roles": { - "type": "array", - "items": { - "type": "string" - } - } + "APIMemberArray": { + "type": "array", + "items": { + "$ref": "#/definitions/Member" }, - "required": [ - "deaf", - "guild_id", - "id", - "joined_at", - "mute", - "pending", - "roles", - "user" - ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -444923,6 +465719,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -445396,7 +466305,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -445729,6 +466641,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -446011,6 +466929,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -446101,6 +467023,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -446118,6 +467044,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -446136,7 +467063,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -446453,6 +467381,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -447190,24 +468121,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -447246,41 +468159,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -447681,7 +468627,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -447704,6 +468655,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -447754,6 +468706,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -448219,6 +469177,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -448556,6 +469527,29 @@ "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": { @@ -448639,246 +469633,57 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIGuildWithJoinedAt": { + "APIPublicMember": { + "additionalProperties": false, "type": "object", "properties": { - "joined_at": { - "type": "string" - }, - "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": { + "id": { "type": "string" }, - "splash": { + "guild_id": { "type": "string" }, - "system_channel_id": { + "nick": { "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" + "joined_at": { + "type": "string", + "format": "date-time" }, - "widget_channel_id": { - "type": "string" + "pending": { + "type": "boolean" }, - "widget_channel": { - "$ref": "#/definitions/Channel" + "deaf": { + "type": "boolean" }, - "widget_enabled": { - "type": "boolean", - "default": true + "mute": { + "type": "boolean" }, - "nsfw_level": { + "premium_since": { "type": "integer" }, - "nsfw": { - "type": "boolean", - "default": false - }, - "parent": { + "avatar": { "type": "string" }, - "permissions": { - "type": "integer" - }, - "premium_progress_bar_enabled": { - "type": "boolean", - "default": false + "user": { + "$ref": "#/definitions/PublicUser" }, - "channel_ordering": { + "roles": { "type": "array", "items": { "type": "string" } - }, - "id": { - "type": "string" } }, - "additionalProperties": false, "required": [ - "bans", - "channel_ordering", - "channels", - "emojis", - "features", + "deaf", + "guild_id", "id", - "invites", "joined_at", - "members", - "name", - "nsfw", - "premium_progress_bar_enabled", - "public_updates_channel_id", + "mute", + "pending", "roles", - "stickers", - "template", - "unavailable", - "voice_states", - "webhooks", - "welcome_screen", - "widget_enabled" + "user" ], "definitions": { "ChannelPermissionOverwriteType": { @@ -449361,6 +470166,9155 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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" + ] + }, + "status": { + "$ref": "#/definitions/Status" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "activities", + "client_info", + "id", + "session_id", + "status", + "user", + "user_id" + ] + }, + "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_1" + } + }, + "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/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" + }, + "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" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "application", + "application_id", + "channel", + "channel_id", + "guild", + "guild_id", + "id", + "source_guild", + "source_guild_id", + "type", + "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_1": { + "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_1" + } + }, + "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/MessageComponent" + } + }, + "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" + ] + }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + } + }, + "additionalProperties": false + }, + "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": { + "name": { + "type": "string" + }, + "reload": { + "description": "Reloads entity data from the database.", + "type": "object", + "additionalProperties": false + }, + "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" + } + }, + "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 + } + }, + "additionalProperties": false, + "required": [ + "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 + }, + "maxChannelsInCategory": { + "type": "integer", + "default": 65535 + } + }, + "additionalProperties": false, + "required": [ + "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#" + }, + "APIGuildWithJoinedAt": { + "type": "object", + "properties": { + "joined_at": { + "type": "string" + }, + "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", + "joined_at", + "members", + "name", + "nsfw", + "premium_progress_bar_enabled", + "public_updates_channel_id", + "roles", + "stickers", + "template", + "unavailable", + "voice_states", + "webhooks", + "welcome_screen", + "widget_enabled" + ], + "definitions": { + "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 + }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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" + ] + }, + "status": { + "$ref": "#/definitions/Status" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "activities", + "client_info", + "id", + "session_id", + "status", + "user", + "user_id" + ] + }, + "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_1" + } + }, + "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/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" + }, + "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" + }, + "id": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "application", + "application_id", + "channel", + "channel_id", + "guild", + "guild_id", + "id", + "source_guild", + "source_guild_id", + "type", + "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_1": { + "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_1" + } + }, + "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/MessageComponent" + } + }, + "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" + ] + }, + "ClientStatus": { + "type": "object", + "properties": { + "desktop": { + "type": "string" + }, + "mobile": { + "type": "string" + }, + "web": { + "type": "string" + } + }, + "additionalProperties": false + }, + "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": { + "name": { + "type": "string" + }, + "reload": { + "description": "Reloads entity data from the database.", + "type": "object", + "additionalProperties": false + }, + "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" + } + }, + "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 + } + }, + "additionalProperties": false, + "required": [ + "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 + }, + "maxChannelsInCategory": { + "type": "integer", + "default": 65535 + } + }, + "additionalProperties": false, + "required": [ + "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#" + }, + "APIRoleArray": { + "type": "array", + "items": { + "$ref": "#/definitions/Role" + }, + "definitions": { + "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 + }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -449834,7 +479788,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -450167,6 +480124,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -450449,6 +480412,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -450539,6 +480506,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -450556,6 +480527,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -450574,7 +480546,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -450891,6 +480864,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -451628,24 +481604,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -451684,41 +481642,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -452119,7 +482110,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -452142,6 +482138,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -452192,6 +482189,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -452657,6 +482660,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -452994,6 +483010,29 @@ "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": { @@ -453077,10 +483116,10 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIRoleArray": { + "APIStickerArray": { "type": "array", "items": { - "$ref": "#/definitions/Role" + "$ref": "#/definitions/Sticker" }, "definitions": { "ChannelPermissionOverwriteType": { @@ -453563,6 +483602,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -454036,7 +484188,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -454369,6 +484524,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -454651,6 +484812,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -454741,6 +484906,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -454758,6 +484927,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -454776,7 +484946,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -455093,6 +485264,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -455830,24 +486004,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -455886,41 +486042,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -456321,7 +486510,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -456344,6 +486538,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -456394,6 +486589,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -456859,6 +487060,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -457196,6 +487410,29 @@ "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": { @@ -457279,10 +487516,10 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIStickerArray": { + "APITemplateArray": { "type": "array", "items": { - "$ref": "#/definitions/Sticker" + "$ref": "#/definitions/Template" }, "definitions": { "ChannelPermissionOverwriteType": { @@ -457765,6 +488002,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -458238,7 +488588,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -458571,6 +488924,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -458853,6 +489212,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -458943,6 +489306,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -458960,6 +489327,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -458978,7 +489346,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -459295,6 +489664,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -460032,24 +490404,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -460088,41 +490442,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -460523,7 +490910,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -460546,6 +490938,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -460596,6 +490989,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -461061,6 +491460,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -461398,6 +491810,29 @@ "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": { @@ -461481,10 +491916,10 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APITemplateArray": { + "APIGuildVoiceRegion": { "type": "array", "items": { - "$ref": "#/definitions/Template" + "$ref": "#/definitions/GuildVoiceRegion" }, "definitions": { "ChannelPermissionOverwriteType": { @@ -461967,6 +492402,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -462440,7 +492988,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -462773,6 +493324,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -463055,6 +493612,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -463145,6 +493706,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -463162,6 +493727,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -463180,7 +493746,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -463497,6 +494064,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -464234,24 +494804,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -464290,41 +494842,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -464725,7 +495310,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -464748,6 +495338,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -464798,6 +495389,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -465263,6 +495860,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -465600,6 +496210,29 @@ "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": { @@ -465683,11 +496316,37 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIGuildVoiceRegion": { - "type": "array", - "items": { - "$ref": "#/definitions/GuildVoiceRegion" + "APILimitsConfiguration": { + "type": "object", + "properties": { + "user": { + "$ref": "#/definitions/UserLimits" + }, + "guild": { + "$ref": "#/definitions/GuildLimits" + }, + "message": { + "$ref": "#/definitions/MessageLimits" + }, + "channel": { + "$ref": "#/definitions/ChannelLimits" + }, + "rate": { + "$ref": "#/definitions/RateLimits" + }, + "absoluteRate": { + "$ref": "#/definitions/GlobalRateLimits" + } }, + "additionalProperties": false, + "required": [ + "absoluteRate", + "channel", + "guild", + "message", + "rate", + "user" + ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -466169,6 +496828,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -466642,7 +497414,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -466975,6 +497750,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -467257,6 +498038,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -467347,6 +498132,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -467364,6 +498153,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -467382,7 +498172,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -467699,6 +498490,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -468436,24 +499230,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -468492,41 +499268,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -468927,7 +499736,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -468950,6 +499764,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -469000,6 +499815,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -469465,6 +500286,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -469802,6 +500636,29 @@ "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": { @@ -469885,37 +500742,11 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APILimitsConfiguration": { - "type": "object", - "properties": { - "user": { - "$ref": "#/definitions/UserLimits" - }, - "guild": { - "$ref": "#/definitions/GuildLimits" - }, - "message": { - "$ref": "#/definitions/MessageLimits" - }, - "channel": { - "$ref": "#/definitions/ChannelLimits" - }, - "rate": { - "$ref": "#/definitions/RateLimits" - }, - "absoluteRate": { - "$ref": "#/definitions/GlobalRateLimits" - } + "APIStickerPackArray": { + "type": "array", + "items": { + "$ref": "#/definitions/StickerPack" }, - "additionalProperties": false, - "required": [ - "absoluteRate", - "channel", - "guild", - "message", - "rate", - "user" - ], "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -470397,6 +501228,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -470870,7 +501814,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -471203,6 +502150,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -471485,6 +502438,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -471575,6 +502532,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -471592,6 +502553,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -471610,7 +502572,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -471927,6 +502890,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -472664,24 +503630,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -472720,41 +503668,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -473155,7 +504136,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -473178,6 +504164,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -473228,6 +504215,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -473693,6 +504686,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -474030,6 +505036,29 @@ "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": { @@ -474113,11 +505142,9 @@ }, "$schema": "http://json-schema.org/draft-07/schema#" }, - "APIStickerPackArray": { - "type": "array", - "items": { - "$ref": "#/definitions/StickerPack" - }, + "APIConnectionsConfiguration": { + "type": "object", + "additionalProperties": false, "definitions": { "ChannelPermissionOverwriteType": { "enum": [ @@ -474599,6 +505626,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -475072,7 +506212,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -475405,6 +506548,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -475687,6 +506836,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -475777,6 +506930,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -475794,6 +506951,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -475812,7 +506970,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -476129,6 +507288,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -476866,24 +508028,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -476922,41 +508066,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -477357,7 +508534,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -477380,6 +508562,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -477430,6 +508613,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -477895,6 +509084,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -478232,6 +509434,29 @@ "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": { @@ -478822,6 +510047,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -479295,7 +510633,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -479628,6 +510969,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -479910,6 +511257,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -480000,6 +511351,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -480017,6 +511372,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -480035,7 +511391,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -480352,6 +511709,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -481089,24 +512449,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -481145,41 +512487,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -481580,7 +512955,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -481603,6 +512983,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -481653,6 +513034,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -482118,6 +513505,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -482455,6 +513855,29 @@ "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": { @@ -483038,6 +514461,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -483511,7 +515047,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -483844,6 +515383,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -484126,6 +515671,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -484216,6 +515765,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -484233,6 +515786,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -484251,7 +515805,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -484568,6 +516123,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -485305,24 +516863,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -485361,41 +516901,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -485796,7 +517369,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -485819,6 +517397,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -485869,6 +517448,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -486334,6 +517919,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -486671,6 +518269,29 @@ "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": { @@ -486874,10 +518495,17 @@ "bio", "guild_id" ] + }, + "badges": { + "type": "array", + "items": { + "$ref": "#/definitions/Badge" + } } }, "additionalProperties": false, "required": [ + "badges", "connected_accounts", "mutual_guilds", "premium_type", @@ -487366,6 +518994,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -487839,7 +519580,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -488172,6 +519916,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -488454,6 +520204,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -488544,6 +520298,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -488561,6 +520319,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -488579,7 +520338,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -488896,6 +520656,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -489633,24 +521396,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -489689,41 +521434,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -490124,7 +521902,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -490147,6 +521930,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -490197,6 +521981,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -490662,6 +522452,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -490999,6 +522802,29 @@ "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": { @@ -491592,6 +523418,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -492065,7 +524004,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -492398,6 +524340,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -492680,6 +524628,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -492770,6 +524722,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -492787,6 +524743,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -492805,7 +524762,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -493122,6 +525080,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -493859,24 +525820,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -493915,41 +525858,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -494350,7 +526326,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -494373,6 +526354,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -494423,6 +526405,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -494888,6 +526876,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -495225,6 +527226,29 @@ "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": { @@ -495812,6 +527836,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -496285,7 +528422,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -496618,6 +528758,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -496900,6 +529046,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -496990,6 +529140,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -497007,6 +529161,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -497025,7 +529180,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -497342,6 +529498,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -498079,24 +530238,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -498135,41 +530276,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -498570,7 +530744,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -498593,6 +530772,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -498643,6 +530823,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -499108,6 +531294,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -499445,6 +531644,29 @@ "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": { @@ -500024,6 +532246,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -500497,7 +532832,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -500830,6 +533168,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -501112,6 +533456,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -501202,6 +533550,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -501219,6 +533571,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -501237,7 +533590,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -501554,6 +533908,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -502291,24 +534648,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -502347,41 +534686,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -502782,7 +535154,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -502805,6 +535182,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -502855,6 +535233,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -503320,6 +535704,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -503657,6 +536054,29 @@ "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": { @@ -504236,6 +536656,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -504709,7 +537242,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -505042,6 +537578,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -505324,6 +537866,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -505414,6 +537960,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -505431,6 +537981,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -505449,7 +538000,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -505766,6 +538318,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -506503,24 +539058,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -506559,41 +539096,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -506994,7 +539564,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -507017,6 +539592,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -507067,6 +539643,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -507532,6 +540114,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -507869,6 +540464,29 @@ "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": { @@ -508435,6 +541053,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -508908,7 +541639,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -509241,6 +541975,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -509523,6 +542263,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -509613,6 +542357,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -509630,6 +542378,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -509648,7 +542397,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -509965,6 +542715,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -510702,24 +543455,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -510758,41 +543493,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -511193,7 +543961,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -511216,6 +543989,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -511266,6 +544040,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -511731,6 +544511,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -512068,6 +544861,29 @@ "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": { @@ -512649,6 +545465,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -513122,7 +546051,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -513455,6 +546387,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -513737,6 +546675,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -513827,6 +546769,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -513844,6 +546790,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -513862,7 +546809,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -514179,6 +547127,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -514916,24 +547867,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -514972,41 +547905,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -515407,7 +548373,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -515430,6 +548401,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -515480,6 +548452,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -515945,6 +548923,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -516282,6 +549273,29 @@ "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": { @@ -516860,6 +549874,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -517333,7 +550460,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -517666,6 +550796,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -517948,6 +551084,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -518038,6 +551178,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -518055,6 +551199,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -518073,7 +551218,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -518390,6 +551536,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -519127,24 +552276,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -519183,41 +552314,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -519618,7 +552782,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -519641,6 +552810,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -519691,6 +552861,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -520156,6 +553332,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -520493,6 +553682,29 @@ "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": { @@ -521086,6 +554298,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -521559,7 +554884,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -521892,6 +555220,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -522174,6 +555508,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -522264,6 +555602,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -522281,6 +555623,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -522299,7 +555642,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -522616,6 +555960,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -523353,24 +556700,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -523409,41 +556738,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -523844,7 +557206,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -523867,6 +557234,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -523917,6 +557285,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -524382,6 +557756,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -524719,6 +558106,29 @@ "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": { @@ -525316,6 +558726,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -525789,7 +559312,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -526122,6 +559648,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -526404,6 +559936,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -526494,6 +560030,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -526511,6 +560051,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -526529,7 +560070,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -526846,6 +560388,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -527583,24 +561128,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -527639,41 +561166,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -528074,7 +561634,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -528097,6 +561662,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -528147,6 +561713,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -528612,6 +562184,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -528949,6 +562534,29 @@ "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": { @@ -529525,6 +563133,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -529998,7 +563719,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -530331,6 +564055,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -530613,6 +564343,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -530703,6 +564437,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -530720,6 +564458,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -530738,7 +564477,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -531055,6 +564795,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -531792,24 +565535,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -531848,41 +565573,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -532283,7 +566041,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -532306,6 +566069,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -532356,6 +566120,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -532821,6 +566591,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -533158,6 +566941,29 @@ "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": { @@ -533733,6 +567539,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -534206,7 +568125,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -534539,6 +568461,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -534821,6 +568749,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -534911,6 +568843,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -534928,6 +568864,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -534946,7 +568883,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -535263,6 +569201,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -536000,24 +569941,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -536056,41 +569979,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" - }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" + "question": { + "$ref": "#/definitions/PollMedia" }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -536491,7 +570447,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -536514,6 +570475,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -536564,6 +570526,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -537029,6 +570997,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -537366,6 +571347,29 @@ "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": { @@ -537941,6 +571945,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -538414,7 +572531,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -538747,6 +572867,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -539029,6 +573155,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -539119,6 +573249,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -539136,6 +573270,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -539154,7 +573289,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -539471,6 +573607,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -540208,24 +574347,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -540264,41 +574385,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -540699,7 +574853,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -540722,6 +574881,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -540772,6 +574932,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -541237,6 +575403,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -541574,6 +575753,29 @@ "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": { @@ -542155,6 +576357,119 @@ }, "additionalProperties": false }, + "MessageComponent": { + "type": "object", + "properties": { + "type": { + "type": "integer" + }, + "style": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "emoji": { + "$ref": "#/definitions/PartialEmoji" + }, + "custom_id": { + "type": "string" + }, + "sku_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "disabled": { + "type": "boolean" + }, + "components": { + "type": "array", + "items": { + "$ref": "#/definitions/MessageComponent" + } + } + }, + "additionalProperties": false, + "required": [ + "components", + "type" + ] + }, + "PartialEmoji": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "animated": { + "type": "boolean" + } + }, + "additionalProperties": false, + "required": [ + "name" + ] + }, + "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": { @@ -542628,7 +576943,10 @@ "$ref": "#/definitions/Guild" }, "parent_id": { - "type": "string" + "type": [ + "null", + "string" + ] }, "parent": { "$ref": "#/definitions/Channel" @@ -542961,6 +577279,12 @@ "$ref": "#/definitions/SecurityKey" } }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } + }, "id": { "type": "string" } @@ -543243,6 +577567,10 @@ "type": "integer", "default": 0 }, + "friend_discovery_flags": { + "type": "integer", + "default": 0 + }, "friend_source_flags": { "$ref": "#/definitions/FriendSourceFlags" }, @@ -543333,6 +577661,10 @@ "timezone_offset": { "type": "integer", "default": 0 + }, + "view_nsfw_guilds": { + "type": "boolean", + "default": true } }, "additionalProperties": false, @@ -543350,6 +577682,7 @@ "disable_games_tab", "enable_tts_command", "explicit_content_filter", + "friend_discovery_flags", "friend_source_flags", "gateway_connected", "gif_auto_play", @@ -543368,7 +577701,8 @@ "status", "stream_notifications_enabled", "theme", - "timezone_offset" + "timezone_offset", + "view_nsfw_guilds" ] }, "SecurityKey": { @@ -543685,6 +578019,9 @@ "$ref": "#/definitions/MessageComponent" } }, + "poll": { + "$ref": "#/definitions/Poll" + }, "id": { "type": "string" } @@ -544422,24 +578759,6 @@ "user_ids" ] }, - "PartialEmoji": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "animated": { - "type": "boolean" - } - }, - "additionalProperties": false, - "required": [ - "name" - ] - }, "MessageType": { "enum": [ 0, @@ -544478,41 +578797,74 @@ ], "type": "number" }, - "MessageComponent": { + "Poll": { "type": "object", "properties": { - "type": { - "type": "integer" + "question": { + "$ref": "#/definitions/PollMedia" }, - "style": { - "type": "integer" - }, - "label": { - "type": "string" - }, - "emoji": { - "$ref": "#/definitions/PartialEmoji" + "answers": { + "type": "array", + "items": { + "$ref": "#/definitions/PollAnswer" + } }, - "custom_id": { - "type": "string" + "expiry": { + "type": "string", + "format": "date-time" }, - "url": { - "type": "string" + "allow_multiselect": { + "type": "boolean" }, - "disabled": { + "results": { + "$ref": "#/definitions/PollResult" + } + }, + "additionalProperties": false, + "required": [ + "allow_multiselect", + "answers", + "expiry", + "question" + ] + }, + "PollResult": { + "type": "object", + "properties": { + "is_finalized": { "type": "boolean" }, - "components": { + "answer_counts": { "type": "array", "items": { - "$ref": "#/definitions/MessageComponent" + "$ref": "#/definitions/PollAnswerCount" } } }, "additionalProperties": false, "required": [ - "components", - "type" + "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": { @@ -544913,7 +579265,12 @@ }, "components": { "type": "array", - "items": {} + "items": { + "$ref": "#/definitions/MessageComponent" + } + }, + "poll": { + "$ref": "#/definitions/Poll" }, "hit": { "type": "boolean", @@ -544936,6 +579293,7 @@ "mention_roles", "mentions", "pinned", + "poll", "timestamp", "tts", "type" @@ -544986,6 +579344,12 @@ }, "pronouns": { "type": "string" + }, + "badge_ids": { + "type": "array", + "items": { + "type": "string" + } } }, "additionalProperties": false, @@ -545451,6 +579815,19 @@ }, "username": { "type": "string" + }, + "badge_ids": { + "anyOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, @@ -545788,6 +580165,29 @@ "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": { diff --git a/src/api/Server.ts b/src/api/Server.ts index 0f5df490c..bea75d7e2 100644 --- a/src/api/Server.ts +++ b/src/api/Server.ts @@ -18,15 +18,15 @@ import { Config, + ConnectionConfig, + ConnectionLoader, Email, - initDatabase, - initEvent, JSONReplacer, - registerRoutes, Sentry, WebAuthn, - ConnectionConfig, - ConnectionLoader, + initDatabase, + initEvent, + registerRoutes, } from "@spacebar/util"; import { Request, Response, Router } from "express"; import { Server, ServerOptions } from "lambert-server"; @@ -143,6 +143,10 @@ export class SpacebarServer extends Server { res.sendFile(path.join(PUBLIC_ASSETS_FOLDER, "index.html")), ); + app.get("/verify", (req, res) => + res.sendFile(path.join(PUBLIC_ASSETS_FOLDER, "verify.html")), + ); + this.app.use(ErrorHandler); Sentry.errorHandler(this.app); diff --git a/src/api/routes/auth/verify/index.ts b/src/api/routes/auth/verify/index.ts index 49f742778..32c3f3058 100644 --- a/src/api/routes/auth/verify/index.ts +++ b/src/api/routes/auth/verify/index.ts @@ -85,7 +85,7 @@ router.post( user = userTokenData.user; } catch { throw FieldErrors({ - password: { + token: { message: req.t("auth:password_reset.INVALID_TOKEN"), code: "INVALID_TOKEN", }, diff --git a/src/api/routes/channels/#channel_id/index.ts b/src/api/routes/channels/#channel_id/index.ts index 99f9a6471..291b64727 100644 --- a/src/api/routes/channels/#channel_id/index.ts +++ b/src/api/routes/channels/#channel_id/index.ts @@ -50,7 +50,13 @@ router.get( const channel = await Channel.findOneOrFail({ where: { id: channel_id }, }); + if (!channel.guild_id) return res.send(channel); + channel.position = await Channel.calculatePosition( + channel_id, + channel.guild_id, + channel.guild, + ); return res.send(channel); }, ); diff --git a/src/api/routes/channels/#channel_id/messages/#message_id/crosspost.ts b/src/api/routes/channels/#channel_id/messages/#message_id/crosspost.ts index 5ca645c00..6362941c6 100644 --- a/src/api/routes/channels/#channel_id/messages/#message_id/crosspost.ts +++ b/src/api/routes/channels/#channel_id/messages/#message_id/crosspost.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 . */ @@ -56,6 +56,7 @@ router.post( edited_timestamp: null, flags: 1, components: [], + poll: {}, }).status(200); }, ); diff --git a/src/api/routes/channels/#channel_id/messages/#message_id/index.ts b/src/api/routes/channels/#channel_id/messages/#message_id/index.ts index c4d2e1e82..211cf9972 100644 --- a/src/api/routes/channels/#channel_id/messages/#message_id/index.ts +++ b/src/api/routes/channels/#channel_id/messages/#message_id/index.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 . */ @@ -91,11 +91,10 @@ router.patch( } } else rights.hasThrow("SELF_EDIT_MESSAGES"); + // @ts-expect-error Something is wrong with message_reference here, TS complains since "channel_id" is optional in MessageCreateSchema const new_message = await handleMessage({ ...message, // TODO: should message_reference be overridable? - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore message_reference: message.message_reference, ...body, author_id: message.author_id, diff --git a/src/api/routes/channels/#channel_id/messages/index.ts b/src/api/routes/channels/#channel_id/messages/index.ts index a5bfcfd73..645c6db23 100644 --- a/src/api/routes/channels/#channel_id/messages/index.ts +++ b/src/api/routes/channels/#channel_id/messages/index.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 . */ @@ -183,9 +183,17 @@ router.get( const uri = y.proxy_url.startsWith("http") ? y.proxy_url : `https://example.org${y.proxy_url}`; - y.proxy_url = `${endpoint == null ? "" : endpoint}${ - new URL(uri).pathname - }`; + + let pathname = new URL(uri).pathname; + while ( + pathname.split("/")[0] != "attachments" && + pathname.length > 30 + ) { + pathname = pathname.split("/").slice(1).join("/"); + } + if (!endpoint?.endsWith("/")) pathname = "/" + pathname; + + y.proxy_url = `${endpoint == null ? "" : endpoint}${pathname}`; }); /** diff --git a/src/api/routes/channels/#channel_id/permissions.ts b/src/api/routes/channels/#channel_id/permissions.ts index d3edb0fa1..fe289f234 100644 --- a/src/api/routes/channels/#channel_id/permissions.ts +++ b/src/api/routes/channels/#channel_id/permissions.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 . */ @@ -53,6 +53,11 @@ router.put( where: { id: channel_id }, }); if (!channel.guild_id) throw new HTTPError("Channel not found", 404); + channel.position = await Channel.calculatePosition( + channel_id, + channel.guild_id, + channel.guild, + ); if (body.type === 0) { if (!(await Role.count({ where: { id: overwrite_id } }))) diff --git a/src/api/routes/connections/index.ts b/src/api/routes/connections/index.ts new file mode 100644 index 000000000..37c20a379 --- /dev/null +++ b/src/api/routes/connections/index.ts @@ -0,0 +1,45 @@ +/* + 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 { ConnectionConfig } from "@spacebar/util"; +import { Request, Response, Router } from "express"; +const router = Router(); + +router.get( + "/", + route({ + responses: { + 200: { + body: "APIConnectionsConfiguration", + }, + }, + }), + async (req: Request, res: Response) => { + const config = ConnectionConfig.get(); + + Object.keys(config).forEach((key) => { + delete config[key].clientId; + delete config[key].clientSecret; + }); + + res.json(config); + }, +); + +export default router; diff --git a/src/api/routes/guilds/#guild_id/channels.ts b/src/api/routes/guilds/#guild_id/channels.ts index 68208fee2..3488b64dd 100644 --- a/src/api/routes/guilds/#guild_id/channels.ts +++ b/src/api/routes/guilds/#guild_id/channels.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 . */ @@ -41,6 +41,15 @@ router.get( const { guild_id } = req.params; const channels = await Channel.find({ where: { guild_id } }); + for await (const channel of channels) { + channel.position = await Channel.calculatePosition( + channel.id, + guild_id, + channel.guild, + ); + } + channels.sort((a, b) => a.position - b.position); + res.json(channels); }, ); @@ -71,6 +80,11 @@ router.post( { ...body, guild_id }, req.user_id, ); + channel.position = await Channel.calculatePosition( + channel.id, + guild_id, + channel.guild, + ); res.status(201).json(channel); }, diff --git a/src/api/routes/guilds/#guild_id/emojis.ts b/src/api/routes/guilds/#guild_id/emojis.ts index ef28f989a..f3f0fd8bf 100644 --- a/src/api/routes/guilds/#guild_id/emojis.ts +++ b/src/api/routes/guilds/#guild_id/emojis.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 . */ @@ -125,6 +125,7 @@ router.post( const user = await User.findOneOrFail({ where: { id: req.user_id } }); body.image = (await handleFile(`/emojis/${id}`, body.image)) as string; + const mimeType = body.image.split(":")[1].split(";")[0]; const emoji = await Emoji.create({ id: id, guild_id: guild_id, @@ -132,7 +133,10 @@ router.post( require_colons: body.require_colons ?? undefined, // schema allows nulls, db does not user: user, managed: false, - animated: false, // TODO: Add support animated emojis + animated: + mimeType == "image/gif" || + mimeType == "image/apng" || + mimeType == "video/webm", available: true, roles: [], }).save(); diff --git a/src/api/routes/guilds/#guild_id/messages/search.ts b/src/api/routes/guilds/#guild_id/messages/search.ts index 637d1e438..94adf9c6a 100644 --- a/src/api/routes/guilds/#guild_id/messages/search.ts +++ b/src/api/routes/guilds/#guild_id/messages/search.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 . */ @@ -162,6 +162,7 @@ router.get( edited_timestamp: x.edited_timestamp, flags: x.flags, components: x.components, + poll: x.poll, hit: true, }, ]); diff --git a/src/api/routes/users/#id/profile.ts b/src/api/routes/users/#id/profile.ts index eecec0f35..db0922d68 100644 --- a/src/api/routes/users/#id/profile.ts +++ b/src/api/routes/users/#id/profile.ts @@ -18,6 +18,7 @@ import { route } from "@spacebar/api"; import { + Badge, Member, PrivateUserProjection, User, @@ -98,6 +99,9 @@ router.get( bio: guild_member?.bio || "", guild_id, }; + + const badges = await Badge.find(); + res.json({ connected_accounts: user.connected_accounts.filter( (x) => x.visibility != 0, @@ -111,6 +115,7 @@ router.get( user_profile: userProfile, guild_member: guild_member?.toPublicMember(), guild_member_profile: guild_id && guildMemberProfile, + badges: badges.filter((x) => user.badge_ids?.includes(x.id)), }); }, ); diff --git a/src/api/util/handlers/Message.ts b/src/api/util/handlers/Message.ts index 6172a3d0c..c36586682 100644 --- a/src/api/util/handlers/Message.ts +++ b/src/api/util/handlers/Message.ts @@ -1,57 +1,57 @@ /* 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 * as Sentry from "@sentry/node"; +import { EmbedHandlers } from "@spacebar/api"; import { + Application, + Attachment, Channel, + Config, Embed, + EmbedCache, emitEvent, + EVERYONE_MENTION, + getPermission, + getRights, Guild, + HERE_MENTION, Message, MessageCreateEvent, + MessageCreateSchema, + MessageType, MessageUpdateEvent, - getPermission, - getRights, - //CHANNEL_MENTION, - USER_MENTION, - ROLE_MENTION, Role, - EVERYONE_MENTION, - HERE_MENTION, - MessageType, + ROLE_MENTION, + Sticker, User, - Application, + //CHANNEL_MENTION, + USER_MENTION, Webhook, - Attachment, - Config, - Sticker, - MessageCreateSchema, - EmbedCache, } from "@spacebar/util"; import { HTTPError } from "lambert-server"; import { In } from "typeorm"; -import { EmbedHandlers } from "@spacebar/api"; -import * as Sentry from "@sentry/node"; const allow_empty = false; // TODO: check webhook, application, system author, stickers // TODO: embed gifs/videos/images const LINK_REGEX = - /https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/g; + /?/g; export async function handleMessage(opts: MessageOptions): Promise { const channel = await Channel.findOneOrFail({ @@ -66,6 +66,7 @@ export async function handleMessage(opts: MessageOptions): Promise { : undefined; const message = Message.create({ ...opts, + poll: opts.poll, sticker_items: stickers, guild_id: channel.guild_id, channel_id: opts.channel_id, @@ -116,6 +117,12 @@ export async function handleMessage(opts: MessageOptions): Promise { const guild = await Guild.findOneOrFail({ where: { id: channel.guild_id }, }); + + if (!opts.message_reference.guild_id) + opts.message_reference.guild_id = channel.guild_id; + if (!opts.message_reference.channel_id) + opts.message_reference.channel_id = opts.channel_id; + if (!guild.features.includes("CROSS_CHANNEL_REPLIES")) { if (opts.message_reference.guild_id !== channel.guild_id) throw new HTTPError( @@ -126,6 +133,8 @@ export async function handleMessage(opts: MessageOptions): Promise { "You can only reference messages from this channel", ); } + + message.message_reference = opts.message_reference; } /** Q: should be checked if the referenced message exists? ANSWER: NO otherwise backfilling won't work **/ @@ -138,7 +147,9 @@ export async function handleMessage(opts: MessageOptions): Promise { !opts.content && !opts.embeds?.length && !opts.attachments?.length && - !opts.sticker_ids?.length + !opts.sticker_ids?.length && + !opts.poll && + !opts.components?.length ) { throw new HTTPError("Empty messages are not allowed", 50006); } @@ -213,6 +224,9 @@ export async function postHandleMessage(message: Message) { const cachePromises = []; for (const link of links) { + // Don't embed links in <> + if (link.startsWith("<") && link.endsWith(">")) continue; + const url = new URL(link); const cached = await EmbedCache.findOne({ where: { url: link } }); diff --git a/src/cdn/routes/badge-icons.ts b/src/cdn/routes/badge-icons.ts new file mode 100644 index 000000000..04e96f2fa --- /dev/null +++ b/src/cdn/routes/badge-icons.ts @@ -0,0 +1,40 @@ +/* + 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 { Router, Response, Request } from "express"; +import { storage } from "../util/Storage"; +import FileType from "file-type"; +import { HTTPError } from "lambert-server"; + +const router = Router(); + +router.get("/:badge_id", async (req: Request, res: Response) => { + const { badge_id } = req.params; + const path = `badge-icons/${badge_id}`; + + const file = await storage.get(path); + if (!file) throw new HTTPError("not found", 404); + const type = await FileType.fromBuffer(file); + + res.set("Content-Type", type?.mime); + res.set("Cache-Control", "public, max-age=31536000, must-revalidate"); + + return res.send(file); +}); + +export default router; diff --git a/src/cdn/routes/embed.ts b/src/cdn/routes/embed.ts index b99396ebe..95ac720d8 100644 --- a/src/cdn/routes/embed.ts +++ b/src/cdn/routes/embed.ts @@ -23,12 +23,12 @@ import { HTTPError } from "lambert-server"; import { join } from "path"; const defaultAvatarHashMap = new Map([ - ["0", "823a3de61c4dc2415cc4dbc38fca4299"], - ["1", "e56a89224be0b2b1f7c04eca975be468"], - ["2", "0c8138dcc0dfe2689cdd73f7952c2475"], - ["3", "5ac2728593bb455250d11b848a0c36c6"], - ["4", "addd2f3268df46459e1d6012ad8e75bd"], - ["5", "c4e0c8300fa491d94acfd2a1fb26cea8"], + ["0", "4a8562cf00887030c416d3ec2d46385a"], + ["1", "9b0bb198936784c45c72833cc426cc55"], + ["2", "22341bdb500c7b63a93bbce957d1601e"], + ["3", "d9977836b82058bf2f74eebd50edc095"], + ["4", "9d6ddb4e4d899a533a8cc617011351c9"], + ["5", "7213ab6677377974697dfdfbaf5f6a6f"], ]); const defaultGroupDMAvatarHashMap = new Map([ diff --git a/src/connections/BattleNet/index.ts b/src/connections/BattleNet/index.ts index 4fdfccb16..8f44944cf 100644 --- a/src/connections/BattleNet/index.ts +++ b/src/connections/BattleNet/index.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 . */ @@ -47,13 +47,15 @@ export default class BattleNetConnection extends Connection { settings: BattleNetSettings = new BattleNetSettings(); init(): void { - const settings = - ConnectionLoader.getConnectionConfig( - this.id, - this.settings, - ); - - if (settings.enabled && (!settings.clientId || !settings.clientSecret)) + this.settings = ConnectionLoader.getConnectionConfig( + this.id, + this.settings, + ); + + if ( + this.settings.enabled && + (!this.settings.clientId || !this.settings.clientSecret) + ) throw new Error(`Invalid settings for connection ${this.id}`); } diff --git a/src/connections/Discord/index.ts b/src/connections/Discord/index.ts index 731086f1a..e5508f482 100644 --- a/src/connections/Discord/index.ts +++ b/src/connections/Discord/index.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,12 +43,15 @@ export default class DiscordConnection extends Connection { settings: DiscordSettings = new DiscordSettings(); init(): void { - const settings = ConnectionLoader.getConnectionConfig( + this.settings = ConnectionLoader.getConnectionConfig( this.id, this.settings, ); - if (settings.enabled && (!settings.clientId || !settings.clientSecret)) + if ( + this.settings.enabled && + (!this.settings.clientId || !this.settings.clientSecret) + ) throw new Error(`Invalid settings for connection ${this.id}`); } diff --git a/src/connections/EpicGames/index.ts b/src/connections/EpicGames/index.ts index e5b2d3367..cedfcd0a6 100644 --- a/src/connections/EpicGames/index.ts +++ b/src/connections/EpicGames/index.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 . */ @@ -53,13 +53,15 @@ export default class EpicGamesConnection extends Connection { settings: EpicGamesSettings = new EpicGamesSettings(); init(): void { - const settings = - ConnectionLoader.getConnectionConfig( - this.id, - this.settings, - ); + this.settings = ConnectionLoader.getConnectionConfig( + this.id, + this.settings, + ); - if (settings.enabled && (!settings.clientId || !settings.clientSecret)) + if ( + this.settings.enabled && + (!this.settings.clientId || !this.settings.clientSecret) + ) throw new Error(`Invalid settings for connection ${this.id}`); } diff --git a/src/connections/Facebook/index.ts b/src/connections/Facebook/index.ts index 2bf26f34f..bcb90b4c6 100644 --- a/src/connections/Facebook/index.ts +++ b/src/connections/Facebook/index.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 . */ @@ -52,12 +52,15 @@ export default class FacebookConnection extends Connection { settings: FacebookSettings = new FacebookSettings(); init(): void { - const settings = ConnectionLoader.getConnectionConfig( + this.settings = ConnectionLoader.getConnectionConfig( this.id, this.settings, ); - if (settings.enabled && (!settings.clientId || !settings.clientSecret)) + if ( + this.settings.enabled && + (!this.settings.clientId || !this.settings.clientSecret) + ) throw new Error(`Invalid settings for connection ${this.id}`); } diff --git a/src/connections/GitHub/index.ts b/src/connections/GitHub/index.ts index 25e5f89f3..78bf510e7 100644 --- a/src/connections/GitHub/index.ts +++ b/src/connections/GitHub/index.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 . */ @@ -42,12 +42,15 @@ export default class GitHubConnection extends Connection { settings: GitHubSettings = new GitHubSettings(); init(): void { - const settings = ConnectionLoader.getConnectionConfig( + this.settings = ConnectionLoader.getConnectionConfig( this.id, this.settings, ); - if (settings.enabled && (!settings.clientId || !settings.clientSecret)) + if ( + this.settings.enabled && + (!this.settings.clientId || !this.settings.clientSecret) + ) throw new Error(`Invalid settings for connection ${this.id}`); } diff --git a/src/connections/Reddit/index.ts b/src/connections/Reddit/index.ts index 149cce02f..0db237312 100644 --- a/src/connections/Reddit/index.ts +++ b/src/connections/Reddit/index.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 . */ @@ -54,12 +54,15 @@ export default class RedditConnection extends Connection { settings: RedditSettings = new RedditSettings(); init(): void { - const settings = ConnectionLoader.getConnectionConfig( + this.settings = ConnectionLoader.getConnectionConfig( this.id, this.settings, ); - if (settings.enabled && (!settings.clientId || !settings.clientSecret)) + if ( + this.settings.enabled && + (!this.settings.clientId || !this.settings.clientSecret) + ) throw new Error(`Invalid settings for connection ${this.id}`); } diff --git a/src/connections/Spotify/index.ts b/src/connections/Spotify/index.ts index ece404d83..4eb126021 100644 --- a/src/connections/Spotify/index.ts +++ b/src/connections/Spotify/index.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 . */ @@ -63,12 +63,16 @@ export default class SpotifyConnection extends RefreshableConnection { * So to prevent spamming the spotify api we disable the ability to refresh. */ this.refreshEnabled = false; - const settings = ConnectionLoader.getConnectionConfig( + + this.settings = ConnectionLoader.getConnectionConfig( this.id, this.settings, ); - if (settings.enabled && (!settings.clientId || !settings.clientSecret)) + if ( + this.settings.enabled && + (!this.settings.clientId || !this.settings.clientSecret) + ) throw new Error(`Invalid settings for connection ${this.id}`); } diff --git a/src/connections/Twitch/index.ts b/src/connections/Twitch/index.ts index 9a6cea358..953669a1d 100644 --- a/src/connections/Twitch/index.ts +++ b/src/connections/Twitch/index.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 . */ @@ -55,12 +55,15 @@ export default class TwitchConnection extends RefreshableConnection { settings: TwitchSettings = new TwitchSettings(); init(): void { - const settings = ConnectionLoader.getConnectionConfig( + this.settings = ConnectionLoader.getConnectionConfig( this.id, this.settings, ); - if (settings.enabled && (!settings.clientId || !settings.clientSecret)) + if ( + this.settings.enabled && + (!this.settings.clientId || !this.settings.clientSecret) + ) throw new Error(`Invalid settings for connection ${this.id}`); } diff --git a/src/connections/Twitter/index.ts b/src/connections/Twitter/index.ts index 62fd7da18..eba8ceb50 100644 --- a/src/connections/Twitter/index.ts +++ b/src/connections/Twitter/index.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 . */ @@ -55,12 +55,15 @@ export default class TwitterConnection extends RefreshableConnection { settings: TwitterSettings = new TwitterSettings(); init(): void { - const settings = ConnectionLoader.getConnectionConfig( + this.settings = ConnectionLoader.getConnectionConfig( this.id, this.settings, ); - if (settings.enabled && (!settings.clientId || !settings.clientSecret)) + if ( + this.settings.enabled && + (!this.settings.clientId || !this.settings.clientSecret) + ) throw new Error(`Invalid settings for connection ${this.id}`); } diff --git a/src/connections/Xbox/index.ts b/src/connections/Xbox/index.ts index 935ff7ab7..84066def1 100644 --- a/src/connections/Xbox/index.ts +++ b/src/connections/Xbox/index.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 . */ @@ -62,12 +62,15 @@ export default class XboxConnection extends Connection { settings: XboxSettings = new XboxSettings(); init(): void { - const settings = ConnectionLoader.getConnectionConfig( + this.settings = ConnectionLoader.getConnectionConfig( this.id, this.settings, ); - if (settings.enabled && (!settings.clientId || !settings.clientSecret)) + if ( + this.settings.enabled && + (!this.settings.clientId || !this.settings.clientSecret) + ) throw new Error(`Invalid settings for connection ${this.id}`); } diff --git a/src/connections/Youtube/index.ts b/src/connections/Youtube/index.ts index 844803cf0..38edbb0de 100644 --- a/src/connections/Youtube/index.ts +++ b/src/connections/Youtube/index.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 . */ @@ -62,12 +62,15 @@ export default class YoutubeConnection extends Connection { settings: YoutubeSettings = new YoutubeSettings(); init(): void { - const settings = ConnectionLoader.getConnectionConfig( + this.settings = ConnectionLoader.getConnectionConfig( this.id, this.settings, ); - if (settings.enabled && (!settings.clientId || !settings.clientSecret)) + if ( + this.settings.enabled && + (!this.settings.clientId || !this.settings.clientSecret) + ) throw new Error(`Invalid settings for connection ${this.id}`); } diff --git a/src/util/config/types/EmailConfiguration.ts b/src/util/config/types/EmailConfiguration.ts index ae9d53baf..62305d10b 100644 --- a/src/util/config/types/EmailConfiguration.ts +++ b/src/util/config/types/EmailConfiguration.ts @@ -25,6 +25,7 @@ import { SendGridConfiguration } from "./subconfigurations/email/SendGrid"; export class EmailConfiguration { provider: string | null = null; + senderAddress: string | null = null; smtp: SMTPConfiguration = new SMTPConfiguration(); mailgun: MailGunConfiguration = new MailGunConfiguration(); mailjet: MailJetConfiguration = new MailJetConfiguration(); diff --git a/src/util/connections/Connection.ts b/src/util/connections/Connection.ts index 5bdebd47a..638dde2c2 100644 --- a/src/util/connections/Connection.ts +++ b/src/util/connections/Connection.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,7 +43,7 @@ export abstract class Connection { */ getRedirectUri() { const endpointPublic = - Config.get().api.endpointPublic ?? "http://localhost:3001"; + Config.get().general.frontPage ?? "http://localhost:3001"; return `${endpointPublic}/connections/${this.id}/callback`; } diff --git a/src/util/dtos/UserDTO.ts b/src/util/dtos/UserDTO.ts index a24c8d960..17e4435f0 100644 --- a/src/util/dtos/UserDTO.ts +++ b/src/util/dtos/UserDTO.ts @@ -24,6 +24,7 @@ export class MinimalPublicUserDTO { id: string; public_flags: number; username: string; + badge_ids?: string[] | null; constructor(user: User) { this.avatar = user.avatar; @@ -31,5 +32,6 @@ export class MinimalPublicUserDTO { this.id = user.id; this.public_flags = user.public_flags; this.username = user.username; + this.badge_ids = user.badge_ids; } } diff --git a/src/util/entities/Badge.ts b/src/util/entities/Badge.ts new file mode 100644 index 000000000..9535e207b --- /dev/null +++ b/src/util/entities/Badge.ts @@ -0,0 +1,35 @@ +/* + 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 { Column, Entity } from "typeorm"; +import { BaseClassWithoutId } from "./BaseClass"; + +@Entity("badges") +export class Badge extends BaseClassWithoutId { + @Column({ primary: true }) + id: string; + + @Column() + description: string; + + @Column() + icon: string; + + @Column({ nullable: true }) + link?: string; +} diff --git a/src/util/entities/Member.ts b/src/util/entities/Member.ts index 659428168..3ef778ace 100644 --- a/src/util/entities/Member.ts +++ b/src/util/entities/Member.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 . */ @@ -31,7 +31,7 @@ import { PrimaryGeneratedColumn, RelationId, } from "typeorm"; -import { Ban, PublicGuildRelations } from "."; +import { Ban, Channel, PublicGuildRelations } from "."; import { ReadyGuildDTO } from "../dtos"; import { GuildCreateEvent, @@ -330,6 +330,13 @@ export class Member extends BaseClassWithoutId { relationLoadStrategy: "query", }); + for await (const channel of guild.channels) { + channel.position = await Channel.calculatePosition( + channel.id, + guild_id, + ); + } + const memberCount = await Member.count({ where: { guild_id } }); const memberPreview = ( diff --git a/src/util/entities/Message.ts b/src/util/entities/Message.ts index 4a9cff4ab..d28c8c29a 100644 --- a/src/util/entities/Message.ts +++ b/src/util/entities/Message.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 . */ @@ -218,6 +218,9 @@ export class Message extends BaseClass { @Column({ type: "simple-json", nullable: true }) components?: MessageComponent[]; + @Column({ type: "simple-json", nullable: true }) + poll?: Poll; + toJSON(): Message { return { ...this, @@ -238,6 +241,7 @@ export class Message extends BaseClass { activity: this.activity ?? undefined, application: this.application ?? undefined, components: this.components ?? undefined, + poll: this.poll ?? undefined, content: this.content ?? "", }; } @@ -249,6 +253,7 @@ export interface MessageComponent { label?: string; emoji?: PartialEmoji; custom_id?: string; + sku_id?: string; url?: string; disabled?: boolean; components: MessageComponent[]; @@ -327,3 +332,32 @@ export interface AllowedMentions { users?: string[]; replied_user?: boolean; } + +export interface Poll { + question: PollMedia; + answers: PollAnswer[]; + expiry: Date; + allow_multiselect: boolean; + results?: PollResult; +} + +export interface PollMedia { + text?: string; + emoji?: PartialEmoji; +} + +export interface PollAnswer { + answer_id?: string; + poll_media: PollMedia; +} + +export interface PollResult { + is_finalized: boolean; + answer_counts: PollAnswerCount[]; +} + +export interface PollAnswerCount { + id: string; + count: number; + me_voted: boolean; +} diff --git a/src/util/entities/User.ts b/src/util/entities/User.ts index c6582b00a..c929039ef 100644 --- a/src/util/entities/User.ts +++ b/src/util/entities/User.ts @@ -49,6 +49,7 @@ export enum PublicUserEnum { premium_type, theme_colors, pronouns, + badge_ids, } export type PublicUserKeys = keyof typeof PublicUserEnum; @@ -231,6 +232,9 @@ export class User extends BaseClass { @OneToMany(() => SecurityKey, (key: SecurityKey) => key.user) security_keys: SecurityKey[]; + @Column({ type: "simple-array", nullable: true }) + badge_ids?: string[]; + // TODO: I don't like this method? validate() { if (this.discriminator) { diff --git a/src/util/entities/index.ts b/src/util/entities/index.ts index aa943dca7..b2356aa79 100644 --- a/src/util/entities/index.ts +++ b/src/util/entities/index.ts @@ -20,6 +20,7 @@ export * from "./Application"; export * from "./Attachment"; export * from "./AuditLog"; export * from "./BackupCodes"; +export * from "./Badge"; export * from "./Ban"; export * from "./BaseClass"; export * from "./Categories"; diff --git a/src/util/migration/mariadb/1719776735000-newUserSettings.ts b/src/util/migration/mariadb/1719776735000-newUserSettings.ts new file mode 100644 index 000000000..f7c37ca92 --- /dev/null +++ b/src/util/migration/mariadb/1719776735000-newUserSettings.ts @@ -0,0 +1,23 @@ +import { MigrationInterface, QueryRunner } from "typeorm"; + +export class NewUserSettings1719776735000 implements MigrationInterface { + name = "NewUserSettings1719776735000"; + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query( + "ALTER TABLE `user_settings` ADD friend_discovery_flags integer NULL DEFAULT 0;", + ); + await queryRunner.query( + "ALTER TABLE `user_settings` ADD view_nsfw_guilds tinyint NULL DEFAULT 1;", + ); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query( + "ALTER TABLE `user_settings` DROP COLUMN friend_discovery_flags;", + ); + await queryRunner.query( + "ALTER TABLE `user_settings` DROP COLUMN view_nsfw_guilds;", + ); + } +} diff --git a/src/util/migration/mariadb/1720157926878-messagePollObject.ts b/src/util/migration/mariadb/1720157926878-messagePollObject.ts new file mode 100644 index 000000000..c08664264 --- /dev/null +++ b/src/util/migration/mariadb/1720157926878-messagePollObject.ts @@ -0,0 +1,13 @@ +import { MigrationInterface, QueryRunner } from "typeorm"; + +export class MessagePollObject1720157926878 implements MigrationInterface { + name = "MessagePollObject1720157926878"; + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query("ALTER TABLE `messages` ADD `poll` text NULL"); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query("ALTER TABLE `messages` DROP COLUMN `poll`"); + } +} diff --git a/src/util/migration/mariadb/1720628601997-badges.ts b/src/util/migration/mariadb/1720628601997-badges.ts new file mode 100644 index 000000000..af298e42e --- /dev/null +++ b/src/util/migration/mariadb/1720628601997-badges.ts @@ -0,0 +1,21 @@ +import { MigrationInterface, QueryRunner } from "typeorm"; + +export class Badges1720628601997 implements MigrationInterface { + name = "Badges1720628601997"; + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query( + `CREATE TABLE \`badges\` (\`id\` varchar(255) NOT NULL, \`description\` varchar(255) NOT NULL, \`icon\` varchar(255) NOT NULL, \`link\` varchar(255) NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`, + ); + await queryRunner.query( + `ALTER TABLE \`users\` ADD \`badge_ids\` text NULL`, + ); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query( + `ALTER TABLE \`users\` DROP COLUMN \`badge_ids\``, + ); + await queryRunner.query(`DROP TABLE \`badges\``); + } +} diff --git a/src/util/migration/mysql/1719776735000-newUserSettings.ts b/src/util/migration/mysql/1719776735000-newUserSettings.ts new file mode 100644 index 000000000..f7c37ca92 --- /dev/null +++ b/src/util/migration/mysql/1719776735000-newUserSettings.ts @@ -0,0 +1,23 @@ +import { MigrationInterface, QueryRunner } from "typeorm"; + +export class NewUserSettings1719776735000 implements MigrationInterface { + name = "NewUserSettings1719776735000"; + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query( + "ALTER TABLE `user_settings` ADD friend_discovery_flags integer NULL DEFAULT 0;", + ); + await queryRunner.query( + "ALTER TABLE `user_settings` ADD view_nsfw_guilds tinyint NULL DEFAULT 1;", + ); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query( + "ALTER TABLE `user_settings` DROP COLUMN friend_discovery_flags;", + ); + await queryRunner.query( + "ALTER TABLE `user_settings` DROP COLUMN view_nsfw_guilds;", + ); + } +} diff --git a/src/util/migration/mysql/1720157926878-messagePollObject.ts b/src/util/migration/mysql/1720157926878-messagePollObject.ts new file mode 100644 index 000000000..c08664264 --- /dev/null +++ b/src/util/migration/mysql/1720157926878-messagePollObject.ts @@ -0,0 +1,13 @@ +import { MigrationInterface, QueryRunner } from "typeorm"; + +export class MessagePollObject1720157926878 implements MigrationInterface { + name = "MessagePollObject1720157926878"; + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query("ALTER TABLE `messages` ADD `poll` text NULL"); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query("ALTER TABLE `messages` DROP COLUMN `poll`"); + } +} diff --git a/src/util/migration/mysql/1720628601997-badges.ts b/src/util/migration/mysql/1720628601997-badges.ts new file mode 100644 index 000000000..af298e42e --- /dev/null +++ b/src/util/migration/mysql/1720628601997-badges.ts @@ -0,0 +1,21 @@ +import { MigrationInterface, QueryRunner } from "typeorm"; + +export class Badges1720628601997 implements MigrationInterface { + name = "Badges1720628601997"; + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query( + `CREATE TABLE \`badges\` (\`id\` varchar(255) NOT NULL, \`description\` varchar(255) NOT NULL, \`icon\` varchar(255) NOT NULL, \`link\` varchar(255) NULL, PRIMARY KEY (\`id\`)) ENGINE=InnoDB`, + ); + await queryRunner.query( + `ALTER TABLE \`users\` ADD \`badge_ids\` text NULL`, + ); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query( + `ALTER TABLE \`users\` DROP COLUMN \`badge_ids\``, + ); + await queryRunner.query(`DROP TABLE \`badges\``); + } +} diff --git a/src/util/migration/postgres/1719776735000-newUserSettings.ts b/src/util/migration/postgres/1719776735000-newUserSettings.ts new file mode 100644 index 000000000..dbee0b0d5 --- /dev/null +++ b/src/util/migration/postgres/1719776735000-newUserSettings.ts @@ -0,0 +1,23 @@ +import { MigrationInterface, QueryRunner } from "typeorm"; + +export class NewUserSettings1719776735000 implements MigrationInterface { + name = "NewUserSettings1719776735000"; + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query( + "ALTER TABLE user_settings ADD COLUMN friend_discovery_flags integer DEFAULT 0;", + ); + await queryRunner.query( + "ALTER TABLE user_settings ADD COLUMN view_nsfw_guilds boolean DEFAULT true;", + ); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query( + "ALTER TABLE user_settings DROP COLUMN friend_discovery_flags;", + ); + await queryRunner.query( + "ALTER TABLE user_settings DROP COLUMN view_nsfw_guilds;", + ); + } +} diff --git a/src/util/migration/postgres/1720157926878-messagePollObject.ts b/src/util/migration/postgres/1720157926878-messagePollObject.ts new file mode 100644 index 000000000..7c3c95a0f --- /dev/null +++ b/src/util/migration/postgres/1720157926878-messagePollObject.ts @@ -0,0 +1,13 @@ +import { MigrationInterface, QueryRunner } from "typeorm"; + +export class MessagePollObject1720157926878 implements MigrationInterface { + name = "MessagePollObject1720157926878"; + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query("ALTER TABLE messages ADD poll text NULL"); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query("ALTER TABLE messages DROP COLUMN poll"); + } +} diff --git a/src/util/migration/postgres/1720628601997-badges.ts b/src/util/migration/postgres/1720628601997-badges.ts new file mode 100644 index 000000000..f7b9958bf --- /dev/null +++ b/src/util/migration/postgres/1720628601997-badges.ts @@ -0,0 +1,16 @@ +import { MigrationInterface, QueryRunner } from "typeorm"; + +export class Badges1720628601997 implements MigrationInterface { + name = "Badges1720628601997"; + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query( + `CREATE TABLE "badges" ("id" character varying NOT NULL, "description" character varying NOT NULL, "icon" character varying NOT NULL, "link" character varying, CONSTRAINT "PK_8a651318b8de577e8e217676466" PRIMARY KEY ("id"))`, + ); + await queryRunner.query(`ALTER TABLE "users" ADD "badge_ids" text`); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query(`ALTER TABLE "users" DROP COLUMN "badge_ids"`); + } +} diff --git a/src/util/schemas/MessageCreateSchema.ts b/src/util/schemas/MessageCreateSchema.ts index 57abf62f9..014f6c87d 100644 --- a/src/util/schemas/MessageCreateSchema.ts +++ b/src/util/schemas/MessageCreateSchema.ts @@ -1,22 +1,22 @@ /* 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 { Embed } from "@spacebar/util"; +import { Embed, MessageComponent, PollAnswer, PollMedia } from "@spacebar/util"; type Attachment = { id: string; @@ -42,7 +42,7 @@ export interface MessageCreateSchema { }; message_reference?: { message_id: string; - channel_id: string; + channel_id?: string; guild_id?: string; fail_if_not_exists?: boolean; }; @@ -54,6 +54,21 @@ export interface MessageCreateSchema { **/ attachments?: Attachment[]; sticker_ids?: string[]; - // eslint-disable-next-line @typescript-eslint/no-explicit-any - components?: any[]; + components?: MessageComponent[]; + // TODO: Fix TypeScript errors in src\api\util\handlers\Message.ts once this is enabled + poll?: PollCreationSchema; + enforce_nonce?: boolean; // For Discord compatibility, it's the default behavior here + applied_tags?: string[]; // Not implemented yet, for webhooks in forums + thread_name?: string; // Not implemented yet, for webhooks + avatar_url?: string; // Not implemented yet, for webhooks +} + +// TypeScript complains once this is used above +// eslint-disable-next-line @typescript-eslint/no-unused-vars +interface PollCreationSchema { + question: PollMedia; + answers: PollAnswer[]; + duration?: number; + allow_multiselect?: boolean; + layout_type?: number; } diff --git a/src/util/schemas/responses/GuildMessagesSearchResponse.ts b/src/util/schemas/responses/GuildMessagesSearchResponse.ts index b42aafd3c..6121983e0 100644 --- a/src/util/schemas/responses/GuildMessagesSearchResponse.ts +++ b/src/util/schemas/responses/GuildMessagesSearchResponse.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,9 @@ import { Attachment, Embed, + MessageComponent, MessageType, + Poll, PublicUser, Role, } from "../../entities"; @@ -40,7 +42,8 @@ export interface GuildMessagesSearchMessage { timestamp: string; edited_timestamp: string | null; flags: number; - components: unknown[]; + components: MessageComponent[]; + poll: Poll; hit: true; } diff --git a/src/util/schemas/responses/TypedResponses.ts b/src/util/schemas/responses/TypedResponses.ts index fa169c253..8214ff7b2 100644 --- a/src/util/schemas/responses/TypedResponses.ts +++ b/src/util/schemas/responses/TypedResponses.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 . */ @@ -104,3 +104,10 @@ export type APIGuildVoiceRegion = GuildVoiceRegion[]; export type APILimitsConfiguration = LimitsConfiguration; export type APIStickerPackArray = StickerPack[]; + +export type APIConnectionsConfiguration = Record< + string, + { + enabled: boolean; + } +>; diff --git a/src/util/schemas/responses/UserProfileResponse.ts b/src/util/schemas/responses/UserProfileResponse.ts index 26e7e3bc3..7b63542e2 100644 --- a/src/util/schemas/responses/UserProfileResponse.ts +++ b/src/util/schemas/responses/UserProfileResponse.ts @@ -17,6 +17,7 @@ */ import { + Badge, Member, PublicConnectedAccount, PublicMember, @@ -52,4 +53,5 @@ export interface UserProfileResponse { user_profile: UserProfile; guild_member?: PublicMember; guild_member_profile?: PublicMemberProfile; + badges: Badge[]; } diff --git a/src/util/util/email/index.ts b/src/util/util/email/index.ts index 619cc5c3f..e3382794b 100644 --- a/src/util/util/email/index.ts +++ b/src/util/util/email/index.ts @@ -141,8 +141,9 @@ export const Email: { */ generateLink: async function (type, id, email) { const token = (await generateToken(id, email)) as string; + // puyodead1: this is set to api endpoint because the verification page is on the server since no clients have one, and not all 3rd party clients will have one const instanceUrl = - Config.get().general.frontPage || "http://localhost:3001"; + Config.get().api.endpointPublic || "http://localhost:3001"; const link = `${instanceUrl}/${type}#token=${token}`; return link; }, @@ -187,7 +188,9 @@ export const Email: { const message = { from: - Config.get().general.correspondenceEmail || "noreply@localhost", + Config.get().email.senderAddress || + Config.get().general.correspondenceEmail || + "noreply@localhost", to: email, subject, html, diff --git a/src/util/util/email/transports/SMTP.ts b/src/util/util/email/transports/SMTP.ts index 5b43a8705..e3031943b 100644 --- a/src/util/util/email/transports/SMTP.ts +++ b/src/util/util/email/transports/SMTP.ts @@ -27,9 +27,12 @@ export default async function () { if (!host || !port || secure === null || !username || !password) return console.error("[Email] SMTP has not been configured correctly."); - if (!Config.get().general.correspondenceEmail) + if ( + !Config.get().email.senderAddress && + !Config.get().general.correspondenceEmail + ) return console.error( - "[Email] Correspondence email has not been configured! This is used as the sender email address.", + '[Email] You have to configure either "email_senderAddress" or "general_correspondenceEmail" for emails to work. The configured value is used as the sender address.', ); // construct the transporter