diff --git a/assets/openapi.json b/assets/openapi.json
index f649c9b22..0a211d3c3 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,12 @@
"$ref": "#/components/schemas/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/components/schemas/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -2963,23 +3088,6 @@
"user_ids"
]
},
- "PartialEmoji": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "animated": {
- "type": "boolean"
- }
- },
- "required": [
- "name"
- ]
- },
"MessageType": {
"enum": [
0,
@@ -3018,40 +3126,71 @@
],
"type": "number"
},
- "MessageComponent": {
+ "Poll": {
"type": "object",
"properties": {
- "type": {
- "type": "integer"
+ "question": {
+ "$ref": "#/components/schemas/PollMedia"
},
- "style": {
- "type": "integer"
- },
- "label": {
- "type": "string"
- },
- "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 +3583,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/components/schemas/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/components/schemas/Poll"
},
"hit": {
"type": "boolean",
@@ -3466,6 +3610,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -5212,7 +5357,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 +5503,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 +6104,9 @@
"explicit_content_filter": {
"type": "integer"
},
+ "friend_discovery_flags": {
+ "type": "integer"
+ },
"friend_source_flags": {
"$ref": "#/components/schemas/FriendSourceFlags"
},
@@ -5982,6 +6170,9 @@
},
"timezone_offset": {
"type": "integer"
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean"
}
}
},
@@ -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": "",
diff --git a/assets/schemas.json b/assets/schemas.json
index 7a57dfcf5..a77f86b67 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"
@@ -1937,6 +2053,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -2027,6 +2147,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -2044,6 +2168,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -2062,7 +2187,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -2379,6 +2505,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -3116,24 +3248,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 +3286,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": {
@@ -3607,7 +3754,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -3630,6 +3782,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -5069,6 +5222,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 +5808,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -6157,6 +6426,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -6247,6 +6520,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -6264,6 +6541,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -6282,7 +6560,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -6599,6 +6878,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -7336,24 +7621,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 +7659,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 +8127,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -7850,6 +8155,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -9289,6 +9595,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 +10181,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -10377,6 +10799,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -10467,6 +10893,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -10484,6 +10914,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -10502,7 +10933,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -10819,6 +11251,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -11556,24 +11994,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 +12032,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": {
@@ -12047,7 +12500,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -12070,6 +12528,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -13504,6 +13963,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 +14549,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -14592,6 +15167,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -14682,6 +15261,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -14699,6 +15282,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -14717,7 +15301,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -15034,6 +15619,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -15771,24 +16362,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 +16400,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 +16868,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -16285,6 +16896,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -17755,6 +18367,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 +18953,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -18843,6 +19571,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -18933,6 +19665,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -18950,6 +19686,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -18968,7 +19705,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -19285,6 +20023,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -20022,24 +20766,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 +20804,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 +21272,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -20536,6 +21300,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -21975,6 +22740,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 +23326,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -23063,6 +23944,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -23153,6 +24038,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -23170,6 +24059,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -23188,7 +24078,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -23505,6 +24396,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -24242,24 +25139,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 +25177,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": {
@@ -24733,7 +25645,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -24756,6 +25673,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -26186,6 +27104,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 +27690,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -27274,6 +28308,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -27364,6 +28402,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -27381,6 +28423,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -27399,7 +28442,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -27716,6 +28760,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -28453,24 +29503,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 +29541,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": {
@@ -28944,7 +30009,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -28967,6 +30037,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -30400,6 +31471,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 +32057,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -31488,6 +32675,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -31578,6 +32769,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -31595,6 +32790,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -31613,7 +32809,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -31930,6 +33127,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -32667,24 +33870,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 +33908,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": {
@@ -33158,7 +34376,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -33181,6 +34404,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -34623,6 +35847,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 +36433,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -35711,6 +37051,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -35801,6 +37145,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -35818,6 +37166,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -35836,7 +37185,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -36153,6 +37503,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -36890,24 +38246,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 +38284,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": {
@@ -37381,7 +38752,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -37404,6 +38780,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -38834,6 +40211,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 +40797,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -39922,6 +41415,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -40012,6 +41509,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -40029,6 +41530,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -40047,7 +41549,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -40364,6 +41867,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -41101,24 +42610,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 +42648,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": {
@@ -41592,7 +43116,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -41615,6 +43144,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -43045,6 +44575,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 +45161,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -44133,6 +45779,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -44223,6 +45873,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -44240,6 +45894,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -44258,7 +45913,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -44575,6 +46231,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -45312,24 +46974,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 +47012,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": {
@@ -45803,7 +47480,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -45826,6 +47508,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -47275,6 +48958,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 +49544,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -48363,6 +50162,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -48453,6 +50256,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -48470,6 +50277,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -48488,7 +50296,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -48805,6 +50614,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -49542,24 +51357,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 +51395,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 +51863,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -50056,6 +51891,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -51489,6 +53325,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 +53911,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -52577,6 +54529,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -52667,6 +54623,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -52684,6 +54644,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -52702,7 +54663,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -53019,6 +54981,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -53756,24 +55724,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 +55762,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 +56230,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -54270,6 +56258,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -55763,6 +57752,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 +58338,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -56851,6 +58956,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -56941,6 +59050,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -56958,6 +59071,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -56976,7 +59090,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -57293,6 +59408,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -58030,24 +60151,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 +60189,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": {
@@ -58521,7 +60657,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -58544,6 +60685,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -59996,6 +62138,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 +62724,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -61084,6 +63342,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -61174,6 +63436,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -61191,6 +63457,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -61209,7 +63476,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -61526,6 +63794,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -62263,24 +64537,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 +64575,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 +65043,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -62777,6 +65071,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -64370,6 +66665,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 +67251,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -65458,6 +67869,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -65548,6 +67963,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -65565,6 +67984,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -65583,7 +68003,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -65900,6 +68321,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -66637,24 +69064,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 +69102,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 +69570,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -67151,6 +69598,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -68602,6 +71050,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 +71636,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -69690,6 +72254,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -69780,6 +72348,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -69797,6 +72369,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -69815,7 +72388,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -70132,6 +72706,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -70869,24 +73449,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 +73487,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 +73955,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -71383,6 +73983,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -72844,6 +75445,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 +76031,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -73932,6 +76649,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -74022,6 +76743,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -74039,6 +76764,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -74057,7 +76783,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -74374,6 +77101,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -75111,24 +77844,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 +77882,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": {
@@ -75602,7 +78350,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -75625,6 +78378,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -77068,6 +79822,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 +80408,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -78156,6 +81026,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -78246,6 +81120,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -78263,6 +81141,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -78281,7 +81160,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -78598,6 +81478,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -79335,24 +82221,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 +82259,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 +82727,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -79849,6 +82755,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -81298,6 +84205,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 +84791,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -82386,6 +85409,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -82476,6 +85503,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -82493,6 +85524,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -82511,7 +85543,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -82828,6 +85861,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -83565,24 +86604,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 +86642,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 +87110,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -84079,6 +87138,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -85518,6 +88578,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 +89164,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -86606,6 +89782,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -86696,6 +89876,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -86713,6 +89897,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -86731,7 +89916,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -87048,6 +90234,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -87785,24 +90977,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 +91015,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": {
@@ -88276,7 +91483,4373 @@
},
"components": {
"type": "array",
- "items": {}
+ "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"
+ }
+ },
+ "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"
+ }
+ },
+ "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"
+ ]
+ },
+ "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#"
+ },
+ "MessageAcknowledgeSchema": {
+ "type": "object",
+ "properties": {
+ "manual": {
+ "type": "boolean"
+ },
+ "mention_count": {
+ "type": "integer"
+ }
+ },
+ "additionalProperties": false,
+ "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"
+ }
+ },
+ "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": {
+ "type": "array",
+ "items": {
+ "$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",
@@ -88299,6 +95872,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -89194,54 +96768,192 @@
"mfa",
"sms",
"ticket",
- "token"
+ "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#"
+ },
+ "MessageCreateSchema": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "integer"
},
- "WebAuthnResponse": {
+ "content": {
+ "type": "string"
+ },
+ "mobile_network_type": {
+ "type": "string"
+ },
+ "nonce": {
+ "type": "string"
+ },
+ "channel_id": {
+ "type": "string"
+ },
+ "tts": {
+ "type": "boolean"
+ },
+ "flags": {
+ "type": "integer"
+ },
+ "embeds": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Embed"
+ }
+ },
+ "embed": {
+ "$ref": "#/definitions/Embed"
+ },
+ "allowed_mentions": {
"type": "object",
"properties": {
- "webauthn": {
- "type": "string"
+ "parse": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
},
- "ticket": {
+ "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"
},
- "mfa": {
- "type": "boolean",
- "enum": [
- true
- ]
+ "channel_id": {
+ "type": "string"
},
- "sms": {
- "type": "boolean",
- "enum": [
- false
- ]
+ "guild_id": {
+ "type": "string"
},
- "token": {
- "type": "null"
+ "fail_if_not_exists": {
+ "type": "boolean"
}
},
"additionalProperties": false,
"required": [
- "mfa",
- "sms",
- "ticket",
- "token",
- "webauthn"
+ "channel_id",
+ "message_id"
]
- }
- },
- "$schema": "http://json-schema.org/draft-07/schema#"
- },
- "MessageAcknowledgeSchema": {
- "type": "object",
- "properties": {
- "manual": {
+ },
+ "payload_json": {
+ "type": "string"
+ },
+ "file": {
+ "type": "object",
+ "properties": {
+ "filename": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "filename"
+ ]
+ },
+ "attachments": {
+ "description": "TODO: we should create an interface for attachments\nTODO: OpenWAAO<-->attachment-style metadata conversion",
+ "type": "array",
+ "items": {
+ "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"
},
- "mention_count": {
- "type": "integer"
+ "applied_tags": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "thread_name": {
+ "type": "string"
+ },
+ "avatar_url": {
+ "type": "string"
}
},
"additionalProperties": false,
@@ -89726,6 +97438,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 +98024,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -90814,6 +98642,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -90904,6 +98736,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -90921,6 +98757,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -90939,7 +98776,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -91256,6 +99094,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -91993,24 +99837,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 +99875,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": {
@@ -92484,7 +100343,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -92507,6 +100371,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -93442,135 +101307,8 @@
},
"$schema": "http://json-schema.org/draft-07/schema#"
},
- "MessageCreateSchema": {
- "type": "object",
- "properties": {
- "type": {
- "type": "integer"
- },
- "content": {
- "type": "string"
- },
- "mobile_network_type": {
- "type": "string"
- },
- "nonce": {
- "type": "string"
- },
- "channel_id": {
- "type": "string"
- },
- "tts": {
- "type": "boolean"
- },
- "flags": {
- "type": "integer"
- },
- "embeds": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Embed"
- }
- },
- "embed": {
- "$ref": "#/definitions/Embed"
- },
- "allowed_mentions": {
- "type": "object",
- "properties": {
- "parse": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "roles": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "users": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "replied_user": {
- "type": "boolean"
- }
- },
- "additionalProperties": false
- },
- "message_reference": {
- "type": "object",
- "properties": {
- "message_id": {
- "type": "string"
- },
- "channel_id": {
- "type": "string"
- },
- "guild_id": {
- "type": "string"
- },
- "fail_if_not_exists": {
- "type": "boolean"
- }
- },
- "additionalProperties": false,
- "required": [
- "channel_id",
- "message_id"
- ]
- },
- "payload_json": {
- "type": "string"
- },
- "file": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- }
- },
- "additionalProperties": false,
- "required": [
- "filename"
- ]
- },
- "attachments": {
- "description": "TODO: we should create an interface for attachments\nTODO: OpenWAAO<-->attachment-style metadata conversion",
- "type": "array",
- "items": {
- "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": [
@@ -94052,6 +101790,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 +102376,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -95140,6 +102994,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -95230,6 +103088,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -95247,6 +103109,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -95265,7 +103128,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -95582,6 +103446,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -96319,24 +104189,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 +104227,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": {
@@ -96810,7 +104695,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -96833,6 +104723,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -97890,7 +105781,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,
@@ -98375,6 +106286,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 +106872,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -99463,6 +107490,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -99553,6 +107584,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -99570,6 +107605,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -99588,7 +107624,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -99905,6 +107942,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -100642,24 +108685,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 +108723,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": {
@@ -101133,7 +109191,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -101156,6 +109219,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -102586,6 +110650,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 +111236,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -103674,6 +111854,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -103764,6 +111948,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -103781,6 +111969,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -103799,7 +111988,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -104116,6 +112306,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -104853,24 +113049,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 +113087,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": {
@@ -105344,7 +113555,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -105367,6 +113583,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -106805,6 +115022,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 +115608,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -107893,6 +116226,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -107983,6 +116320,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -108000,6 +116341,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -108018,7 +116360,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -108335,6 +116678,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -109072,24 +117421,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 +117459,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": {
@@ -109563,7 +117927,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -109586,6 +117955,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -111017,6 +119387,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 +119973,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -112105,6 +120591,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -112195,6 +120685,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -112212,6 +120706,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -112230,7 +120725,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -112547,6 +121043,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -113284,24 +121786,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 +121824,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": {
@@ -113775,7 +122292,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -113798,6 +122320,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -115229,6 +123752,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 +124338,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -116317,6 +124956,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -116407,6 +125050,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -116424,6 +125071,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -116442,7 +125090,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -116759,6 +125408,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -117496,24 +126151,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 +126189,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": {
@@ -117987,7 +126657,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -118010,6 +126685,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -119476,6 +128152,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 +128738,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -120564,6 +129356,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -120654,6 +129450,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -120671,6 +129471,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -120689,7 +129490,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -121006,6 +129808,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -121743,24 +130551,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 +130589,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": {
@@ -122234,7 +131057,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -122257,6 +131085,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -123688,6 +132517,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 +133103,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -124776,6 +133721,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -124866,6 +133815,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -124883,6 +133836,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -124901,7 +133855,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -125218,6 +134173,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -125955,24 +134916,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 +134954,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": {
@@ -126446,7 +135422,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -126469,6 +135450,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -127899,6 +136881,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 +137467,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -128987,6 +138085,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -129077,6 +138179,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -129094,6 +138200,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -129112,7 +138219,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -129429,6 +138537,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -130166,24 +139280,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 +139318,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": {
@@ -130657,7 +139786,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -130680,6 +139814,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -132125,6 +141260,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 +141846,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -133213,6 +142464,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -133303,6 +142558,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -133320,6 +142579,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -133338,7 +142598,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -133655,6 +142916,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -134392,24 +143659,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 +143697,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": {
@@ -134883,7 +144165,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -134906,6 +144193,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -136340,6 +145628,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 +146214,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -137428,6 +146832,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -137518,6 +146926,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -137535,6 +146947,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -137553,7 +146966,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -137870,6 +147284,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -138607,24 +148027,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 +148065,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": {
@@ -139098,7 +148533,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -139121,6 +148561,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -140629,6 +150070,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 +150656,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -141717,6 +151274,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -141807,6 +151368,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -141824,6 +151389,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -141842,7 +151408,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -142159,6 +151726,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -142896,24 +152469,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 +152507,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": {
@@ -143387,7 +152975,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -143410,6 +153003,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -144840,6 +154434,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 +155020,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -145928,6 +155638,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -146018,6 +155732,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -146035,6 +155753,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -146053,7 +155772,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -146370,6 +156090,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -147107,24 +156833,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 +156871,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 +157339,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -147621,6 +157367,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -149051,6 +158798,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 +159384,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -150139,6 +160002,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -150229,6 +160096,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -150246,6 +160117,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -150264,7 +160136,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -150581,6 +160454,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -151318,24 +161197,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 +161235,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 +161703,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -151832,6 +161731,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -153259,6 +163159,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 +163745,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -154347,6 +164363,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -154437,6 +164457,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -154454,6 +164478,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -154472,7 +164497,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -154789,6 +164815,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -155526,24 +165558,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 +165596,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": {
@@ -156017,7 +166064,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -156040,6 +166092,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -157473,6 +167526,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 +168112,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -158561,6 +168730,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -158651,6 +168824,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -158668,6 +168845,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -158686,7 +168864,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -159003,6 +169182,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -159740,24 +169925,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 +169963,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": {
@@ -160231,7 +170431,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -160254,6 +170459,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -161697,6 +171903,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 +172489,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -162785,6 +173107,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -162875,6 +173201,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -162892,6 +173222,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -162910,7 +173241,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -163227,6 +173559,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -163964,24 +174302,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 +174340,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": {
@@ -164455,7 +174808,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -164478,6 +174836,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -165905,6 +176264,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 +176850,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -166993,6 +177468,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -167083,6 +177562,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -167100,6 +177583,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -167118,7 +177602,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -167435,6 +177920,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -168172,24 +178663,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 +178701,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 +179169,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -168686,6 +179197,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -170162,6 +180674,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 +181260,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -171250,6 +181878,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -171340,6 +181972,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -171357,6 +181993,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -171375,7 +182012,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -171692,6 +182330,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -172429,24 +183073,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 +183111,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": {
@@ -172920,7 +183579,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -172943,6 +183607,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -174405,6 +185070,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 +185656,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -175493,6 +186274,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -175583,6 +186368,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -175600,6 +186389,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -175618,7 +186408,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -175935,6 +186726,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -176672,24 +187469,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 +187507,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 +187975,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -177186,6 +188003,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -178613,6 +189431,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 +190017,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -179701,6 +190635,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -179791,6 +190729,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -179808,6 +190750,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -179826,7 +190769,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -180143,6 +191087,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -180880,24 +191830,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 +191868,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 +192336,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -181394,6 +192364,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -182846,6 +193817,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 +194403,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -183934,6 +195021,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -184024,6 +195115,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -184041,6 +195136,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -184059,7 +195155,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -184376,6 +195473,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -185113,24 +196216,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 +196254,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": {
@@ -185604,7 +196722,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -185627,6 +196750,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -186621,6 +197745,9 @@
"explicit_content_filter": {
"type": "integer"
},
+ "friend_discovery_flags": {
+ "type": "integer"
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -186684,6 +197811,9 @@
},
"timezone_offset": {
"type": "integer"
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean"
}
},
"additionalProperties": false,
@@ -187168,6 +198298,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 +198884,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -188256,6 +199502,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -188346,6 +199596,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -188363,6 +199617,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -188381,7 +199636,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -188698,6 +199954,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -189435,24 +200697,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 +200735,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": {
@@ -189926,7 +201203,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -189949,6 +201231,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -191375,6 +202658,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 +203244,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -192463,6 +203862,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -192553,6 +203956,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -192570,6 +203977,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -192588,7 +203996,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -192905,6 +204314,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -193642,24 +205057,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 +205095,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": {
@@ -194133,7 +205563,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -194156,6 +205591,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -195621,6 +207057,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 +207643,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -196709,6 +208261,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -196799,6 +208355,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -196816,6 +208376,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -196834,7 +208395,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -197151,6 +208713,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -197888,24 +209456,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 +209494,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 +209962,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -198402,6 +209990,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -199855,6 +211444,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 +212030,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -200943,6 +212648,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -201033,6 +212742,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -201050,6 +212763,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -201068,7 +212782,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -201385,6 +213100,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -202122,24 +213843,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 +213881,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": {
@@ -202613,7 +214349,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -202636,6 +214377,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -204141,6 +215883,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 +216469,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -205229,6 +217087,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -205319,6 +217181,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -205336,6 +217202,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -205354,7 +217221,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -205671,6 +217539,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -206408,24 +218282,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 +218320,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": {
@@ -206899,7 +218788,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -206922,6 +218816,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -208349,6 +220244,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 +220830,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -209437,6 +221448,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -209527,6 +221542,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -209544,6 +221563,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -209562,7 +221582,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -209879,6 +221900,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -210616,24 +222643,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 +222681,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": {
@@ -211107,7 +223149,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -211130,6 +223177,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -212565,6 +224613,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 +225199,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -213653,6 +225817,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -213743,6 +225911,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -213760,6 +225932,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -213778,7 +225951,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -214095,6 +226269,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -214832,24 +227012,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 +227050,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": {
@@ -215323,7 +227518,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -215346,6 +227546,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -216771,6 +228972,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 +229558,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -217859,6 +230176,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -217949,6 +230270,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -217966,6 +230291,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -217984,7 +230310,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -218301,6 +230628,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -219038,24 +231371,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 +231409,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 +231877,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -219552,6 +231905,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -220983,6 +233337,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 +233923,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -222071,6 +234541,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -222161,6 +234635,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -222178,6 +234656,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -222196,7 +234675,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -222513,6 +234993,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -223250,24 +235736,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 +235774,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": {
@@ -223741,7 +236242,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -223764,6 +236270,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -225195,6 +237702,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 +238288,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -226283,6 +238906,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -226373,6 +239000,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -226390,6 +239021,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -226408,7 +239040,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -226725,6 +239358,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -227462,24 +240101,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 +240139,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": {
@@ -227953,7 +240607,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -227976,6 +240635,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -229407,6 +242067,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 +242653,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -230495,6 +243271,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -230585,6 +243365,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -230602,6 +243386,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -230620,7 +243405,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -230937,6 +243723,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -231674,24 +244466,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 +244504,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": {
@@ -232165,7 +244972,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -232188,6 +245000,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -233651,6 +246464,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 +247050,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -234739,6 +247668,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -234829,6 +247762,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -234846,6 +247783,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -234864,7 +247802,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -235181,6 +248120,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -235918,24 +248863,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 +248901,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": {
@@ -236409,7 +249369,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -236432,6 +249397,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -237867,6 +250833,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 +251419,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -238955,6 +252037,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -239045,6 +252131,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -239062,6 +252152,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -239080,7 +252171,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -239397,6 +252489,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -240134,24 +253232,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 +253270,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 +253738,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -240648,6 +253766,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -242073,6 +255192,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 +255778,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -243161,6 +256396,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -243251,6 +256490,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -243268,6 +256511,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -243286,7 +256530,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -243603,6 +256848,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -244340,24 +257591,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 +257629,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 +258097,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -244854,6 +258125,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -246285,6 +259557,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 +260143,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -247373,6 +260761,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -247463,6 +260855,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -247480,6 +260876,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -247498,7 +260895,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -247815,6 +261213,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -248552,24 +261956,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 +261994,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": {
@@ -249043,7 +262462,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -249066,6 +262490,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -250508,6 +263933,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 +264519,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -251596,6 +265137,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -251686,6 +265231,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -251703,6 +265252,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -251721,7 +265271,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -252038,6 +265589,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -252775,24 +266332,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 +266370,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 +266838,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -253289,6 +266866,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -254745,6 +268323,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 +268909,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -255833,6 +269527,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -255923,6 +269621,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -255940,6 +269642,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -255958,7 +269661,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -256275,6 +269979,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -257012,24 +270722,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 +270760,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 +271228,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -257526,6 +271256,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -258953,6 +272684,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 +273270,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -260041,6 +273888,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -260131,6 +273982,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -260148,6 +274003,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -260166,7 +274022,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -260483,6 +274340,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -261220,24 +275083,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 +275121,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": {
@@ -261711,7 +275589,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -261734,6 +275617,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -263164,6 +277048,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 +277634,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -264252,6 +278252,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -264342,6 +278346,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -264359,6 +278367,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -264377,7 +278386,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -264694,6 +278704,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -265431,24 +279447,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 +279485,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 +279953,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -265945,6 +279981,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -267404,6 +281441,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 +282027,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -268492,6 +282645,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -268582,6 +282739,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -268599,6 +282760,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -268617,7 +282779,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -268934,6 +283097,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -269671,24 +283840,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 +283878,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 +284346,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -270185,6 +284374,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -271612,6 +285802,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 +286388,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -272700,6 +287006,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -272790,6 +287100,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -272807,6 +287121,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -272825,7 +287140,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -273142,6 +287458,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -273879,24 +288201,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 +288239,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": {
@@ -274370,7 +288707,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -274393,6 +288735,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -275899,6 +290242,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 +290828,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -276987,6 +291446,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -277077,6 +291540,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -277094,6 +291561,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -277112,7 +291580,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -277429,6 +291898,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -278166,24 +292641,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 +292679,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": {
@@ -278657,7 +293147,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -278680,6 +293175,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -280114,6 +294610,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 +295196,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -281202,6 +295814,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -281292,6 +295908,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -281309,6 +295929,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -281327,7 +295948,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -281644,6 +296266,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -282381,24 +297009,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 +297047,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": {
@@ -282872,7 +297515,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -282895,6 +297543,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -284322,6 +298971,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 +299557,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -285410,6 +300175,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -285500,6 +300269,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -285517,6 +300290,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -285535,7 +300309,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -285852,6 +300627,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -286589,24 +301370,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 +301408,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 +301876,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -287103,6 +301904,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -288530,6 +303332,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 +303918,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -289618,6 +304536,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -289708,6 +304630,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -289725,6 +304651,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -289743,7 +304670,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -290060,6 +304988,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -290797,24 +305731,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 +305769,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 +306237,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -291311,6 +306265,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -292745,6 +307700,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 +308286,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -293833,6 +308904,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -293923,6 +308998,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -293940,6 +309019,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -293958,7 +309038,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -294275,6 +309356,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -295012,24 +310099,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 +310137,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 +310605,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -295526,6 +310633,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -296957,6 +312065,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 +312651,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -298045,6 +313269,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -298135,6 +313363,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -298152,6 +313384,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -298170,7 +313403,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -298487,6 +313721,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -299224,24 +314464,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 +314502,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 +314970,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -299738,6 +314998,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -301165,6 +316426,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 +317012,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -302253,6 +317630,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -302343,6 +317724,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -302360,6 +317745,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -302378,7 +317764,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -302695,6 +318082,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -303432,24 +318825,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 +318863,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": {
@@ -303923,7 +319331,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -303946,6 +319359,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -305448,6 +320862,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 +321448,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -306536,6 +322066,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -306626,6 +322160,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -306643,6 +322181,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -306661,7 +322200,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -306978,6 +322518,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -307715,24 +323261,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 +323299,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": {
@@ -308206,7 +323767,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -308229,6 +323795,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -309667,6 +325234,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 +325820,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -310755,6 +326438,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -310845,6 +326532,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -310862,6 +326553,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -310880,7 +326572,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -311197,6 +326890,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -311934,24 +327633,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 +327671,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": {
@@ -312425,7 +328139,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -312448,6 +328167,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -313887,6 +329607,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 +330193,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -314975,6 +330811,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -315065,6 +330905,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -315082,6 +330926,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -315100,7 +330945,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -315417,6 +331263,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -316154,24 +332006,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 +332044,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": {
@@ -316645,7 +332512,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -316668,6 +332540,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -318157,6 +334030,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 +334616,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -319245,6 +335234,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -319335,6 +335328,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -319352,6 +335349,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -319370,7 +335368,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -319687,6 +335686,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -320424,24 +336429,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 +336467,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": {
@@ -320915,7 +336935,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -320938,6 +336963,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -322386,6 +338412,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 +338998,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -323474,6 +339616,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -323564,6 +339710,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -323581,6 +339731,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -323599,7 +339750,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -323916,6 +340068,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -324653,24 +340811,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 +340849,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": {
@@ -325144,7 +341317,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -325167,6 +341345,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -326621,6 +342800,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 +343386,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -327709,6 +344004,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -327799,6 +344098,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -327816,6 +344119,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -327834,7 +344138,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -328151,6 +344456,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -328888,24 +345199,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 +345237,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 +345705,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -329402,6 +345733,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -330850,6 +347182,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 +347768,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -331938,6 +348386,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -332028,6 +348480,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -332045,6 +348501,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -332063,7 +348520,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -332380,6 +348838,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -333117,24 +349581,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 +349619,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 +350087,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -333631,6 +350115,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -335058,6 +351543,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 +352129,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -336146,6 +352747,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -336236,6 +352841,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -336253,6 +352862,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -336271,7 +352881,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -336588,6 +353199,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -337325,24 +353942,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 +353980,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": {
@@ -337816,7 +354448,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -337839,6 +354476,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -339294,6 +355932,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 +356518,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -340382,6 +357136,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -340472,6 +357230,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -340489,6 +357251,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -340507,7 +357270,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -340824,6 +357588,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -341561,24 +358331,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 +358369,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": {
@@ -342052,7 +358837,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -342075,6 +358865,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -343542,6 +360333,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 +360919,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -344630,6 +361537,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -344720,6 +361631,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -344737,6 +361652,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -344755,7 +361671,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -345072,6 +361989,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -345809,24 +362732,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 +362770,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": {
@@ -346300,7 +363238,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -346323,6 +363266,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -347744,6 +364688,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 +365274,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -348832,6 +365892,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -348922,6 +365986,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -348939,6 +366007,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -348957,7 +366026,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -349274,6 +366344,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -350011,24 +367087,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 +367125,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": {
@@ -350502,7 +367593,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -350525,6 +367621,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -351956,6 +369053,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 +369639,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -353044,6 +370257,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -353134,6 +370351,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -353151,6 +370372,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -353169,7 +370391,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -353486,6 +370709,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -354223,24 +371452,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 +371490,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": {
@@ -354714,7 +371958,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -354737,6 +371986,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -356164,6 +373414,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 +374000,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -357252,6 +374618,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -357342,6 +374712,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -357359,6 +374733,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -357377,7 +374752,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -357694,6 +375070,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -358431,24 +375813,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 +375851,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 +376319,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -358945,6 +376347,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -360379,6 +377782,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 +378368,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -361467,6 +378986,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -361557,6 +379080,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -361574,6 +379101,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -361592,7 +379120,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -361909,6 +379438,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -362646,24 +380181,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 +380219,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 +380687,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -363160,6 +380715,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -364798,6 +382354,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 +382940,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -365886,6 +383558,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -365976,6 +383652,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -365993,6 +383673,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -366011,7 +383692,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -366328,6 +384010,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -367065,24 +384753,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 +384791,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 +385259,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -367579,6 +385287,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -368997,6 +386706,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 +387292,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -370085,6 +387910,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -370175,6 +388004,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -370192,6 +388025,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -370210,7 +388044,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -370527,6 +388362,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -371264,24 +389105,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 +389143,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 +389611,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -371778,6 +389639,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -373290,6 +391152,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 +391738,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -374378,6 +392356,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -374468,6 +392450,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -374485,6 +392471,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -374503,7 +392490,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -374820,6 +392808,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -375557,24 +393551,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 +393589,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": {
@@ -376048,7 +394057,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -376071,6 +394085,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -377492,6 +395507,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 +396093,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -378580,6 +396711,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -378670,6 +396805,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -378687,6 +396826,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -378705,7 +396845,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -379022,6 +397163,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -379759,24 +397906,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 +397944,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": {
@@ -380250,7 +398412,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -380273,6 +398440,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -381694,6 +399862,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 +400448,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -382782,6 +401066,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -382872,6 +401160,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -382889,6 +401181,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -382907,7 +401200,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -383224,6 +401518,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -383961,24 +402261,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 +402299,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": {
@@ -384452,7 +402767,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -384475,6 +402795,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -385896,6 +404217,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 +404803,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -386984,6 +405421,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -387074,6 +405515,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -387091,6 +405536,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -387109,7 +405555,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -387426,6 +405873,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -388163,24 +406616,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 +406654,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": {
@@ -388654,7 +407122,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -388677,6 +407150,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -390192,6 +408666,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 +409252,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -391280,6 +409870,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -391370,6 +409964,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -391387,6 +409985,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -391405,7 +410004,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -391722,6 +410322,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -392459,24 +411065,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 +411103,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": {
@@ -392950,7 +411571,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -392973,6 +411599,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -394392,6 +413019,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 +413605,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -395480,6 +414223,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -395570,6 +414317,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -395587,6 +414338,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -395605,7 +414357,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -395922,6 +414675,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -396659,24 +415418,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 +415456,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 +415924,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -397173,6 +415952,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -398592,6 +417372,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 +417958,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -399680,6 +418576,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -399770,6 +418670,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -399787,6 +418691,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -399805,7 +418710,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -400122,6 +419028,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -400859,24 +419771,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 +419809,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 +420277,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -401373,6 +420305,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -402792,6 +421725,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 +422311,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -403880,6 +422929,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -403970,6 +423023,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -403987,6 +423044,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -404005,7 +423063,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -404322,6 +423381,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -405059,24 +424124,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 +424162,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 +424630,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -405573,6 +424658,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -406994,6 +426080,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 +426666,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -408082,6 +427284,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -408172,6 +427378,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -408189,6 +427399,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -408207,7 +427418,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -408524,6 +427736,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -409261,24 +428479,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 +428517,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": {
@@ -409752,7 +428985,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -409775,6 +429013,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -411196,6 +430435,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 +431021,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -412284,6 +431639,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -412374,6 +431733,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -412391,6 +431754,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -412409,7 +431773,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -412726,6 +432091,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -413463,24 +432834,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 +432872,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 +433340,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -413977,6 +433368,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -415398,6 +434790,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 +435376,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -416486,6 +435994,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -416576,6 +436088,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -416593,6 +436109,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -416611,7 +436128,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -416928,6 +436446,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -417665,24 +437189,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 +437227,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": {
@@ -418156,7 +437695,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -418179,6 +437723,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -419600,6 +439145,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 +439731,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -420688,6 +440349,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -420778,6 +440443,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -420795,6 +440464,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -420813,7 +440483,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -421130,6 +440801,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -421867,24 +441544,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 +441582,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": {
@@ -422358,7 +442050,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -422381,6 +442078,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -423802,6 +443500,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 +444086,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -424890,6 +444704,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -424980,6 +444798,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -424997,6 +444819,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -425015,7 +444838,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -425332,6 +445156,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -426069,24 +445899,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 +445937,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 +446405,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -426583,6 +446433,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -428068,6 +447919,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 +448505,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -429156,6 +449123,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -429246,6 +449217,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -429263,6 +449238,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -429281,7 +449257,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -429598,6 +449575,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -430335,24 +450318,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 +450356,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": {
@@ -430826,7 +450824,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -430849,6 +450852,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -432270,6 +452274,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 +452860,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -433358,6 +453478,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -433448,6 +453572,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -433465,6 +453593,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -433483,7 +453612,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -433800,6 +453930,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -434537,24 +454673,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 +454711,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 +455179,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -435051,6 +455207,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -436472,6 +456629,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 +457215,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -437560,6 +457833,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -437650,6 +457927,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -437667,6 +457948,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -437685,7 +457967,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -438002,6 +458285,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -438739,24 +459028,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 +459066,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 +459534,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -439253,6 +459562,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -440674,6 +460984,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 +461570,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -441762,6 +462188,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -441852,6 +462282,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -441869,6 +462303,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -441887,7 +462322,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -442204,6 +462640,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -442941,24 +463383,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 +463421,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": {
@@ -443432,7 +463889,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -443455,6 +463917,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -444923,6 +465386,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 +465972,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -446011,6 +466590,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -446101,6 +466684,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -446118,6 +466705,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -446136,7 +466724,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -446453,6 +467042,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -447190,24 +467785,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 +467823,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 +468291,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -447704,6 +468319,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -449361,6 +469977,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": {
@@ -449834,7 +470563,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -450449,6 +471181,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -450539,6 +471275,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -450556,6 +471296,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -450574,7 +471315,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -450891,6 +471633,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -451628,24 +472376,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 +472414,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 +472882,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -452142,6 +472910,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -453563,6 +474332,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 +474918,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -454651,6 +475536,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -454741,6 +475630,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -454758,6 +475651,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -454776,7 +475670,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -455093,6 +475988,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -455830,24 +476731,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 +476769,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": {
@@ -456321,7 +477237,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -456344,6 +477265,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -457765,6 +478687,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 +479273,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -458853,6 +479891,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -458943,6 +479985,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -458960,6 +480006,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -458978,7 +480025,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -459295,6 +480343,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -460032,24 +481086,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 +481124,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": {
@@ -460523,7 +481592,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -460546,6 +481620,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -461967,6 +483042,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 +483628,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -463055,6 +484246,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -463145,6 +484340,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -463162,6 +484361,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -463180,7 +484380,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -463497,6 +484698,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -464234,24 +485441,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 +485479,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 +485947,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -464748,6 +485975,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -466169,6 +487397,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 +487983,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -467257,6 +488601,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -467347,6 +488695,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -467364,6 +488716,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -467382,7 +488735,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -467699,6 +489053,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -468436,24 +489796,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 +489834,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 +490302,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -468950,6 +490330,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -470397,6 +491778,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 +492364,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -471485,6 +492982,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -471575,6 +493076,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -471592,6 +493097,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -471610,7 +493116,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -471927,6 +493434,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -472664,24 +494177,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 +494215,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": {
@@ -473155,7 +494683,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -473178,6 +494711,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -474599,6 +496133,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 +496719,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -475687,6 +497337,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -475777,6 +497431,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -475794,6 +497452,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -475812,7 +497471,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -476129,6 +497789,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -476866,24 +498532,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 +498570,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": {
@@ -477357,7 +499038,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -477380,6 +499066,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -478822,6 +500509,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 +501095,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -479910,6 +501713,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -480000,6 +501807,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -480017,6 +501828,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -480035,7 +501847,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -480352,6 +502165,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -481089,24 +502908,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 +502946,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": {
@@ -481580,7 +503414,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -481603,6 +503442,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -483038,6 +504878,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 +505464,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -484126,6 +506082,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -484216,6 +506176,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -484233,6 +506197,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -484251,7 +506216,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -484568,6 +506534,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -485305,24 +507277,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 +507315,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 +507783,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -485819,6 +507811,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -487366,6 +509359,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 +509945,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -488454,6 +510563,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -488544,6 +510657,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -488561,6 +510678,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -488579,7 +510697,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -488896,6 +511015,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -489633,24 +511758,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 +511796,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": {
@@ -490124,7 +512264,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -490147,6 +512292,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -491592,6 +513738,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 +514324,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -492680,6 +514942,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -492770,6 +515036,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -492787,6 +515057,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -492805,7 +515076,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -493122,6 +515394,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -493859,24 +516137,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 +516175,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 +516643,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -494373,6 +516671,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -495812,6 +518111,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 +518697,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -496900,6 +519315,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -496990,6 +519409,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -497007,6 +519430,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -497025,7 +519449,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -497342,6 +519767,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -498079,24 +520510,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 +520548,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": {
@@ -498570,7 +521016,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -498593,6 +521044,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -500024,6 +522476,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 +523062,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -501112,6 +523680,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -501202,6 +523774,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -501219,6 +523795,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -501237,7 +523814,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -501554,6 +524132,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -502291,24 +524875,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 +524913,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": {
@@ -502782,7 +525381,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -502805,6 +525409,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -504236,6 +526841,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 +527427,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -505324,6 +528045,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -505414,6 +528139,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -505431,6 +528160,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -505449,7 +528179,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -505766,6 +528497,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -506503,24 +529240,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 +529278,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 +529746,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -507017,6 +529774,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -508435,6 +531193,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 +531779,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -509523,6 +532397,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -509613,6 +532491,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -509630,6 +532512,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -509648,7 +532531,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -509965,6 +532849,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -510702,24 +533592,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 +533630,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 +534098,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -511216,6 +534126,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -512649,6 +535560,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 +536146,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -513737,6 +536764,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -513827,6 +536858,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -513844,6 +536879,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -513862,7 +536898,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -514179,6 +537216,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -514916,24 +537959,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 +537997,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 +538465,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -515430,6 +538493,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -516860,6 +539924,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 +540510,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -517948,6 +541128,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -518038,6 +541222,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -518055,6 +541243,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -518073,7 +541262,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -518390,6 +541580,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -519127,24 +542323,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 +542361,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": {
@@ -519618,7 +542829,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -519641,6 +542857,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -521086,6 +544303,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 +544889,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -522174,6 +545507,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -522264,6 +545601,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -522281,6 +545622,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -522299,7 +545641,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -522616,6 +545959,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -523353,24 +546702,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 +546740,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": {
@@ -523844,7 +547208,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -523867,6 +547236,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -525316,6 +548686,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 +549272,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -526404,6 +549890,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -526494,6 +549984,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -526511,6 +550005,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -526529,7 +550024,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -526846,6 +550342,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -527583,24 +551085,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 +551123,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 +551591,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -528097,6 +551619,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -529525,6 +553048,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 +553634,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -530613,6 +554252,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -530703,6 +554346,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -530720,6 +554367,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -530738,7 +554386,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -531055,6 +554704,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -531792,24 +555447,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 +555485,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": {
@@ -532283,7 +555953,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -532306,6 +555981,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -533733,6 +557409,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 +557995,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -534821,6 +558613,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -534911,6 +558707,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -534928,6 +558728,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -534946,7 +558747,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -535263,6 +559065,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -536000,24 +559808,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 +559846,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": {
@@ -536491,7 +560314,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -536514,6 +560342,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -537941,6 +561770,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 +562356,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -539029,6 +562974,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -539119,6 +563068,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -539136,6 +563089,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -539154,7 +563108,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -539471,6 +563426,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -540208,24 +564169,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 +564207,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": {
@@ -540699,7 +564675,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -540722,6 +564703,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
@@ -542155,6 +566137,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 +566723,10 @@
"$ref": "#/definitions/Guild"
},
"parent_id": {
- "type": "string"
+ "type": [
+ "null",
+ "string"
+ ]
},
"parent": {
"$ref": "#/definitions/Channel"
@@ -543243,6 +567341,10 @@
"type": "integer",
"default": 0
},
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
"friend_source_flags": {
"$ref": "#/definitions/FriendSourceFlags"
},
@@ -543333,6 +567435,10 @@
"timezone_offset": {
"type": "integer",
"default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
}
},
"additionalProperties": false,
@@ -543350,6 +567456,7 @@
"disable_games_tab",
"enable_tts_command",
"explicit_content_filter",
+ "friend_discovery_flags",
"friend_source_flags",
"gateway_connected",
"gif_auto_play",
@@ -543368,7 +567475,8 @@
"status",
"stream_notifications_enabled",
"theme",
- "timezone_offset"
+ "timezone_offset",
+ "view_nsfw_guilds"
]
},
"SecurityKey": {
@@ -543685,6 +567793,12 @@
"$ref": "#/definitions/MessageComponent"
}
},
+ "poll": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Poll"
+ }
+ },
"id": {
"type": "string"
}
@@ -544422,24 +568536,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 +568574,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": {
@@ -544913,7 +569042,12 @@
},
"components": {
"type": "array",
- "items": {}
+ "items": {
+ "$ref": "#/definitions/MessageComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
},
"hit": {
"type": "boolean",
@@ -544936,6 +569070,7 @@
"mention_roles",
"mentions",
"pinned",
+ "poll",
"timestamp",
"tts",
"type"
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/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/util/handlers/Message.ts b/src/api/util/handlers/Message.ts
index 85db26b27..64bcdd567 100644
--- a/src/api/util/handlers/Message.ts
+++ b/src/api/util/handlers/Message.ts
@@ -16,36 +16,36 @@
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
@@ -66,6 +66,7 @@ export async function handleMessage(opts: MessageOptions): Promise {
: undefined;
const message = Message.create({
...opts,
+ poll: opts.poll ? [opts.poll] : undefined,
sticker_items: stickers,
guild_id: channel.guild_id,
channel_id: opts.channel_id,
diff --git a/src/util/entities/Message.ts b/src/util/entities/Message.ts
index 4a9cff4ab..a76ebb1f9 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/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/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/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/schemas/MessageCreateSchema.ts b/src/util/schemas/MessageCreateSchema.ts
index 57abf62f9..495e2ebd6 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;
@@ -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;
}