diff --git a/assets/openapi.json b/assets/openapi.json
index 14d13fa44..5a9730726 100644
--- a/assets/openapi.json
+++ b/assets/openapi.json
@@ -118,10 +118,7 @@
"type": "string"
},
"team_id": {
- "type": [
- "string",
- "integer"
- ]
+ "type": "string"
}
},
"required": [
@@ -3169,6 +3166,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/components/schemas/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -3189,6 +3189,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -3202,6 +3203,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -6307,6 +6316,17 @@
"protocol"
]
},
+ "TeamCreateSchema": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name"
+ ]
+ },
"TemplateCreateSchema": {
"type": "object",
"properties": {
@@ -7661,6 +7681,14 @@
"location"
]
},
+ "TeamListResponse": {
+ "type": "object",
+ "patternProperties": {
+ "^[0-9]+$": {
+ "$ref": "#/components/schemas/Team"
+ }
+ }
+ },
"TenorTrendingResponse": {
"type": "object",
"properties": {
@@ -10622,8 +10650,57 @@
}
],
"responses": {
- "default": {
- "description": "No description available"
+ "200": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/TeamListResponse"
+ }
+ }
+ }
+ }
+ },
+ "parameters": [
+ {
+ "name": "include_payout_account_status",
+ "in": "query",
+ "schema": {
+ "type": "boolean"
+ },
+ "description": "Whether to include team payout account status in the response (default false)"
+ }
+ ],
+ "tags": [
+ "teams"
+ ]
+ },
+ "post": {
+ "security": [
+ {
+ "bearer": []
+ }
+ ],
+ "requestBody": {
+ "required": true,
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/TeamCreateSchema"
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "description": "",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Team"
+ }
+ }
+ }
}
},
"tags": [
diff --git a/assets/schemas.json b/assets/schemas.json
index b91125720..08ba372c4 100644
--- a/assets/schemas.json
+++ b/assets/schemas.json
@@ -93,10 +93,7 @@
"type": "string"
},
"team_id": {
- "type": [
- "string",
- "integer"
- ]
+ "type": "string"
}
},
"additionalProperties": false,
@@ -3331,6 +3328,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -3352,6 +3352,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -3365,6 +3366,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -8171,6 +8180,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -8192,6 +8204,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -8205,6 +8218,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -13011,6 +13032,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -13032,6 +13056,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -13045,6 +13070,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -17846,6 +17879,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -17867,6 +17903,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -17880,6 +17917,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -22717,6 +22762,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -22738,6 +22786,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -22751,6 +22800,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -27557,6 +27614,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -27578,6 +27638,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -27591,6 +27652,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -32388,6 +32457,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -32409,6 +32481,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -32422,6 +32495,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -37222,6 +37303,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -37243,6 +37327,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -37256,6 +37341,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -42065,6 +42158,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -42086,6 +42182,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -42099,6 +42196,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -46896,6 +47001,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -46917,6 +47025,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -46930,6 +47039,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -51727,6 +51844,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -51748,6 +51868,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -51761,6 +51882,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -56574,6 +56703,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -56595,6 +56727,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -56608,6 +56741,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -61408,6 +61549,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -61429,6 +61573,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -61442,6 +61587,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -66300,6 +66453,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -66321,6 +66477,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -66334,6 +66491,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -71153,6 +71318,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -71174,6 +71342,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -71187,6 +71356,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -76147,6 +76324,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -76168,6 +76348,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -76181,6 +76362,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -80999,6 +81188,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -81020,6 +81212,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -81033,6 +81226,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -85861,6 +86062,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -85882,6 +86086,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -85895,6 +86100,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -90705,6 +90918,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -90726,6 +90942,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -90739,6 +90956,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -95555,6 +95780,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -95576,6 +95804,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -95589,6 +95818,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -100395,6 +100632,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -100416,6 +100656,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -100429,6 +100670,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -105223,6 +105472,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -105244,6 +105496,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -105257,6 +105510,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -110188,6 +110449,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -110209,6 +110473,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -110222,6 +110487,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -115007,6 +115280,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -115028,6 +115304,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -115041,6 +115318,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -119969,6 +120254,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -119990,6 +120278,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -120003,6 +120292,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -124800,6 +125097,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -124821,6 +125121,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -124834,6 +125135,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -129639,6 +129948,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -129660,6 +129972,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -129673,6 +129986,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -134471,6 +134792,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -134492,6 +134816,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -134505,6 +134830,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -139303,6 +139636,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -139324,6 +139660,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -139337,6 +139674,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -144169,6 +144514,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -144190,6 +144538,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -144203,6 +144552,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -149001,6 +149358,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -149022,6 +149382,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -149035,6 +149396,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -153832,6 +154201,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -153853,6 +154225,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -153866,6 +154239,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -158699,6 +159080,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -158720,6 +159104,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -158733,6 +159118,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -163545,6 +163938,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -163566,6 +163962,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -163579,6 +163976,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -168380,6 +168785,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -168401,6 +168809,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -168414,6 +168823,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -173289,6 +173706,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -173310,6 +173730,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -173323,6 +173744,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -175143,14 +175572,11 @@
},
"$schema": "http://json-schema.org/draft-07/schema#"
},
- "TemplateCreateSchema": {
+ "TeamCreateSchema": {
"type": "object",
"properties": {
"name": {
"type": "string"
- },
- "description": {
- "type": "string"
}
},
"additionalProperties": false,
@@ -178120,6 +178546,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -178141,6 +178570,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -178154,6 +178584,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -179974,7 +180412,7 @@
},
"$schema": "http://json-schema.org/draft-07/schema#"
},
- "TemplateModifySchema": {
+ "TemplateCreateSchema": {
"type": "object",
"properties": {
"name": {
@@ -182951,6 +183389,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -182972,6 +183413,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -182985,6 +183427,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -184805,16 +185255,19 @@
},
"$schema": "http://json-schema.org/draft-07/schema#"
},
- "TotpDisableSchema": {
+ "TemplateModifySchema": {
"type": "object",
"properties": {
- "code": {
+ "name": {
+ "type": "string"
+ },
+ "description": {
"type": "string"
}
},
"additionalProperties": false,
"required": [
- "code"
+ "name"
],
"definitions": {
"ChannelPermissionOverwriteType": {
@@ -187779,6 +188232,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -187800,6 +188256,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -187813,6 +188270,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -189633,22 +190098,16 @@
},
"$schema": "http://json-schema.org/draft-07/schema#"
},
- "TotpEnableSchema": {
+ "TotpDisableSchema": {
"type": "object",
"properties": {
- "password": {
- "type": "string"
- },
"code": {
"type": "string"
- },
- "secret": {
- "type": "string"
}
},
"additionalProperties": false,
"required": [
- "password"
+ "code"
],
"definitions": {
"ChannelPermissionOverwriteType": {
@@ -192613,6 +193072,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -192634,6 +193096,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -192647,6 +193110,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -194467,32 +194938,22 @@
},
"$schema": "http://json-schema.org/draft-07/schema#"
},
- "TotpSchema": {
+ "TotpEnableSchema": {
"type": "object",
"properties": {
- "code": {
+ "password": {
"type": "string"
},
- "ticket": {
+ "code": {
"type": "string"
},
- "gift_code_sku_id": {
- "type": [
- "null",
- "string"
- ]
- },
- "login_source": {
- "type": [
- "null",
- "string"
- ]
+ "secret": {
+ "type": "string"
}
},
"additionalProperties": false,
"required": [
- "code",
- "ticket"
+ "password"
],
"definitions": {
"ChannelPermissionOverwriteType": {
@@ -197457,6 +197918,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -197478,6 +197942,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -197491,6 +197956,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -199311,16 +199784,32 @@
},
"$schema": "http://json-schema.org/draft-07/schema#"
},
- "UserDeleteSchema": {
+ "TotpSchema": {
"type": "object",
"properties": {
- "user_id": {
+ "code": {
+ "type": "string"
+ },
+ "ticket": {
"type": "string"
+ },
+ "gift_code_sku_id": {
+ "type": [
+ "null",
+ "string"
+ ]
+ },
+ "login_source": {
+ "type": [
+ "null",
+ "string"
+ ]
}
},
"additionalProperties": false,
"required": [
- "user_id"
+ "code",
+ "ticket"
],
"definitions": {
"ChannelPermissionOverwriteType": {
@@ -202285,6 +202774,9738 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
+ "team_id": {
+ "type": "string"
+ },
+ "team": {
+ "$ref": "#/definitions/Team"
+ },
+ "user_id": {
+ "type": "string"
+ },
+ "user": {
+ "$ref": "#/definitions/User"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "id",
+ "membership_state",
+ "permissions",
+ "role",
+ "team",
+ "team_id",
+ "user",
+ "user_id"
+ ]
+ },
+ "TeamMemberState": {
+ "enum": [
+ 1,
+ 2
+ ],
+ "type": "number"
+ },
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
+ "Sticker": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ },
+ "available": {
+ "type": "boolean"
+ },
+ "tags": {
+ "type": "string"
+ },
+ "pack_id": {
+ "type": "string"
+ },
+ "pack": {
+ "$ref": "#/definitions/StickerPack"
+ },
+ "guild_id": {
+ "type": "string"
+ },
+ "guild": {
+ "$ref": "#/definitions/Guild"
+ },
+ "user_id": {
+ "type": "string"
+ },
+ "user": {
+ "$ref": "#/definitions/User"
+ },
+ "type": {
+ "$ref": "#/definitions/StickerType"
+ },
+ "format_type": {
+ "$ref": "#/definitions/StickerFormatType"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "format_type",
+ "id",
+ "name",
+ "pack",
+ "type"
+ ]
+ },
+ "StickerPack": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ },
+ "banner_asset_id": {
+ "type": "string"
+ },
+ "stickers": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Sticker"
+ }
+ },
+ "cover_sticker_id": {
+ "type": "string"
+ },
+ "cover_sticker": {
+ "$ref": "#/definitions/Sticker"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "id",
+ "name",
+ "stickers"
+ ]
+ },
+ "StickerType": {
+ "enum": [
+ 1,
+ 2
+ ],
+ "type": "number"
+ },
+ "StickerFormatType": {
+ "enum": [
+ 0,
+ 1,
+ 2,
+ 3
+ ],
+ "type": "number"
+ },
+ "Attachment": {
+ "type": "object",
+ "properties": {
+ "filename": {
+ "type": "string"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "url": {
+ "type": "string"
+ },
+ "proxy_url": {
+ "type": "string"
+ },
+ "height": {
+ "type": "integer"
+ },
+ "width": {
+ "type": "integer"
+ },
+ "content_type": {
+ "type": "string"
+ },
+ "message_id": {
+ "type": "string"
+ },
+ "message": {
+ "$ref": "#/definitions/Message"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "filename",
+ "id",
+ "message",
+ "message_id",
+ "proxy_url",
+ "size",
+ "url"
+ ]
+ },
+ "Reaction": {
+ "type": "object",
+ "properties": {
+ "count": {
+ "type": "integer"
+ },
+ "emoji": {
+ "$ref": "#/definitions/PartialEmoji"
+ },
+ "user_ids": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "count",
+ "emoji",
+ "user_ids"
+ ]
+ },
+ "MessageType": {
+ "enum": [
+ 0,
+ 1,
+ 10,
+ 11,
+ 12,
+ 13,
+ 14,
+ 15,
+ 16,
+ 19,
+ 2,
+ 20,
+ 255,
+ 3,
+ 4,
+ 41,
+ 42,
+ 43,
+ 5,
+ 50,
+ 6,
+ 63,
+ 7,
+ 8,
+ 9
+ ],
+ "type": "number"
+ },
+ "InteractionType": {
+ "enum": [
+ 0,
+ 1,
+ 2
+ ],
+ "type": "number"
+ },
+ "Poll": {
+ "type": "object",
+ "properties": {
+ "question": {
+ "$ref": "#/definitions/PollMedia"
+ },
+ "answers": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PollAnswer"
+ }
+ },
+ "expiry": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "allow_multiselect": {
+ "type": "boolean"
+ },
+ "results": {
+ "$ref": "#/definitions/PollResult"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "allow_multiselect",
+ "answers",
+ "expiry",
+ "question"
+ ]
+ },
+ "PollResult": {
+ "type": "object",
+ "properties": {
+ "is_finalized": {
+ "type": "boolean"
+ },
+ "answer_counts": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PollAnswerCount"
+ }
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "answer_counts",
+ "is_finalized"
+ ]
+ },
+ "PollAnswerCount": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "count": {
+ "type": "integer"
+ },
+ "me_voted": {
+ "type": "boolean"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "count",
+ "id",
+ "me_voted"
+ ]
+ },
+ "VoiceState": {
+ "type": "object",
+ "properties": {
+ "guild_id": {
+ "type": "string"
+ },
+ "guild": {
+ "$ref": "#/definitions/Guild"
+ },
+ "channel_id": {
+ "type": "string"
+ },
+ "channel": {
+ "$ref": "#/definitions/Channel"
+ },
+ "user_id": {
+ "type": "string"
+ },
+ "user": {
+ "$ref": "#/definitions/User"
+ },
+ "member": {
+ "$ref": "#/definitions/Member"
+ },
+ "session_id": {
+ "type": "string"
+ },
+ "token": {
+ "type": "string"
+ },
+ "deaf": {
+ "type": "boolean"
+ },
+ "mute": {
+ "type": "boolean"
+ },
+ "self_deaf": {
+ "type": "boolean"
+ },
+ "self_mute": {
+ "type": "boolean"
+ },
+ "self_stream": {
+ "type": "boolean"
+ },
+ "self_video": {
+ "type": "boolean"
+ },
+ "suppress": {
+ "type": "boolean"
+ },
+ "request_to_speak_timestamp": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "channel",
+ "channel_id",
+ "deaf",
+ "guild_id",
+ "id",
+ "member",
+ "mute",
+ "self_deaf",
+ "self_mute",
+ "self_video",
+ "session_id",
+ "suppress",
+ "token",
+ "user",
+ "user_id"
+ ]
+ },
+ "ReadState": {
+ "type": "object",
+ "properties": {
+ "channel_id": {
+ "type": "string"
+ },
+ "channel": {
+ "$ref": "#/definitions/Channel"
+ },
+ "user_id": {
+ "type": "string"
+ },
+ "user": {
+ "$ref": "#/definitions/User"
+ },
+ "last_message_id": {
+ "type": "string"
+ },
+ "public_ack": {
+ "type": "string"
+ },
+ "notifications_cursor": {
+ "type": "string"
+ },
+ "last_pin_timestamp": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "mention_count": {
+ "type": "integer"
+ },
+ "manual": {
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "channel",
+ "channel_id",
+ "id",
+ "last_message_id",
+ "manual",
+ "mention_count",
+ "notifications_cursor",
+ "public_ack",
+ "user",
+ "user_id"
+ ]
+ },
+ "Ban": {
+ "type": "object",
+ "properties": {
+ "user_id": {
+ "type": "string"
+ },
+ "user": {
+ "$ref": "#/definitions/User"
+ },
+ "guild_id": {
+ "type": "string"
+ },
+ "guild": {
+ "$ref": "#/definitions/Guild"
+ },
+ "executor_id": {
+ "type": "string"
+ },
+ "executor": {
+ "$ref": "#/definitions/User"
+ },
+ "ip": {
+ "type": "string"
+ },
+ "reason": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "executor",
+ "executor_id",
+ "guild",
+ "guild_id",
+ "id",
+ "ip",
+ "user",
+ "user_id"
+ ]
+ },
+ "Template": {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ },
+ "usage_count": {
+ "type": "integer"
+ },
+ "creator_id": {
+ "type": "string"
+ },
+ "creator": {
+ "$ref": "#/definitions/User"
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "source_guild_id": {
+ "type": "string"
+ },
+ "source_guild": {
+ "$ref": "#/definitions/Guild"
+ },
+ "serialized_source_guild": {
+ "$ref": "#/definitions/Guild"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "code",
+ "created_at",
+ "creator",
+ "creator_id",
+ "id",
+ "name",
+ "serialized_source_guild",
+ "source_guild",
+ "source_guild_id",
+ "updated_at"
+ ]
+ },
+ "Emoji": {
+ "type": "object",
+ "properties": {
+ "animated": {
+ "type": "boolean"
+ },
+ "available": {
+ "type": "boolean"
+ },
+ "guild_id": {
+ "type": "string"
+ },
+ "guild": {
+ "$ref": "#/definitions/Guild"
+ },
+ "user_id": {
+ "type": "string"
+ },
+ "user": {
+ "$ref": "#/definitions/User"
+ },
+ "managed": {
+ "type": "boolean"
+ },
+ "name": {
+ "type": "string"
+ },
+ "require_colons": {
+ "type": "boolean"
+ },
+ "roles": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "groups": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "animated",
+ "available",
+ "groups",
+ "guild",
+ "guild_id",
+ "id",
+ "managed",
+ "name",
+ "require_colons",
+ "roles",
+ "user",
+ "user_id"
+ ]
+ },
+ "GuildWelcomeScreen": {
+ "type": "object",
+ "properties": {
+ "enabled": {
+ "type": "boolean"
+ },
+ "description": {
+ "type": "string"
+ },
+ "welcome_channels": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "description": {
+ "type": "string"
+ },
+ "emoji_id": {
+ "type": "string"
+ },
+ "emoji_name": {
+ "type": "string"
+ },
+ "channel_id": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "channel_id",
+ "description"
+ ]
+ }
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "description",
+ "enabled",
+ "welcome_channels"
+ ]
+ },
+ "GuildMessagesSearchMessage": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "type": {
+ "$ref": "#/definitions/MessageType"
+ },
+ "content": {
+ "type": "string"
+ },
+ "channel_id": {
+ "type": "string"
+ },
+ "author": {
+ "$ref": "#/definitions/PublicUser"
+ },
+ "attachments": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Attachment"
+ }
+ },
+ "embeds": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Embed"
+ }
+ },
+ "mentions": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PublicUser"
+ }
+ },
+ "mention_roles": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Role"
+ }
+ },
+ "pinned": {
+ "type": "boolean"
+ },
+ "mention_everyone": {
+ "type": "boolean"
+ },
+ "tts": {
+ "type": "boolean"
+ },
+ "timestamp": {
+ "type": "string"
+ },
+ "edited_timestamp": {
+ "type": [
+ "null",
+ "string"
+ ]
+ },
+ "flags": {
+ "type": "integer"
+ },
+ "components": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ActionRowComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
+ },
+ "hit": {
+ "type": "boolean",
+ "enum": [
+ true
+ ]
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "attachments",
+ "author",
+ "channel_id",
+ "components",
+ "edited_timestamp",
+ "embeds",
+ "flags",
+ "hit",
+ "id",
+ "mention_roles",
+ "mentions",
+ "pinned",
+ "poll",
+ "timestamp",
+ "tts",
+ "type"
+ ]
+ },
+ "PublicUser": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "premium_since": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "avatar": {
+ "type": "string"
+ },
+ "username": {
+ "type": "string"
+ },
+ "discriminator": {
+ "type": "string"
+ },
+ "public_flags": {
+ "type": "integer"
+ },
+ "accent_color": {
+ "type": "integer"
+ },
+ "banner": {
+ "type": "string"
+ },
+ "bio": {
+ "type": "string"
+ },
+ "bot": {
+ "type": "boolean"
+ },
+ "premium_type": {
+ "type": "integer"
+ },
+ "theme_colors": {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
+ },
+ "pronouns": {
+ "type": "string"
+ },
+ "badge_ids": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "bio",
+ "bot",
+ "discriminator",
+ "id",
+ "premium_since",
+ "premium_type",
+ "public_flags",
+ "username"
+ ]
+ },
+ "GuildVanityUrl": {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "uses": {
+ "type": "integer"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "code",
+ "uses"
+ ]
+ },
+ "GuildVanityUrlNoInvite": {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "null"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "code"
+ ]
+ },
+ "Snowflake": {
+ "description": "A container for useful snowflake-related methods.",
+ "type": "object",
+ "additionalProperties": false
+ },
+ "GuildCreateResponse": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "primary_category_id": {
+ "type": "string"
+ },
+ "large": {
+ "type": "boolean"
+ },
+ "max_members": {
+ "type": "integer"
+ },
+ "max_presences": {
+ "type": "integer"
+ },
+ "max_video_channel_users": {
+ "type": "integer"
+ },
+ "member_count": {
+ "type": "integer"
+ },
+ "presence_count": {
+ "type": "integer"
+ },
+ "template_id": {
+ "type": "string"
+ },
+ "mfa_level": {
+ "type": "integer"
+ },
+ "owner_id": {
+ "type": "string"
+ },
+ "premium_subscription_count": {
+ "type": "integer"
+ },
+ "premium_tier": {
+ "type": "integer"
+ },
+ "welcome_screen": {
+ "$ref": "#/definitions/GuildWelcomeScreen"
+ },
+ "widget_channel_id": {
+ "type": "string"
+ },
+ "widget_enabled": {
+ "type": "boolean"
+ },
+ "nsfw_level": {
+ "type": "integer"
+ },
+ "nsfw": {
+ "type": "boolean"
+ },
+ "parent": {
+ "type": "string"
+ },
+ "icon": {
+ "type": [
+ "null",
+ "string"
+ ]
+ },
+ "banner": {
+ "type": [
+ "null",
+ "string"
+ ]
+ },
+ "description": {
+ "type": "string"
+ },
+ "region": {
+ "type": "string"
+ },
+ "system_channel_id": {
+ "type": "string"
+ },
+ "rules_channel_id": {
+ "type": "string"
+ },
+ "afk_timeout": {
+ "type": "integer"
+ },
+ "explicit_content_filter": {
+ "type": "integer"
+ },
+ "splash": {
+ "type": [
+ "null",
+ "string"
+ ]
+ },
+ "features": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "verification_level": {
+ "type": "integer"
+ },
+ "default_message_notifications": {
+ "type": "integer"
+ },
+ "system_channel_flags": {
+ "type": "integer"
+ },
+ "public_updates_channel_id": {
+ "type": "string"
+ },
+ "afk_channel_id": {
+ "type": "string"
+ },
+ "preferred_locale": {
+ "type": "string"
+ },
+ "premium_progress_bar_enabled": {
+ "type": "boolean"
+ },
+ "discovery_splash": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "id",
+ "name",
+ "nsfw",
+ "welcome_screen",
+ "widget_enabled"
+ ]
+ },
+ "TenorGifResponse": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "title": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string"
+ },
+ "src": {
+ "type": "string"
+ },
+ "gif_src": {
+ "type": "string"
+ },
+ "width": {
+ "type": "integer"
+ },
+ "height": {
+ "type": "integer"
+ },
+ "preview": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "gif_src",
+ "height",
+ "id",
+ "preview",
+ "src",
+ "title",
+ "url",
+ "width"
+ ]
+ },
+ "BackupCode": {
+ "type": "object",
+ "properties": {
+ "user": {
+ "$ref": "#/definitions/User"
+ },
+ "code": {
+ "type": "string"
+ },
+ "consumed": {
+ "type": "boolean"
+ },
+ "expired": {
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "code",
+ "consumed",
+ "expired",
+ "id",
+ "user"
+ ]
+ },
+ "APIGuild": {
+ "type": "object",
+ "properties": {
+ "reload": {
+ "description": "Reloads entity data from the database.",
+ "type": "object",
+ "additionalProperties": false
+ },
+ "name": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "icon": {
+ "type": "string"
+ },
+ "parent": {
+ "type": "string"
+ },
+ "owner_id": {
+ "type": "string"
+ },
+ "nsfw": {
+ "type": "boolean"
+ },
+ "invites": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Invite"
+ }
+ },
+ "voice_states": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/VoiceState"
+ }
+ },
+ "webhooks": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Webhook"
+ }
+ },
+ "toJSON": {
+ "type": "object",
+ "additionalProperties": false
+ },
+ "_do_validate": {
+ "type": "object",
+ "additionalProperties": false
+ },
+ "assign": {
+ "type": "object",
+ "additionalProperties": false
+ },
+ "hasId": {
+ "description": "Checks if entity has an id.\nIf entity composite compose ids, it will check them all.",
+ "type": "object",
+ "additionalProperties": false
+ },
+ "save": {
+ "description": "Saves current entity in the database.\nIf entity does not exist in the database then inserts, otherwise updates.",
+ "type": "object",
+ "additionalProperties": false
+ },
+ "remove": {
+ "description": "Removes current entity from the database.",
+ "type": "object",
+ "additionalProperties": false
+ },
+ "softRemove": {
+ "description": "Records the delete date of current entity.",
+ "type": "object",
+ "additionalProperties": false
+ },
+ "recover": {
+ "description": "Recovers a given entity in the database.",
+ "type": "object",
+ "additionalProperties": false
+ },
+ "roles": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Role"
+ }
+ },
+ "banner": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ },
+ "unavailable": {
+ "type": "boolean"
+ },
+ "channels": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Channel"
+ }
+ },
+ "region": {
+ "type": "string"
+ },
+ "system_channel_id": {
+ "type": "string"
+ },
+ "rules_channel_id": {
+ "type": "string"
+ },
+ "afk_timeout": {
+ "type": "integer"
+ },
+ "explicit_content_filter": {
+ "type": "integer"
+ },
+ "splash": {
+ "type": "string"
+ },
+ "features": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "verification_level": {
+ "type": "integer"
+ },
+ "default_message_notifications": {
+ "type": "integer"
+ },
+ "system_channel_flags": {
+ "type": "integer"
+ },
+ "public_updates_channel_id": {
+ "type": "string"
+ },
+ "afk_channel_id": {
+ "type": "string"
+ },
+ "preferred_locale": {
+ "type": "string"
+ },
+ "premium_progress_bar_enabled": {
+ "type": "boolean"
+ },
+ "discovery_splash": {
+ "type": "string"
+ },
+ "bans": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Ban"
+ }
+ },
+ "primary_category_id": {
+ "type": "string"
+ },
+ "large": {
+ "type": "boolean"
+ },
+ "max_members": {
+ "type": "integer"
+ },
+ "max_presences": {
+ "type": "integer"
+ },
+ "max_video_channel_users": {
+ "type": "integer"
+ },
+ "member_count": {
+ "type": "integer"
+ },
+ "presence_count": {
+ "type": "integer"
+ },
+ "members": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Member"
+ }
+ },
+ "template_id": {
+ "type": "string"
+ },
+ "emojis": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Emoji"
+ }
+ },
+ "stickers": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Sticker"
+ }
+ },
+ "mfa_level": {
+ "type": "integer"
+ },
+ "premium_subscription_count": {
+ "type": "integer"
+ },
+ "premium_tier": {
+ "type": "integer"
+ },
+ "welcome_screen": {
+ "$ref": "#/definitions/GuildWelcomeScreen"
+ },
+ "widget_channel_id": {
+ "type": "string"
+ },
+ "widget_enabled": {
+ "type": "boolean"
+ },
+ "nsfw_level": {
+ "type": "integer"
+ },
+ "permissions": {
+ "type": "integer"
+ },
+ "channel_ordering": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "_do_validate",
+ "assign",
+ "bans",
+ "channel_ordering",
+ "channels",
+ "emojis",
+ "features",
+ "hasId",
+ "id",
+ "invites",
+ "members",
+ "name",
+ "nsfw",
+ "premium_progress_bar_enabled",
+ "public_updates_channel_id",
+ "recover",
+ "reload",
+ "remove",
+ "roles",
+ "save",
+ "softRemove",
+ "stickers",
+ "toJSON",
+ "unavailable",
+ "voice_states",
+ "webhooks",
+ "welcome_screen",
+ "widget_enabled"
+ ]
+ },
+ "DmChannelDTO": {
+ "type": "object",
+ "properties": {
+ "icon": {
+ "type": [
+ "null",
+ "string"
+ ]
+ },
+ "id": {
+ "type": "string"
+ },
+ "last_message_id": {
+ "type": [
+ "null",
+ "string"
+ ]
+ },
+ "name": {
+ "type": [
+ "null",
+ "string"
+ ]
+ },
+ "origin_channel_id": {
+ "type": [
+ "null",
+ "string"
+ ]
+ },
+ "owner_id": {
+ "type": "string"
+ },
+ "recipients": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/MinimalPublicUserDTO"
+ }
+ },
+ "type": {
+ "type": "integer"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "icon",
+ "id",
+ "last_message_id",
+ "name",
+ "origin_channel_id",
+ "recipients",
+ "type"
+ ]
+ },
+ "MinimalPublicUserDTO": {
+ "type": "object",
+ "properties": {
+ "avatar": {
+ "type": [
+ "null",
+ "string"
+ ]
+ },
+ "discriminator": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "public_flags": {
+ "type": "integer"
+ },
+ "username": {
+ "type": "string"
+ },
+ "badge_ids": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "discriminator",
+ "id",
+ "public_flags",
+ "username"
+ ]
+ },
+ "Categories": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "localizations": {
+ "type": "string"
+ },
+ "is_primary": {
+ "type": "boolean"
+ },
+ "icon": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "id",
+ "is_primary",
+ "localizations",
+ "name"
+ ]
+ },
+ "GuildVoiceRegion": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "custom": {
+ "type": "boolean"
+ },
+ "deprecated": {
+ "type": "boolean"
+ },
+ "optimal": {
+ "type": "boolean"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "custom",
+ "deprecated",
+ "id",
+ "name",
+ "optimal"
+ ]
+ },
+ "UserLimits": {
+ "type": "object",
+ "properties": {
+ "maxGuilds": {
+ "type": "integer",
+ "default": 1048576
+ },
+ "maxUsername": {
+ "type": "integer",
+ "default": 32
+ },
+ "maxFriends": {
+ "type": "integer",
+ "default": 5000
+ },
+ "maxBio": {
+ "type": "integer",
+ "default": 190
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "maxBio",
+ "maxFriends",
+ "maxGuilds",
+ "maxUsername"
+ ]
+ },
+ "GuildLimits": {
+ "type": "object",
+ "properties": {
+ "maxRoles": {
+ "type": "integer",
+ "default": 1000
+ },
+ "maxEmojis": {
+ "type": "integer",
+ "default": 2000
+ },
+ "maxMembers": {
+ "type": "integer",
+ "default": 25000000
+ },
+ "maxChannels": {
+ "type": "integer",
+ "default": 65535
+ },
+ "maxBulkBanUsers": {
+ "type": "integer",
+ "default": 200
+ },
+ "maxChannelsInCategory": {
+ "type": "integer",
+ "default": 65535
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "maxBulkBanUsers",
+ "maxChannels",
+ "maxChannelsInCategory",
+ "maxEmojis",
+ "maxMembers",
+ "maxRoles"
+ ]
+ },
+ "MessageLimits": {
+ "type": "object",
+ "properties": {
+ "maxCharacters": {
+ "type": "integer",
+ "default": 1048576
+ },
+ "maxTTSCharacters": {
+ "type": "integer",
+ "default": 160
+ },
+ "maxReactions": {
+ "type": "integer",
+ "default": 2048
+ },
+ "maxAttachmentSize": {
+ "type": "integer",
+ "default": 1073741824
+ },
+ "maxBulkDelete": {
+ "type": "integer",
+ "default": 1000
+ },
+ "maxEmbedDownloadSize": {
+ "type": "integer",
+ "default": 5242880
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "maxAttachmentSize",
+ "maxBulkDelete",
+ "maxCharacters",
+ "maxEmbedDownloadSize",
+ "maxReactions",
+ "maxTTSCharacters"
+ ]
+ },
+ "ChannelLimits": {
+ "type": "object",
+ "properties": {
+ "maxPins": {
+ "type": "integer",
+ "default": 500
+ },
+ "maxTopic": {
+ "type": "integer",
+ "default": 1024
+ },
+ "maxWebhooks": {
+ "type": "integer",
+ "default": 100
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "maxPins",
+ "maxTopic",
+ "maxWebhooks"
+ ]
+ },
+ "RateLimits": {
+ "type": "object",
+ "properties": {
+ "enabled": {
+ "type": "boolean",
+ "default": false
+ },
+ "ip": {
+ "$ref": "#/definitions/RateLimitOptions"
+ },
+ "global": {
+ "$ref": "#/definitions/RateLimitOptions"
+ },
+ "error": {
+ "$ref": "#/definitions/RateLimitOptions"
+ },
+ "routes": {
+ "$ref": "#/definitions/RouteRateLimit"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "enabled",
+ "error",
+ "global",
+ "ip",
+ "routes"
+ ]
+ },
+ "RateLimitOptions": {
+ "type": "object",
+ "properties": {
+ "bot": {
+ "type": "integer"
+ },
+ "count": {
+ "type": "integer"
+ },
+ "window": {
+ "type": "integer"
+ },
+ "onyIp": {
+ "type": "boolean"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "count",
+ "window"
+ ]
+ },
+ "RouteRateLimit": {
+ "type": "object",
+ "properties": {
+ "guild": {
+ "$ref": "#/definitions/RateLimitOptions"
+ },
+ "webhook": {
+ "$ref": "#/definitions/RateLimitOptions"
+ },
+ "channel": {
+ "$ref": "#/definitions/RateLimitOptions"
+ },
+ "auth": {}
+ },
+ "additionalProperties": false,
+ "required": [
+ "auth",
+ "channel",
+ "guild",
+ "webhook"
+ ]
+ },
+ "GlobalRateLimits": {
+ "type": "object",
+ "properties": {
+ "register": {
+ "$ref": "#/definitions/GlobalRateLimit"
+ },
+ "sendMessage": {
+ "$ref": "#/definitions/GlobalRateLimit"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "register",
+ "sendMessage"
+ ]
+ },
+ "GlobalRateLimit": {
+ "type": "object",
+ "properties": {
+ "limit": {
+ "type": "integer",
+ "default": 100
+ },
+ "window": {
+ "type": "integer",
+ "default": 3600000
+ },
+ "enabled": {
+ "type": "boolean",
+ "default": true
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "enabled",
+ "limit",
+ "window"
+ ]
+ },
+ "PublicConnectedAccount": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string"
+ },
+ "verified": {
+ "type": "boolean"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "name",
+ "type"
+ ]
+ },
+ "UserProfile": {
+ "type": "object",
+ "properties": {
+ "accent_color": {
+ "type": "integer"
+ },
+ "banner": {
+ "type": "string"
+ },
+ "bio": {
+ "type": "string"
+ },
+ "theme_colors": {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
+ },
+ "pronouns": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "bio"
+ ]
+ },
+ "Badge": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ },
+ "icon": {
+ "type": "string"
+ },
+ "link": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "description",
+ "icon",
+ "id"
+ ]
+ },
+ "TokenResponse": {
+ "type": "object",
+ "properties": {
+ "token": {
+ "type": "string"
+ },
+ "settings": {
+ "$ref": "#/definitions/UserSettings"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "settings",
+ "token"
+ ]
+ },
+ "MFAResponse": {
+ "type": "object",
+ "properties": {
+ "ticket": {
+ "type": "string"
+ },
+ "mfa": {
+ "type": "boolean",
+ "enum": [
+ true
+ ]
+ },
+ "sms": {
+ "type": "boolean",
+ "enum": [
+ false
+ ]
+ },
+ "token": {
+ "type": "null"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "mfa",
+ "sms",
+ "ticket",
+ "token"
+ ]
+ },
+ "WebAuthnResponse": {
+ "type": "object",
+ "properties": {
+ "webauthn": {
+ "type": "string"
+ },
+ "ticket": {
+ "type": "string"
+ },
+ "mfa": {
+ "type": "boolean",
+ "enum": [
+ true
+ ]
+ },
+ "sms": {
+ "type": "boolean",
+ "enum": [
+ false
+ ]
+ },
+ "token": {
+ "type": "null"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "mfa",
+ "sms",
+ "ticket",
+ "token",
+ "webauthn"
+ ]
+ }
+ },
+ "$schema": "http://json-schema.org/draft-07/schema#"
+ },
+ "UserDeleteSchema": {
+ "type": "object",
+ "properties": {
+ "user_id": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "user_id"
+ ],
+ "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
+ },
+ "ActionRowComponent": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "$ref": "#/definitions/MessageComponentType.ActionRow"
+ },
+ "components": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/definitions/ButtonComponent"
+ },
+ {
+ "$ref": "#/definitions/SelectMenuComponent"
+ },
+ {
+ "$ref": "#/definitions/StringSelectMenuComponent"
+ },
+ {
+ "$ref": "#/definitions/TextInputComponent"
+ }
+ ]
+ }
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "components",
+ "type"
+ ]
+ },
+ "MessageComponentType.ActionRow": {
+ "type": "number",
+ "enum": [
+ 1
+ ]
+ },
+ "ButtonComponent": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "$ref": "#/definitions/MessageComponentType.Button"
+ },
+ "style": {
+ "$ref": "#/definitions/ButtonStyle"
+ },
+ "label": {
+ "type": "string"
+ },
+ "emoji": {
+ "$ref": "#/definitions/PartialEmoji"
+ },
+ "custom_id": {
+ "type": "string"
+ },
+ "sku_id": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string"
+ },
+ "disabled": {
+ "type": "boolean"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "style",
+ "type"
+ ]
+ },
+ "MessageComponentType.Button": {
+ "type": "number",
+ "enum": [
+ 2
+ ]
+ },
+ "ButtonStyle": {
+ "enum": [
+ 1,
+ 2,
+ 3,
+ 4,
+ 5,
+ 6
+ ],
+ "type": "number"
+ },
+ "PartialEmoji": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "animated": {
+ "type": "boolean"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "name"
+ ]
+ },
+ "SelectMenuComponent": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "enum": [
+ 3,
+ 5,
+ 6,
+ 7,
+ 8
+ ],
+ "type": "number"
+ },
+ "custom_id": {
+ "type": "string"
+ },
+ "channel_types": {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
+ },
+ "placeholder": {
+ "type": "string"
+ },
+ "default_values": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/SelectMenuDefaultOption"
+ }
+ },
+ "min_values": {
+ "type": "integer"
+ },
+ "max_values": {
+ "type": "integer"
+ },
+ "disabled": {
+ "type": "boolean"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "custom_id",
+ "type"
+ ]
+ },
+ "SelectMenuDefaultOption": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "type": {
+ "enum": [
+ "channel",
+ "role",
+ "user"
+ ],
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "id",
+ "type"
+ ]
+ },
+ "StringSelectMenuComponent": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "$ref": "#/definitions/MessageComponentType.StringSelect"
+ },
+ "options": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/SelectMenuOption"
+ }
+ },
+ "custom_id": {
+ "type": "string"
+ },
+ "channel_types": {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
+ },
+ "placeholder": {
+ "type": "string"
+ },
+ "default_values": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/SelectMenuDefaultOption"
+ }
+ },
+ "min_values": {
+ "type": "integer"
+ },
+ "max_values": {
+ "type": "integer"
+ },
+ "disabled": {
+ "type": "boolean"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "custom_id",
+ "options",
+ "type"
+ ]
+ },
+ "MessageComponentType.StringSelect": {
+ "type": "number",
+ "enum": [
+ 3
+ ]
+ },
+ "SelectMenuOption": {
+ "type": "object",
+ "properties": {
+ "label": {
+ "type": "string"
+ },
+ "value": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ },
+ "emoji": {
+ "$ref": "#/definitions/PartialEmoji"
+ },
+ "default": {
+ "type": "boolean"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "label",
+ "value"
+ ]
+ },
+ "TextInputComponent": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "$ref": "#/definitions/MessageComponentType.TextInput"
+ },
+ "custom_id": {
+ "type": "string"
+ },
+ "style": {
+ "$ref": "#/definitions/TextInputStyle"
+ },
+ "label": {
+ "type": "string"
+ },
+ "min_length": {
+ "type": "integer"
+ },
+ "max_length": {
+ "type": "integer"
+ },
+ "required": {
+ "type": "boolean"
+ },
+ "value": {
+ "type": "string"
+ },
+ "placeholder": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "custom_id",
+ "label",
+ "style",
+ "type"
+ ]
+ },
+ "MessageComponentType.TextInput": {
+ "type": "number",
+ "enum": [
+ 4
+ ]
+ },
+ "TextInputStyle": {
+ "enum": [
+ 1,
+ 2
+ ],
+ "type": "number"
+ },
+ "PollCreationSchema": {
+ "type": "object",
+ "properties": {
+ "question": {
+ "$ref": "#/definitions/PollMedia"
+ },
+ "answers": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PollAnswer"
+ }
+ },
+ "duration": {
+ "type": "integer"
+ },
+ "allow_multiselect": {
+ "type": "boolean"
+ },
+ "layout_type": {
+ "type": "integer"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "answers",
+ "question"
+ ]
+ },
+ "PollMedia": {
+ "type": "object",
+ "properties": {
+ "text": {
+ "type": "string"
+ },
+ "emoji": {
+ "$ref": "#/definitions/PartialEmoji"
+ }
+ },
+ "additionalProperties": false
+ },
+ "PollAnswer": {
+ "type": "object",
+ "properties": {
+ "answer_id": {
+ "type": "string"
+ },
+ "poll_media": {
+ "$ref": "#/definitions/PollMedia"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "poll_media"
+ ]
+ },
+ "ChannelOverride": {
+ "type": "object",
+ "properties": {
+ "message_notifications": {
+ "type": "integer"
+ },
+ "mute_config": {
+ "$ref": "#/definitions/MuteConfig"
+ },
+ "muted": {
+ "type": "boolean"
+ },
+ "channel_id": {
+ "type": [
+ "null",
+ "string"
+ ]
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "channel_id",
+ "message_notifications",
+ "mute_config",
+ "muted"
+ ]
+ },
+ "MuteConfig": {
+ "type": "object",
+ "properties": {
+ "end_time": {
+ "type": "integer"
+ },
+ "selected_time_window": {
+ "type": "integer"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "end_time",
+ "selected_time_window"
+ ]
+ },
+ "CustomStatus": {
+ "type": "object",
+ "properties": {
+ "emoji_id": {
+ "type": "string"
+ },
+ "emoji_name": {
+ "type": "string"
+ },
+ "expires_at": {
+ "type": "integer"
+ },
+ "text": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false
+ },
+ "FriendSourceFlags": {
+ "type": "object",
+ "properties": {
+ "all": {
+ "type": "boolean"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "all"
+ ]
+ },
+ "GuildFolder": {
+ "type": "object",
+ "properties": {
+ "color": {
+ "type": "integer"
+ },
+ "guild_ids": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "id": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "color",
+ "guild_ids",
+ "id",
+ "name"
+ ]
+ },
+ "GenerateWebAuthnCredentialsSchema": {
+ "type": "object",
+ "properties": {
+ "password": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "password"
+ ]
+ },
+ "CreateWebAuthnCredentialSchema": {
+ "type": "object",
+ "properties": {
+ "credential": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "ticket": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "credential",
+ "name",
+ "ticket"
+ ]
+ },
+ "APIErrorResponse": {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer"
+ },
+ "message": {
+ "type": "string"
+ },
+ "errors": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "object",
+ "properties": {
+ "_errors": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "message": {
+ "type": "string"
+ },
+ "code": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "code",
+ "message"
+ ]
+ }
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "_errors"
+ ]
+ }
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "code",
+ "errors",
+ "message"
+ ]
+ },
+ "CaptchaRequiredResponse": {
+ "type": "object",
+ "properties": {
+ "captcha_key": {
+ "type": "string"
+ },
+ "captcha_sitekey": {
+ "type": "string"
+ },
+ "captcha_service": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "captcha_key",
+ "captcha_service",
+ "captcha_sitekey"
+ ]
+ },
+ "Guild": {
+ "type": "object",
+ "properties": {
+ "afk_channel_id": {
+ "type": "string"
+ },
+ "afk_channel": {
+ "$ref": "#/definitions/Channel"
+ },
+ "afk_timeout": {
+ "type": "integer"
+ },
+ "bans": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Ban"
+ }
+ },
+ "banner": {
+ "type": "string"
+ },
+ "default_message_notifications": {
+ "type": "integer"
+ },
+ "description": {
+ "type": "string"
+ },
+ "discovery_splash": {
+ "type": "string"
+ },
+ "explicit_content_filter": {
+ "type": "integer"
+ },
+ "features": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "default": []
+ },
+ "primary_category_id": {
+ "type": "string"
+ },
+ "icon": {
+ "type": "string"
+ },
+ "large": {
+ "type": "boolean",
+ "default": false
+ },
+ "max_members": {
+ "type": "integer"
+ },
+ "max_presences": {
+ "type": "integer"
+ },
+ "max_video_channel_users": {
+ "type": "integer"
+ },
+ "member_count": {
+ "type": "integer"
+ },
+ "presence_count": {
+ "type": "integer"
+ },
+ "members": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Member"
+ }
+ },
+ "roles": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Role"
+ }
+ },
+ "channels": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Channel"
+ }
+ },
+ "template_id": {
+ "type": "string"
+ },
+ "template": {
+ "$ref": "#/definitions/Template"
+ },
+ "emojis": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Emoji"
+ }
+ },
+ "stickers": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Sticker"
+ }
+ },
+ "invites": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Invite"
+ }
+ },
+ "voice_states": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/VoiceState"
+ }
+ },
+ "webhooks": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Webhook"
+ }
+ },
+ "mfa_level": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "owner_id": {
+ "type": "string"
+ },
+ "owner": {
+ "$ref": "#/definitions/User"
+ },
+ "preferred_locale": {
+ "type": "string"
+ },
+ "premium_subscription_count": {
+ "type": "integer"
+ },
+ "premium_tier": {
+ "type": "integer"
+ },
+ "public_updates_channel_id": {
+ "type": "string"
+ },
+ "public_updates_channel": {
+ "$ref": "#/definitions/Channel"
+ },
+ "rules_channel_id": {
+ "type": "string"
+ },
+ "rules_channel": {
+ "type": "string"
+ },
+ "region": {
+ "type": "string"
+ },
+ "splash": {
+ "type": "string"
+ },
+ "system_channel_id": {
+ "type": "string"
+ },
+ "system_channel": {
+ "$ref": "#/definitions/Channel"
+ },
+ "system_channel_flags": {
+ "type": "integer"
+ },
+ "unavailable": {
+ "type": "boolean",
+ "default": false
+ },
+ "verification_level": {
+ "type": "integer"
+ },
+ "welcome_screen": {
+ "$ref": "#/definitions/GuildWelcomeScreen"
+ },
+ "widget_channel_id": {
+ "type": "string"
+ },
+ "widget_channel": {
+ "$ref": "#/definitions/Channel"
+ },
+ "widget_enabled": {
+ "type": "boolean",
+ "default": true
+ },
+ "nsfw_level": {
+ "type": "integer"
+ },
+ "nsfw": {
+ "type": "boolean",
+ "default": false
+ },
+ "parent": {
+ "type": "string"
+ },
+ "permissions": {
+ "type": "integer"
+ },
+ "premium_progress_bar_enabled": {
+ "type": "boolean",
+ "default": false
+ },
+ "channel_ordering": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "bans",
+ "channel_ordering",
+ "channels",
+ "emojis",
+ "features",
+ "id",
+ "invites",
+ "members",
+ "name",
+ "nsfw",
+ "premium_progress_bar_enabled",
+ "public_updates_channel_id",
+ "roles",
+ "stickers",
+ "template",
+ "unavailable",
+ "voice_states",
+ "webhooks",
+ "welcome_screen",
+ "widget_enabled"
+ ]
+ },
+ "Channel": {
+ "type": "object",
+ "properties": {
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "name": {
+ "type": "string"
+ },
+ "icon": {
+ "type": [
+ "null",
+ "string"
+ ]
+ },
+ "type": {
+ "$ref": "#/definitions/ChannelType"
+ },
+ "recipients": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Recipient"
+ }
+ },
+ "last_message_id": {
+ "type": "string"
+ },
+ "guild_id": {
+ "type": "string"
+ },
+ "guild": {
+ "$ref": "#/definitions/Guild"
+ },
+ "parent_id": {
+ "type": [
+ "null",
+ "string"
+ ]
+ },
+ "parent": {
+ "$ref": "#/definitions/Channel"
+ },
+ "owner_id": {
+ "type": "string"
+ },
+ "owner": {
+ "$ref": "#/definitions/User"
+ },
+ "last_pin_timestamp": {
+ "type": "integer"
+ },
+ "default_auto_archive_duration": {
+ "type": "integer"
+ },
+ "permission_overwrites": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ChannelPermissionOverwrite"
+ }
+ },
+ "video_quality_mode": {
+ "type": "integer"
+ },
+ "bitrate": {
+ "type": "integer"
+ },
+ "user_limit": {
+ "type": "integer"
+ },
+ "nsfw": {
+ "type": "boolean",
+ "default": false
+ },
+ "rate_limit_per_user": {
+ "type": "integer"
+ },
+ "topic": {
+ "type": "string"
+ },
+ "invites": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Invite"
+ }
+ },
+ "retention_policy_id": {
+ "type": "string"
+ },
+ "messages": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Message"
+ }
+ },
+ "voice_states": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/VoiceState"
+ }
+ },
+ "read_states": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ReadState"
+ }
+ },
+ "webhooks": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Webhook"
+ }
+ },
+ "flags": {
+ "type": "integer",
+ "default": 0
+ },
+ "default_thread_rate_limit_per_user": {
+ "type": "integer",
+ "default": 0
+ },
+ "position": {
+ "description": "Must be calculated Channel.calculatePosition",
+ "type": "integer"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "created_at",
+ "default_thread_rate_limit_per_user",
+ "flags",
+ "id",
+ "nsfw",
+ "owner",
+ "parent_id",
+ "position",
+ "type"
+ ]
+ },
+ "ChannelType": {
+ "enum": [
+ 0,
+ 1,
+ 10,
+ 11,
+ 12,
+ 13,
+ 14,
+ 15,
+ 2,
+ 255,
+ 3,
+ 33,
+ 34,
+ 35,
+ 4,
+ 5,
+ 6,
+ 64,
+ 7,
+ 8,
+ 9
+ ],
+ "type": "number"
+ },
+ "Recipient": {
+ "type": "object",
+ "properties": {
+ "channel_id": {
+ "type": "string"
+ },
+ "channel": {
+ "$ref": "#/definitions/Channel"
+ },
+ "user_id": {
+ "type": "string"
+ },
+ "user": {
+ "$ref": "#/definitions/User"
+ },
+ "closed": {
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "channel",
+ "channel_id",
+ "closed",
+ "id",
+ "user",
+ "user_id"
+ ]
+ },
+ "User": {
+ "type": "object",
+ "properties": {
+ "username": {
+ "type": "string"
+ },
+ "discriminator": {
+ "type": "string"
+ },
+ "avatar": {
+ "type": "string"
+ },
+ "accent_color": {
+ "type": "integer"
+ },
+ "banner": {
+ "type": "string"
+ },
+ "theme_colors": {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
+ },
+ "pronouns": {
+ "type": "string"
+ },
+ "phone": {
+ "type": "string"
+ },
+ "desktop": {
+ "type": "boolean",
+ "default": false
+ },
+ "mobile": {
+ "type": "boolean",
+ "default": false
+ },
+ "premium": {
+ "type": "boolean"
+ },
+ "premium_type": {
+ "type": "integer"
+ },
+ "bot": {
+ "type": "boolean",
+ "default": false
+ },
+ "bio": {
+ "type": "string",
+ "default": ""
+ },
+ "system": {
+ "type": "boolean",
+ "default": false
+ },
+ "nsfw_allowed": {
+ "type": "boolean",
+ "default": true
+ },
+ "mfa_enabled": {
+ "type": "boolean",
+ "default": false
+ },
+ "webauthn_enabled": {
+ "type": "boolean",
+ "default": false
+ },
+ "totp_secret": {
+ "type": "string",
+ "default": ""
+ },
+ "totp_last_ticket": {
+ "type": "string",
+ "default": ""
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "premium_since": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "verified": {
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "default": false
+ },
+ "deleted": {
+ "type": "boolean",
+ "default": false
+ },
+ "email": {
+ "type": "string"
+ },
+ "flags": {
+ "type": "integer",
+ "default": 0
+ },
+ "public_flags": {
+ "type": "integer",
+ "default": 0
+ },
+ "purchased_flags": {
+ "type": "integer",
+ "default": 0
+ },
+ "premium_usage_flags": {
+ "type": "integer",
+ "default": 0
+ },
+ "rights": {
+ "type": "string"
+ },
+ "sessions": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Session"
+ }
+ },
+ "relationships": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Relationship"
+ }
+ },
+ "connected_accounts": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ConnectedAccount"
+ }
+ },
+ "data": {
+ "type": "object",
+ "properties": {
+ "valid_tokens_since": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "hash": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "valid_tokens_since"
+ ]
+ },
+ "fingerprints": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "default": []
+ },
+ "settings": {
+ "$ref": "#/definitions/UserSettings"
+ },
+ "extended_settings": {
+ "type": "string",
+ "default": "{}"
+ },
+ "security_keys": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/SecurityKey"
+ }
+ },
+ "badge_ids": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "bio",
+ "bot",
+ "connected_accounts",
+ "created_at",
+ "data",
+ "deleted",
+ "desktop",
+ "disabled",
+ "discriminator",
+ "extended_settings",
+ "fingerprints",
+ "flags",
+ "id",
+ "mfa_enabled",
+ "mobile",
+ "nsfw_allowed",
+ "premium",
+ "premium_since",
+ "premium_type",
+ "premium_usage_flags",
+ "public_flags",
+ "purchased_flags",
+ "relationships",
+ "rights",
+ "security_keys",
+ "sessions",
+ "settings",
+ "system",
+ "username",
+ "verified",
+ "webauthn_enabled"
+ ]
+ },
+ "Session": {
+ "type": "object",
+ "properties": {
+ "user_id": {
+ "type": "string"
+ },
+ "user": {
+ "$ref": "#/definitions/User"
+ },
+ "session_id": {
+ "type": "string"
+ },
+ "activities": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Activity"
+ }
+ },
+ "client_info": {
+ "type": "object",
+ "properties": {
+ "client": {
+ "type": "string"
+ },
+ "os": {
+ "type": "string"
+ },
+ "version": {
+ "type": "integer"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "client",
+ "os",
+ "version"
+ ]
+ },
+ "client_status": {
+ "$ref": "#/definitions/ClientStatus"
+ },
+ "status": {
+ "$ref": "#/definitions/Status"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "activities",
+ "client_info",
+ "client_status",
+ "id",
+ "session_id",
+ "status",
+ "user",
+ "user_id"
+ ]
+ },
+ "ClientStatus": {
+ "type": "object",
+ "properties": {
+ "desktop": {
+ "type": "string"
+ },
+ "mobile": {
+ "type": "string"
+ },
+ "web": {
+ "type": "string"
+ },
+ "embedded": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false
+ },
+ "Relationship": {
+ "type": "object",
+ "properties": {
+ "from_id": {
+ "type": "string"
+ },
+ "from": {
+ "$ref": "#/definitions/User"
+ },
+ "to_id": {
+ "type": "string"
+ },
+ "to": {
+ "$ref": "#/definitions/User"
+ },
+ "nickname": {
+ "type": "string"
+ },
+ "type": {
+ "$ref": "#/definitions/RelationshipType"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "from",
+ "from_id",
+ "id",
+ "to",
+ "to_id",
+ "type"
+ ]
+ },
+ "RelationshipType": {
+ "enum": [
+ 1,
+ 2,
+ 3,
+ 4
+ ],
+ "type": "number"
+ },
+ "ConnectedAccount": {
+ "type": "object",
+ "properties": {
+ "external_id": {
+ "type": "string"
+ },
+ "user_id": {
+ "type": "string"
+ },
+ "user": {
+ "$ref": "#/definitions/User"
+ },
+ "friend_sync": {
+ "type": "boolean",
+ "default": false
+ },
+ "name": {
+ "type": "string"
+ },
+ "revoked": {
+ "type": "boolean",
+ "default": false
+ },
+ "show_activity": {
+ "type": "integer",
+ "default": 0
+ },
+ "type": {
+ "type": "string"
+ },
+ "verified": {
+ "type": "boolean",
+ "default": true
+ },
+ "visibility": {
+ "type": "integer",
+ "default": 0
+ },
+ "integrations": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "default": []
+ },
+ "metadata_": {},
+ "metadata_visibility": {
+ "type": "integer",
+ "default": 0
+ },
+ "two_way_link": {
+ "type": "boolean",
+ "default": false
+ },
+ "token_data": {
+ "anyOf": [
+ {
+ "$ref": "#/definitions/ConnectedAccountTokenData"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "external_id",
+ "id",
+ "name",
+ "type",
+ "user",
+ "user_id"
+ ]
+ },
+ "UserSettings": {
+ "type": "object",
+ "properties": {
+ "index": {
+ "type": "string"
+ },
+ "afk_timeout": {
+ "type": "integer",
+ "default": 3600
+ },
+ "allow_accessibility_detection": {
+ "type": "boolean",
+ "default": true
+ },
+ "animate_emoji": {
+ "type": "boolean",
+ "default": true
+ },
+ "animate_stickers": {
+ "type": "integer",
+ "default": 0
+ },
+ "contact_sync_enabled": {
+ "type": "boolean",
+ "default": false
+ },
+ "convert_emoticons": {
+ "type": "boolean",
+ "default": false
+ },
+ "custom_status": {
+ "anyOf": [
+ {
+ "$ref": "#/definitions/CustomStatus"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null
+ },
+ "default_guilds_restricted": {
+ "type": "boolean",
+ "default": false
+ },
+ "detect_platform_accounts": {
+ "type": "boolean",
+ "default": false
+ },
+ "developer_mode": {
+ "type": "boolean",
+ "default": true
+ },
+ "disable_games_tab": {
+ "type": "boolean",
+ "default": true
+ },
+ "enable_tts_command": {
+ "type": "boolean",
+ "default": false
+ },
+ "explicit_content_filter": {
+ "type": "integer",
+ "default": 0
+ },
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
+ "friend_source_flags": {
+ "$ref": "#/definitions/FriendSourceFlags"
+ },
+ "gateway_connected": {
+ "type": "boolean",
+ "default": false
+ },
+ "gif_auto_play": {
+ "type": "boolean",
+ "default": false
+ },
+ "guild_folders": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/GuildFolder"
+ },
+ "default": []
+ },
+ "guild_positions": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "default": []
+ },
+ "inline_attachment_media": {
+ "type": "boolean",
+ "default": true
+ },
+ "inline_embed_media": {
+ "type": "boolean",
+ "default": true
+ },
+ "locale": {
+ "type": "string",
+ "default": "en-US"
+ },
+ "message_display_compact": {
+ "type": "boolean",
+ "default": false
+ },
+ "native_phone_integration_enabled": {
+ "type": "boolean",
+ "default": true
+ },
+ "render_embeds": {
+ "type": "boolean",
+ "default": true
+ },
+ "render_reactions": {
+ "type": "boolean",
+ "default": true
+ },
+ "restricted_guilds": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "default": []
+ },
+ "show_current_game": {
+ "type": "boolean",
+ "default": true
+ },
+ "status": {
+ "enum": [
+ "dnd",
+ "idle",
+ "invisible",
+ "offline",
+ "online"
+ ],
+ "type": "string",
+ "default": "online"
+ },
+ "stream_notifications_enabled": {
+ "type": "boolean",
+ "default": false
+ },
+ "theme": {
+ "enum": [
+ "dark",
+ "light"
+ ],
+ "type": "string",
+ "default": "dark"
+ },
+ "timezone_offset": {
+ "type": "integer",
+ "default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "afk_timeout",
+ "allow_accessibility_detection",
+ "animate_emoji",
+ "animate_stickers",
+ "contact_sync_enabled",
+ "convert_emoticons",
+ "custom_status",
+ "default_guilds_restricted",
+ "detect_platform_accounts",
+ "developer_mode",
+ "disable_games_tab",
+ "enable_tts_command",
+ "explicit_content_filter",
+ "friend_discovery_flags",
+ "friend_source_flags",
+ "gateway_connected",
+ "gif_auto_play",
+ "guild_folders",
+ "guild_positions",
+ "index",
+ "inline_attachment_media",
+ "inline_embed_media",
+ "locale",
+ "message_display_compact",
+ "native_phone_integration_enabled",
+ "render_embeds",
+ "render_reactions",
+ "restricted_guilds",
+ "show_current_game",
+ "status",
+ "stream_notifications_enabled",
+ "theme",
+ "timezone_offset",
+ "view_nsfw_guilds"
+ ]
+ },
+ "SecurityKey": {
+ "type": "object",
+ "properties": {
+ "user_id": {
+ "type": "string"
+ },
+ "user": {
+ "$ref": "#/definitions/User"
+ },
+ "key_id": {
+ "type": "string"
+ },
+ "public_key": {
+ "type": "string"
+ },
+ "counter": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "counter",
+ "id",
+ "key_id",
+ "name",
+ "public_key",
+ "user",
+ "user_id"
+ ]
+ },
+ "ChannelPermissionOverwrite": {
+ "type": "object",
+ "properties": {
+ "allow": {
+ "type": "string"
+ },
+ "deny": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "type": {
+ "$ref": "#/definitions/ChannelPermissionOverwriteType"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "allow",
+ "deny",
+ "id",
+ "type"
+ ]
+ },
+ "Invite": {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "temporary": {
+ "type": "boolean"
+ },
+ "uses": {
+ "type": "integer"
+ },
+ "max_uses": {
+ "type": "integer"
+ },
+ "max_age": {
+ "type": "integer"
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "expires_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "guild_id": {
+ "type": "string"
+ },
+ "guild": {
+ "$ref": "#/definitions/Guild"
+ },
+ "channel_id": {
+ "type": "string"
+ },
+ "channel": {
+ "$ref": "#/definitions/Channel"
+ },
+ "inviter_id": {
+ "type": "string"
+ },
+ "inviter": {
+ "$ref": "#/definitions/User"
+ },
+ "target_user_id": {
+ "type": "string"
+ },
+ "target_user": {
+ "type": "string"
+ },
+ "target_user_type": {
+ "type": "integer"
+ },
+ "vanity_url": {
+ "type": "boolean"
+ },
+ "flags": {
+ "type": "integer"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "channel",
+ "channel_id",
+ "code",
+ "created_at",
+ "flags",
+ "guild",
+ "guild_id",
+ "inviter",
+ "max_age",
+ "max_uses",
+ "target_user_id",
+ "temporary",
+ "uses"
+ ]
+ },
+ "Message": {
+ "type": "object",
+ "properties": {
+ "channel_id": {
+ "type": "string"
+ },
+ "channel": {
+ "$ref": "#/definitions/Channel"
+ },
+ "guild_id": {
+ "type": "string"
+ },
+ "guild": {
+ "$ref": "#/definitions/Guild"
+ },
+ "author_id": {
+ "type": "string"
+ },
+ "author": {
+ "$ref": "#/definitions/User"
+ },
+ "member_id": {
+ "type": "string"
+ },
+ "member": {
+ "$ref": "#/definitions/Member"
+ },
+ "webhook_id": {
+ "type": "string"
+ },
+ "webhook": {
+ "$ref": "#/definitions/Webhook"
+ },
+ "application_id": {
+ "type": "string"
+ },
+ "application": {
+ "$ref": "#/definitions/Application"
+ },
+ "content": {
+ "type": "string"
+ },
+ "timestamp": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "edited_timestamp": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "tts": {
+ "type": "boolean"
+ },
+ "mention_everyone": {
+ "type": "boolean"
+ },
+ "mentions": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/User"
+ }
+ },
+ "mention_roles": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Role"
+ }
+ },
+ "mention_channels": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Channel"
+ }
+ },
+ "sticker_items": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Sticker"
+ }
+ },
+ "attachments": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Attachment"
+ }
+ },
+ "embeds": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Embed"
+ }
+ },
+ "reactions": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Reaction"
+ }
+ },
+ "nonce": {
+ "type": "string"
+ },
+ "pinned": {
+ "type": "boolean"
+ },
+ "type": {
+ "$ref": "#/definitions/MessageType"
+ },
+ "activity": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "integer"
+ },
+ "party_id": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "party_id",
+ "type"
+ ]
+ },
+ "flags": {
+ "type": "integer"
+ },
+ "message_reference": {
+ "type": "object",
+ "properties": {
+ "message_id": {
+ "type": "string"
+ },
+ "channel_id": {
+ "type": "string"
+ },
+ "guild_id": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "message_id"
+ ]
+ },
+ "referenced_message": {
+ "$ref": "#/definitions/Message"
+ },
+ "interaction": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "type": {
+ "$ref": "#/definitions/InteractionType"
+ },
+ "name": {
+ "type": "string"
+ },
+ "user_id": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "id",
+ "name",
+ "type",
+ "user_id"
+ ]
+ },
+ "components": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ActionRowComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
+ },
+ "username": {
+ "type": "string"
+ },
+ "avatar": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "channel",
+ "embeds",
+ "flags",
+ "id",
+ "mention_channels",
+ "mention_roles",
+ "mentions",
+ "reactions",
+ "timestamp",
+ "type"
+ ]
+ },
+ "Member": {
+ "type": "object",
+ "properties": {
+ "index": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "user": {
+ "$ref": "#/definitions/User"
+ },
+ "guild_id": {
+ "type": "string"
+ },
+ "guild": {
+ "$ref": "#/definitions/Guild"
+ },
+ "nick": {
+ "type": "string"
+ },
+ "roles": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Role"
+ }
+ },
+ "joined_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "premium_since": {
+ "type": "integer"
+ },
+ "deaf": {
+ "type": "boolean"
+ },
+ "mute": {
+ "type": "boolean"
+ },
+ "pending": {
+ "type": "boolean"
+ },
+ "settings": {
+ "$ref": "#/definitions/UserGuildSettings"
+ },
+ "last_message_id": {
+ "type": "string"
+ },
+ "joined_by": {
+ "type": "string"
+ },
+ "avatar": {
+ "type": "string"
+ },
+ "banner": {
+ "type": "string"
+ },
+ "bio": {
+ "type": "string"
+ },
+ "theme_colors": {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
+ },
+ "pronouns": {
+ "type": "string"
+ },
+ "communication_disabled_until": {
+ "type": "string",
+ "format": "date-time"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "banner",
+ "bio",
+ "communication_disabled_until",
+ "deaf",
+ "guild",
+ "guild_id",
+ "id",
+ "index",
+ "joined_at",
+ "joined_by",
+ "mute",
+ "pending",
+ "roles",
+ "settings",
+ "user"
+ ]
+ },
+ "Role": {
+ "type": "object",
+ "properties": {
+ "guild_id": {
+ "type": "string"
+ },
+ "guild": {
+ "$ref": "#/definitions/Guild"
+ },
+ "color": {
+ "type": "integer"
+ },
+ "hoist": {
+ "type": "boolean"
+ },
+ "managed": {
+ "type": "boolean"
+ },
+ "mentionable": {
+ "type": "boolean"
+ },
+ "name": {
+ "type": "string"
+ },
+ "permissions": {
+ "type": "string"
+ },
+ "position": {
+ "type": "integer"
+ },
+ "icon": {
+ "type": "string"
+ },
+ "unicode_emoji": {
+ "type": "string"
+ },
+ "tags": {
+ "type": "object",
+ "properties": {
+ "bot_id": {
+ "type": "string"
+ },
+ "integration_id": {
+ "type": "string"
+ },
+ "premium_subscriber": {
+ "type": "boolean"
+ }
+ },
+ "additionalProperties": false
+ },
+ "flags": {
+ "type": "integer"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "color",
+ "flags",
+ "guild",
+ "guild_id",
+ "hoist",
+ "id",
+ "managed",
+ "mentionable",
+ "name",
+ "permissions",
+ "position"
+ ]
+ },
+ "UserGuildSettings": {
+ "type": "object",
+ "properties": {
+ "channel_overrides": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/definitions/ChannelOverride"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "message_notifications": {
+ "type": "integer"
+ },
+ "mobile_push": {
+ "type": "boolean"
+ },
+ "mute_config": {
+ "anyOf": [
+ {
+ "$ref": "#/definitions/MuteConfig"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "muted": {
+ "type": "boolean"
+ },
+ "suppress_everyone": {
+ "type": "boolean"
+ },
+ "suppress_roles": {
+ "type": "boolean"
+ },
+ "version": {
+ "type": "integer"
+ },
+ "guild_id": {
+ "type": [
+ "null",
+ "string"
+ ]
+ },
+ "flags": {
+ "type": "integer"
+ },
+ "mute_scheduled_events": {
+ "type": "boolean"
+ },
+ "hide_muted_channels": {
+ "type": "boolean"
+ },
+ "notify_highlights": {
+ "type": "number",
+ "enum": [
+ 0
+ ]
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "channel_overrides",
+ "flags",
+ "guild_id",
+ "hide_muted_channels",
+ "message_notifications",
+ "mobile_push",
+ "mute_config",
+ "mute_scheduled_events",
+ "muted",
+ "notify_highlights",
+ "suppress_everyone",
+ "suppress_roles",
+ "version"
+ ]
+ },
+ "Webhook": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "$ref": "#/definitions/WebhookType"
+ },
+ "name": {
+ "type": "string"
+ },
+ "avatar": {
+ "type": "string"
+ },
+ "token": {
+ "type": "string"
+ },
+ "guild_id": {
+ "type": "string"
+ },
+ "guild": {
+ "$ref": "#/definitions/Guild"
+ },
+ "channel_id": {
+ "type": "string"
+ },
+ "channel": {
+ "$ref": "#/definitions/Channel"
+ },
+ "application_id": {
+ "type": "string"
+ },
+ "application": {
+ "$ref": "#/definitions/Application"
+ },
+ "user_id": {
+ "type": "string"
+ },
+ "user": {
+ "$ref": "#/definitions/User"
+ },
+ "source_guild_id": {
+ "type": "string"
+ },
+ "source_guild": {
+ "$ref": "#/definitions/Guild"
+ },
+ "source_channel_id": {
+ "type": "string"
+ },
+ "source_channel": {
+ "$ref": "#/definitions/Channel"
+ },
+ "url": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "application",
+ "application_id",
+ "avatar",
+ "channel",
+ "channel_id",
+ "id",
+ "name",
+ "source_channel",
+ "source_channel_id",
+ "type",
+ "url",
+ "user",
+ "user_id"
+ ]
+ },
+ "WebhookType": {
+ "enum": [
+ 1,
+ 2,
+ 3
+ ],
+ "type": "number"
+ },
+ "Application": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "icon": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ },
+ "summary": {
+ "type": "string",
+ "default": ""
+ },
+ "type": {
+ "type": "object",
+ "properties": {},
+ "additionalProperties": true
+ },
+ "hook": {
+ "type": "boolean",
+ "default": true
+ },
+ "bot_public": {
+ "type": "boolean",
+ "default": true
+ },
+ "bot_require_code_grant": {
+ "type": "boolean",
+ "default": false
+ },
+ "verify_key": {
+ "type": "string"
+ },
+ "owner": {
+ "$ref": "#/definitions/User"
+ },
+ "flags": {
+ "type": "integer",
+ "default": 0
+ },
+ "redirect_uris": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "default": []
+ },
+ "rpc_application_state": {
+ "type": "integer",
+ "default": 0
+ },
+ "store_application_state": {
+ "type": "integer",
+ "default": 1
+ },
+ "verification_state": {
+ "type": "integer",
+ "default": 1
+ },
+ "interactions_endpoint_url": {
+ "type": "string"
+ },
+ "integration_public": {
+ "type": "boolean",
+ "default": true
+ },
+ "integration_require_code_grant": {
+ "type": "boolean",
+ "default": false
+ },
+ "discoverability_state": {
+ "type": "integer",
+ "default": 1
+ },
+ "discovery_eligibility_flags": {
+ "type": "integer",
+ "default": 2240
+ },
+ "bot": {
+ "$ref": "#/definitions/User"
+ },
+ "tags": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "cover_image": {
+ "type": "string"
+ },
+ "install_params": {
+ "type": "object",
+ "properties": {
+ "scopes": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "permissions": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "permissions",
+ "scopes"
+ ]
+ },
+ "terms_of_service_url": {
+ "type": "string"
+ },
+ "privacy_policy_url": {
+ "type": "string"
+ },
+ "team": {
+ "$ref": "#/definitions/Team"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "description",
+ "discoverability_state",
+ "discovery_eligibility_flags",
+ "flags",
+ "hook",
+ "id",
+ "integration_public",
+ "integration_require_code_grant",
+ "name",
+ "owner",
+ "redirect_uris",
+ "rpc_application_state",
+ "store_application_state",
+ "summary",
+ "verification_state",
+ "verify_key"
+ ]
+ },
+ "Team": {
+ "type": "object",
+ "properties": {
+ "icon": {
+ "type": "string"
+ },
+ "members": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/TeamMember"
+ }
+ },
+ "name": {
+ "type": "string"
+ },
+ "owner_user_id": {
+ "type": "string"
+ },
+ "owner_user": {
+ "$ref": "#/definitions/User"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "id",
+ "members",
+ "name",
+ "owner_user",
+ "owner_user_id"
+ ]
+ },
+ "TeamMember": {
+ "type": "object",
+ "properties": {
+ "membership_state": {
+ "$ref": "#/definitions/TeamMemberState"
+ },
+ "permissions": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
+ "team_id": {
+ "type": "string"
+ },
+ "team": {
+ "$ref": "#/definitions/Team"
+ },
+ "user_id": {
+ "type": "string"
+ },
+ "user": {
+ "$ref": "#/definitions/User"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "id",
+ "membership_state",
+ "permissions",
+ "role",
+ "team",
+ "team_id",
+ "user",
+ "user_id"
+ ]
+ },
+ "TeamMemberState": {
+ "enum": [
+ 1,
+ 2
+ ],
+ "type": "number"
+ },
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
+ "Sticker": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ },
+ "available": {
+ "type": "boolean"
+ },
+ "tags": {
+ "type": "string"
+ },
+ "pack_id": {
+ "type": "string"
+ },
+ "pack": {
+ "$ref": "#/definitions/StickerPack"
+ },
+ "guild_id": {
+ "type": "string"
+ },
+ "guild": {
+ "$ref": "#/definitions/Guild"
+ },
+ "user_id": {
+ "type": "string"
+ },
+ "user": {
+ "$ref": "#/definitions/User"
+ },
+ "type": {
+ "$ref": "#/definitions/StickerType"
+ },
+ "format_type": {
+ "$ref": "#/definitions/StickerFormatType"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "format_type",
+ "id",
+ "name",
+ "pack",
+ "type"
+ ]
+ },
+ "StickerPack": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ },
+ "banner_asset_id": {
+ "type": "string"
+ },
+ "stickers": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Sticker"
+ }
+ },
+ "cover_sticker_id": {
+ "type": "string"
+ },
+ "cover_sticker": {
+ "$ref": "#/definitions/Sticker"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "id",
+ "name",
+ "stickers"
+ ]
+ },
+ "StickerType": {
+ "enum": [
+ 1,
+ 2
+ ],
+ "type": "number"
+ },
+ "StickerFormatType": {
+ "enum": [
+ 0,
+ 1,
+ 2,
+ 3
+ ],
+ "type": "number"
+ },
+ "Attachment": {
+ "type": "object",
+ "properties": {
+ "filename": {
+ "type": "string"
+ },
+ "size": {
+ "type": "integer"
+ },
+ "url": {
+ "type": "string"
+ },
+ "proxy_url": {
+ "type": "string"
+ },
+ "height": {
+ "type": "integer"
+ },
+ "width": {
+ "type": "integer"
+ },
+ "content_type": {
+ "type": "string"
+ },
+ "message_id": {
+ "type": "string"
+ },
+ "message": {
+ "$ref": "#/definitions/Message"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "filename",
+ "id",
+ "message",
+ "message_id",
+ "proxy_url",
+ "size",
+ "url"
+ ]
+ },
+ "Reaction": {
+ "type": "object",
+ "properties": {
+ "count": {
+ "type": "integer"
+ },
+ "emoji": {
+ "$ref": "#/definitions/PartialEmoji"
+ },
+ "user_ids": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "count",
+ "emoji",
+ "user_ids"
+ ]
+ },
+ "MessageType": {
+ "enum": [
+ 0,
+ 1,
+ 10,
+ 11,
+ 12,
+ 13,
+ 14,
+ 15,
+ 16,
+ 19,
+ 2,
+ 20,
+ 255,
+ 3,
+ 4,
+ 41,
+ 42,
+ 43,
+ 5,
+ 50,
+ 6,
+ 63,
+ 7,
+ 8,
+ 9
+ ],
+ "type": "number"
+ },
+ "InteractionType": {
+ "enum": [
+ 0,
+ 1,
+ 2
+ ],
+ "type": "number"
+ },
+ "Poll": {
+ "type": "object",
+ "properties": {
+ "question": {
+ "$ref": "#/definitions/PollMedia"
+ },
+ "answers": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PollAnswer"
+ }
+ },
+ "expiry": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "allow_multiselect": {
+ "type": "boolean"
+ },
+ "results": {
+ "$ref": "#/definitions/PollResult"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "allow_multiselect",
+ "answers",
+ "expiry",
+ "question"
+ ]
+ },
+ "PollResult": {
+ "type": "object",
+ "properties": {
+ "is_finalized": {
+ "type": "boolean"
+ },
+ "answer_counts": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PollAnswerCount"
+ }
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "answer_counts",
+ "is_finalized"
+ ]
+ },
+ "PollAnswerCount": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "count": {
+ "type": "integer"
+ },
+ "me_voted": {
+ "type": "boolean"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "count",
+ "id",
+ "me_voted"
+ ]
+ },
+ "VoiceState": {
+ "type": "object",
+ "properties": {
+ "guild_id": {
+ "type": "string"
+ },
+ "guild": {
+ "$ref": "#/definitions/Guild"
+ },
+ "channel_id": {
+ "type": "string"
+ },
+ "channel": {
+ "$ref": "#/definitions/Channel"
+ },
+ "user_id": {
+ "type": "string"
+ },
+ "user": {
+ "$ref": "#/definitions/User"
+ },
+ "member": {
+ "$ref": "#/definitions/Member"
+ },
+ "session_id": {
+ "type": "string"
+ },
+ "token": {
+ "type": "string"
+ },
+ "deaf": {
+ "type": "boolean"
+ },
+ "mute": {
+ "type": "boolean"
+ },
+ "self_deaf": {
+ "type": "boolean"
+ },
+ "self_mute": {
+ "type": "boolean"
+ },
+ "self_stream": {
+ "type": "boolean"
+ },
+ "self_video": {
+ "type": "boolean"
+ },
+ "suppress": {
+ "type": "boolean"
+ },
+ "request_to_speak_timestamp": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "channel",
+ "channel_id",
+ "deaf",
+ "guild_id",
+ "id",
+ "member",
+ "mute",
+ "self_deaf",
+ "self_mute",
+ "self_video",
+ "session_id",
+ "suppress",
+ "token",
+ "user",
+ "user_id"
+ ]
+ },
+ "ReadState": {
+ "type": "object",
+ "properties": {
+ "channel_id": {
+ "type": "string"
+ },
+ "channel": {
+ "$ref": "#/definitions/Channel"
+ },
+ "user_id": {
+ "type": "string"
+ },
+ "user": {
+ "$ref": "#/definitions/User"
+ },
+ "last_message_id": {
+ "type": "string"
+ },
+ "public_ack": {
+ "type": "string"
+ },
+ "notifications_cursor": {
+ "type": "string"
+ },
+ "last_pin_timestamp": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "mention_count": {
+ "type": "integer"
+ },
+ "manual": {
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "channel",
+ "channel_id",
+ "id",
+ "last_message_id",
+ "manual",
+ "mention_count",
+ "notifications_cursor",
+ "public_ack",
+ "user",
+ "user_id"
+ ]
+ },
+ "Ban": {
+ "type": "object",
+ "properties": {
+ "user_id": {
+ "type": "string"
+ },
+ "user": {
+ "$ref": "#/definitions/User"
+ },
+ "guild_id": {
+ "type": "string"
+ },
+ "guild": {
+ "$ref": "#/definitions/Guild"
+ },
+ "executor_id": {
+ "type": "string"
+ },
+ "executor": {
+ "$ref": "#/definitions/User"
+ },
+ "ip": {
+ "type": "string"
+ },
+ "reason": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "executor",
+ "executor_id",
+ "guild",
+ "guild_id",
+ "id",
+ "ip",
+ "user",
+ "user_id"
+ ]
+ },
+ "Template": {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ },
+ "usage_count": {
+ "type": "integer"
+ },
+ "creator_id": {
+ "type": "string"
+ },
+ "creator": {
+ "$ref": "#/definitions/User"
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "source_guild_id": {
+ "type": "string"
+ },
+ "source_guild": {
+ "$ref": "#/definitions/Guild"
+ },
+ "serialized_source_guild": {
+ "$ref": "#/definitions/Guild"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "code",
+ "created_at",
+ "creator",
+ "creator_id",
+ "id",
+ "name",
+ "serialized_source_guild",
+ "source_guild",
+ "source_guild_id",
+ "updated_at"
+ ]
+ },
+ "Emoji": {
+ "type": "object",
+ "properties": {
+ "animated": {
+ "type": "boolean"
+ },
+ "available": {
+ "type": "boolean"
+ },
+ "guild_id": {
+ "type": "string"
+ },
+ "guild": {
+ "$ref": "#/definitions/Guild"
+ },
+ "user_id": {
+ "type": "string"
+ },
+ "user": {
+ "$ref": "#/definitions/User"
+ },
+ "managed": {
+ "type": "boolean"
+ },
+ "name": {
+ "type": "string"
+ },
+ "require_colons": {
+ "type": "boolean"
+ },
+ "roles": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "groups": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "animated",
+ "available",
+ "groups",
+ "guild",
+ "guild_id",
+ "id",
+ "managed",
+ "name",
+ "require_colons",
+ "roles",
+ "user",
+ "user_id"
+ ]
+ },
+ "GuildWelcomeScreen": {
+ "type": "object",
+ "properties": {
+ "enabled": {
+ "type": "boolean"
+ },
+ "description": {
+ "type": "string"
+ },
+ "welcome_channels": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "description": {
+ "type": "string"
+ },
+ "emoji_id": {
+ "type": "string"
+ },
+ "emoji_name": {
+ "type": "string"
+ },
+ "channel_id": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "channel_id",
+ "description"
+ ]
+ }
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "description",
+ "enabled",
+ "welcome_channels"
+ ]
+ },
+ "GuildMessagesSearchMessage": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "type": {
+ "$ref": "#/definitions/MessageType"
+ },
+ "content": {
+ "type": "string"
+ },
+ "channel_id": {
+ "type": "string"
+ },
+ "author": {
+ "$ref": "#/definitions/PublicUser"
+ },
+ "attachments": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Attachment"
+ }
+ },
+ "embeds": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Embed"
+ }
+ },
+ "mentions": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PublicUser"
+ }
+ },
+ "mention_roles": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Role"
+ }
+ },
+ "pinned": {
+ "type": "boolean"
+ },
+ "mention_everyone": {
+ "type": "boolean"
+ },
+ "tts": {
+ "type": "boolean"
+ },
+ "timestamp": {
+ "type": "string"
+ },
+ "edited_timestamp": {
+ "type": [
+ "null",
+ "string"
+ ]
+ },
+ "flags": {
+ "type": "integer"
+ },
+ "components": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ActionRowComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
+ },
+ "hit": {
+ "type": "boolean",
+ "enum": [
+ true
+ ]
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "attachments",
+ "author",
+ "channel_id",
+ "components",
+ "edited_timestamp",
+ "embeds",
+ "flags",
+ "hit",
+ "id",
+ "mention_roles",
+ "mentions",
+ "pinned",
+ "poll",
+ "timestamp",
+ "tts",
+ "type"
+ ]
+ },
+ "PublicUser": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "premium_since": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "avatar": {
+ "type": "string"
+ },
+ "username": {
+ "type": "string"
+ },
+ "discriminator": {
+ "type": "string"
+ },
+ "public_flags": {
+ "type": "integer"
+ },
+ "accent_color": {
+ "type": "integer"
+ },
+ "banner": {
+ "type": "string"
+ },
+ "bio": {
+ "type": "string"
+ },
+ "bot": {
+ "type": "boolean"
+ },
+ "premium_type": {
+ "type": "integer"
+ },
+ "theme_colors": {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
+ },
+ "pronouns": {
+ "type": "string"
+ },
+ "badge_ids": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "bio",
+ "bot",
+ "discriminator",
+ "id",
+ "premium_since",
+ "premium_type",
+ "public_flags",
+ "username"
+ ]
+ },
+ "GuildVanityUrl": {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "uses": {
+ "type": "integer"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "code",
+ "uses"
+ ]
+ },
+ "GuildVanityUrlNoInvite": {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "null"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "code"
+ ]
+ },
+ "Snowflake": {
+ "description": "A container for useful snowflake-related methods.",
+ "type": "object",
+ "additionalProperties": false
+ },
+ "GuildCreateResponse": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "primary_category_id": {
+ "type": "string"
+ },
+ "large": {
+ "type": "boolean"
+ },
+ "max_members": {
+ "type": "integer"
+ },
+ "max_presences": {
+ "type": "integer"
+ },
+ "max_video_channel_users": {
+ "type": "integer"
+ },
+ "member_count": {
+ "type": "integer"
+ },
+ "presence_count": {
+ "type": "integer"
+ },
+ "template_id": {
+ "type": "string"
+ },
+ "mfa_level": {
+ "type": "integer"
+ },
+ "owner_id": {
+ "type": "string"
+ },
+ "premium_subscription_count": {
+ "type": "integer"
+ },
+ "premium_tier": {
+ "type": "integer"
+ },
+ "welcome_screen": {
+ "$ref": "#/definitions/GuildWelcomeScreen"
+ },
+ "widget_channel_id": {
+ "type": "string"
+ },
+ "widget_enabled": {
+ "type": "boolean"
+ },
+ "nsfw_level": {
+ "type": "integer"
+ },
+ "nsfw": {
+ "type": "boolean"
+ },
+ "parent": {
+ "type": "string"
+ },
+ "icon": {
+ "type": [
+ "null",
+ "string"
+ ]
+ },
+ "banner": {
+ "type": [
+ "null",
+ "string"
+ ]
+ },
+ "description": {
+ "type": "string"
+ },
+ "region": {
+ "type": "string"
+ },
+ "system_channel_id": {
+ "type": "string"
+ },
+ "rules_channel_id": {
+ "type": "string"
+ },
+ "afk_timeout": {
+ "type": "integer"
+ },
+ "explicit_content_filter": {
+ "type": "integer"
+ },
+ "splash": {
+ "type": [
+ "null",
+ "string"
+ ]
+ },
+ "features": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "verification_level": {
+ "type": "integer"
+ },
+ "default_message_notifications": {
+ "type": "integer"
+ },
+ "system_channel_flags": {
+ "type": "integer"
+ },
+ "public_updates_channel_id": {
+ "type": "string"
+ },
+ "afk_channel_id": {
+ "type": "string"
+ },
+ "preferred_locale": {
+ "type": "string"
+ },
+ "premium_progress_bar_enabled": {
+ "type": "boolean"
+ },
+ "discovery_splash": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "id",
+ "name",
+ "nsfw",
+ "welcome_screen",
+ "widget_enabled"
+ ]
+ },
+ "TenorGifResponse": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "title": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string"
+ },
+ "src": {
+ "type": "string"
+ },
+ "gif_src": {
+ "type": "string"
+ },
+ "width": {
+ "type": "integer"
+ },
+ "height": {
+ "type": "integer"
+ },
+ "preview": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "gif_src",
+ "height",
+ "id",
+ "preview",
+ "src",
+ "title",
+ "url",
+ "width"
+ ]
+ },
+ "BackupCode": {
+ "type": "object",
+ "properties": {
+ "user": {
+ "$ref": "#/definitions/User"
+ },
+ "code": {
+ "type": "string"
+ },
+ "consumed": {
+ "type": "boolean"
+ },
+ "expired": {
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "code",
+ "consumed",
+ "expired",
+ "id",
+ "user"
+ ]
+ },
+ "APIGuild": {
+ "type": "object",
+ "properties": {
+ "reload": {
+ "description": "Reloads entity data from the database.",
+ "type": "object",
+ "additionalProperties": false
+ },
+ "name": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "icon": {
+ "type": "string"
+ },
+ "parent": {
+ "type": "string"
+ },
+ "owner_id": {
+ "type": "string"
+ },
+ "nsfw": {
+ "type": "boolean"
+ },
+ "invites": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Invite"
+ }
+ },
+ "voice_states": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/VoiceState"
+ }
+ },
+ "webhooks": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Webhook"
+ }
+ },
+ "toJSON": {
+ "type": "object",
+ "additionalProperties": false
+ },
+ "_do_validate": {
+ "type": "object",
+ "additionalProperties": false
+ },
+ "assign": {
+ "type": "object",
+ "additionalProperties": false
+ },
+ "hasId": {
+ "description": "Checks if entity has an id.\nIf entity composite compose ids, it will check them all.",
+ "type": "object",
+ "additionalProperties": false
+ },
+ "save": {
+ "description": "Saves current entity in the database.\nIf entity does not exist in the database then inserts, otherwise updates.",
+ "type": "object",
+ "additionalProperties": false
+ },
+ "remove": {
+ "description": "Removes current entity from the database.",
+ "type": "object",
+ "additionalProperties": false
+ },
+ "softRemove": {
+ "description": "Records the delete date of current entity.",
+ "type": "object",
+ "additionalProperties": false
+ },
+ "recover": {
+ "description": "Recovers a given entity in the database.",
+ "type": "object",
+ "additionalProperties": false
+ },
+ "roles": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Role"
+ }
+ },
+ "banner": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ },
+ "unavailable": {
+ "type": "boolean"
+ },
+ "channels": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Channel"
+ }
+ },
+ "region": {
+ "type": "string"
+ },
+ "system_channel_id": {
+ "type": "string"
+ },
+ "rules_channel_id": {
+ "type": "string"
+ },
+ "afk_timeout": {
+ "type": "integer"
+ },
+ "explicit_content_filter": {
+ "type": "integer"
+ },
+ "splash": {
+ "type": "string"
+ },
+ "features": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "verification_level": {
+ "type": "integer"
+ },
+ "default_message_notifications": {
+ "type": "integer"
+ },
+ "system_channel_flags": {
+ "type": "integer"
+ },
+ "public_updates_channel_id": {
+ "type": "string"
+ },
+ "afk_channel_id": {
+ "type": "string"
+ },
+ "preferred_locale": {
+ "type": "string"
+ },
+ "premium_progress_bar_enabled": {
+ "type": "boolean"
+ },
+ "discovery_splash": {
+ "type": "string"
+ },
+ "bans": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Ban"
+ }
+ },
+ "primary_category_id": {
+ "type": "string"
+ },
+ "large": {
+ "type": "boolean"
+ },
+ "max_members": {
+ "type": "integer"
+ },
+ "max_presences": {
+ "type": "integer"
+ },
+ "max_video_channel_users": {
+ "type": "integer"
+ },
+ "member_count": {
+ "type": "integer"
+ },
+ "presence_count": {
+ "type": "integer"
+ },
+ "members": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Member"
+ }
+ },
+ "template_id": {
+ "type": "string"
+ },
+ "emojis": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Emoji"
+ }
+ },
+ "stickers": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Sticker"
+ }
+ },
+ "mfa_level": {
+ "type": "integer"
+ },
+ "premium_subscription_count": {
+ "type": "integer"
+ },
+ "premium_tier": {
+ "type": "integer"
+ },
+ "welcome_screen": {
+ "$ref": "#/definitions/GuildWelcomeScreen"
+ },
+ "widget_channel_id": {
+ "type": "string"
+ },
+ "widget_enabled": {
+ "type": "boolean"
+ },
+ "nsfw_level": {
+ "type": "integer"
+ },
+ "permissions": {
+ "type": "integer"
+ },
+ "channel_ordering": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "_do_validate",
+ "assign",
+ "bans",
+ "channel_ordering",
+ "channels",
+ "emojis",
+ "features",
+ "hasId",
+ "id",
+ "invites",
+ "members",
+ "name",
+ "nsfw",
+ "premium_progress_bar_enabled",
+ "public_updates_channel_id",
+ "recover",
+ "reload",
+ "remove",
+ "roles",
+ "save",
+ "softRemove",
+ "stickers",
+ "toJSON",
+ "unavailable",
+ "voice_states",
+ "webhooks",
+ "welcome_screen",
+ "widget_enabled"
+ ]
+ },
+ "DmChannelDTO": {
+ "type": "object",
+ "properties": {
+ "icon": {
+ "type": [
+ "null",
+ "string"
+ ]
+ },
+ "id": {
+ "type": "string"
+ },
+ "last_message_id": {
+ "type": [
+ "null",
+ "string"
+ ]
+ },
+ "name": {
+ "type": [
+ "null",
+ "string"
+ ]
+ },
+ "origin_channel_id": {
+ "type": [
+ "null",
+ "string"
+ ]
+ },
+ "owner_id": {
+ "type": "string"
+ },
+ "recipients": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/MinimalPublicUserDTO"
+ }
+ },
+ "type": {
+ "type": "integer"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "icon",
+ "id",
+ "last_message_id",
+ "name",
+ "origin_channel_id",
+ "recipients",
+ "type"
+ ]
+ },
+ "MinimalPublicUserDTO": {
+ "type": "object",
+ "properties": {
+ "avatar": {
+ "type": [
+ "null",
+ "string"
+ ]
+ },
+ "discriminator": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "public_flags": {
+ "type": "integer"
+ },
+ "username": {
+ "type": "string"
+ },
+ "badge_ids": {
+ "anyOf": [
+ {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "discriminator",
+ "id",
+ "public_flags",
+ "username"
+ ]
+ },
+ "Categories": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "localizations": {
+ "type": "string"
+ },
+ "is_primary": {
+ "type": "boolean"
+ },
+ "icon": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "id",
+ "is_primary",
+ "localizations",
+ "name"
+ ]
+ },
+ "GuildVoiceRegion": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "custom": {
+ "type": "boolean"
+ },
+ "deprecated": {
+ "type": "boolean"
+ },
+ "optimal": {
+ "type": "boolean"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "custom",
+ "deprecated",
+ "id",
+ "name",
+ "optimal"
+ ]
+ },
+ "UserLimits": {
+ "type": "object",
+ "properties": {
+ "maxGuilds": {
+ "type": "integer",
+ "default": 1048576
+ },
+ "maxUsername": {
+ "type": "integer",
+ "default": 32
+ },
+ "maxFriends": {
+ "type": "integer",
+ "default": 5000
+ },
+ "maxBio": {
+ "type": "integer",
+ "default": 190
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "maxBio",
+ "maxFriends",
+ "maxGuilds",
+ "maxUsername"
+ ]
+ },
+ "GuildLimits": {
+ "type": "object",
+ "properties": {
+ "maxRoles": {
+ "type": "integer",
+ "default": 1000
+ },
+ "maxEmojis": {
+ "type": "integer",
+ "default": 2000
+ },
+ "maxMembers": {
+ "type": "integer",
+ "default": 25000000
+ },
+ "maxChannels": {
+ "type": "integer",
+ "default": 65535
+ },
+ "maxBulkBanUsers": {
+ "type": "integer",
+ "default": 200
+ },
+ "maxChannelsInCategory": {
+ "type": "integer",
+ "default": 65535
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "maxBulkBanUsers",
+ "maxChannels",
+ "maxChannelsInCategory",
+ "maxEmojis",
+ "maxMembers",
+ "maxRoles"
+ ]
+ },
+ "MessageLimits": {
+ "type": "object",
+ "properties": {
+ "maxCharacters": {
+ "type": "integer",
+ "default": 1048576
+ },
+ "maxTTSCharacters": {
+ "type": "integer",
+ "default": 160
+ },
+ "maxReactions": {
+ "type": "integer",
+ "default": 2048
+ },
+ "maxAttachmentSize": {
+ "type": "integer",
+ "default": 1073741824
+ },
+ "maxBulkDelete": {
+ "type": "integer",
+ "default": 1000
+ },
+ "maxEmbedDownloadSize": {
+ "type": "integer",
+ "default": 5242880
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "maxAttachmentSize",
+ "maxBulkDelete",
+ "maxCharacters",
+ "maxEmbedDownloadSize",
+ "maxReactions",
+ "maxTTSCharacters"
+ ]
+ },
+ "ChannelLimits": {
+ "type": "object",
+ "properties": {
+ "maxPins": {
+ "type": "integer",
+ "default": 500
+ },
+ "maxTopic": {
+ "type": "integer",
+ "default": 1024
+ },
+ "maxWebhooks": {
+ "type": "integer",
+ "default": 100
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "maxPins",
+ "maxTopic",
+ "maxWebhooks"
+ ]
+ },
+ "RateLimits": {
+ "type": "object",
+ "properties": {
+ "enabled": {
+ "type": "boolean",
+ "default": false
+ },
+ "ip": {
+ "$ref": "#/definitions/RateLimitOptions"
+ },
+ "global": {
+ "$ref": "#/definitions/RateLimitOptions"
+ },
+ "error": {
+ "$ref": "#/definitions/RateLimitOptions"
+ },
+ "routes": {
+ "$ref": "#/definitions/RouteRateLimit"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "enabled",
+ "error",
+ "global",
+ "ip",
+ "routes"
+ ]
+ },
+ "RateLimitOptions": {
+ "type": "object",
+ "properties": {
+ "bot": {
+ "type": "integer"
+ },
+ "count": {
+ "type": "integer"
+ },
+ "window": {
+ "type": "integer"
+ },
+ "onyIp": {
+ "type": "boolean"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "count",
+ "window"
+ ]
+ },
+ "RouteRateLimit": {
+ "type": "object",
+ "properties": {
+ "guild": {
+ "$ref": "#/definitions/RateLimitOptions"
+ },
+ "webhook": {
+ "$ref": "#/definitions/RateLimitOptions"
+ },
+ "channel": {
+ "$ref": "#/definitions/RateLimitOptions"
+ },
+ "auth": {}
+ },
+ "additionalProperties": false,
+ "required": [
+ "auth",
+ "channel",
+ "guild",
+ "webhook"
+ ]
+ },
+ "GlobalRateLimits": {
+ "type": "object",
+ "properties": {
+ "register": {
+ "$ref": "#/definitions/GlobalRateLimit"
+ },
+ "sendMessage": {
+ "$ref": "#/definitions/GlobalRateLimit"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "register",
+ "sendMessage"
+ ]
+ },
+ "GlobalRateLimit": {
+ "type": "object",
+ "properties": {
+ "limit": {
+ "type": "integer",
+ "default": 100
+ },
+ "window": {
+ "type": "integer",
+ "default": 3600000
+ },
+ "enabled": {
+ "type": "boolean",
+ "default": true
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "enabled",
+ "limit",
+ "window"
+ ]
+ },
+ "PublicConnectedAccount": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string"
+ },
+ "verified": {
+ "type": "boolean"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "name",
+ "type"
+ ]
+ },
+ "UserProfile": {
+ "type": "object",
+ "properties": {
+ "accent_color": {
+ "type": "integer"
+ },
+ "banner": {
+ "type": "string"
+ },
+ "bio": {
+ "type": "string"
+ },
+ "theme_colors": {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
+ },
+ "pronouns": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "bio"
+ ]
+ },
+ "Badge": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ },
+ "icon": {
+ "type": "string"
+ },
+ "link": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "description",
+ "icon",
+ "id"
+ ]
+ },
+ "TokenResponse": {
+ "type": "object",
+ "properties": {
+ "token": {
+ "type": "string"
+ },
+ "settings": {
+ "$ref": "#/definitions/UserSettings"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "settings",
+ "token"
+ ]
+ },
+ "MFAResponse": {
+ "type": "object",
+ "properties": {
+ "ticket": {
+ "type": "string"
+ },
+ "mfa": {
+ "type": "boolean",
+ "enum": [
+ true
+ ]
+ },
+ "sms": {
+ "type": "boolean",
+ "enum": [
+ false
+ ]
+ },
+ "token": {
+ "type": "null"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "mfa",
+ "sms",
+ "ticket",
+ "token"
+ ]
+ },
+ "WebAuthnResponse": {
+ "type": "object",
+ "properties": {
+ "webauthn": {
+ "type": "string"
+ },
+ "ticket": {
+ "type": "string"
+ },
+ "mfa": {
+ "type": "boolean",
+ "enum": [
+ true
+ ]
+ },
+ "sms": {
+ "type": "boolean",
+ "enum": [
+ false
+ ]
+ },
+ "token": {
+ "type": "null"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "mfa",
+ "sms",
+ "ticket",
+ "token",
+ "webauthn"
+ ]
+ }
+ },
+ "$schema": "http://json-schema.org/draft-07/schema#"
+ },
+ "UserGuildSettingsSchema": {
+ "type": "object",
+ "properties": {
+ "channel_overrides": {
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/definitions/ChannelOverride"
+ }
+ },
+ "version": {
+ "type": "integer"
+ },
+ "message_notifications": {
+ "type": "integer"
+ },
+ "mobile_push": {
+ "type": "boolean"
+ },
+ "mute_config": {
+ "anyOf": [
+ {
+ "$ref": "#/definitions/MuteConfig"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "muted": {
+ "type": "boolean"
+ },
+ "suppress_everyone": {
+ "type": "boolean"
+ },
+ "suppress_roles": {
+ "type": "boolean"
+ },
+ "guild_id": {
+ "type": [
+ "null",
+ "string"
+ ]
+ },
+ "flags": {
+ "type": "integer"
+ },
+ "mute_scheduled_events": {
+ "type": "boolean"
+ },
+ "hide_muted_channels": {
+ "type": "boolean"
+ },
+ "notify_highlights": {
+ "enum": [
+ 0
+ ],
+ "type": "number"
+ }
+ },
+ "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
+ },
+ "ActionRowComponent": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "$ref": "#/definitions/MessageComponentType.ActionRow"
+ },
+ "components": {
+ "type": "array",
+ "items": {
+ "anyOf": [
+ {
+ "$ref": "#/definitions/ButtonComponent"
+ },
+ {
+ "$ref": "#/definitions/SelectMenuComponent"
+ },
+ {
+ "$ref": "#/definitions/StringSelectMenuComponent"
+ },
+ {
+ "$ref": "#/definitions/TextInputComponent"
+ }
+ ]
+ }
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "components",
+ "type"
+ ]
+ },
+ "MessageComponentType.ActionRow": {
+ "type": "number",
+ "enum": [
+ 1
+ ]
+ },
+ "ButtonComponent": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "$ref": "#/definitions/MessageComponentType.Button"
+ },
+ "style": {
+ "$ref": "#/definitions/ButtonStyle"
+ },
+ "label": {
+ "type": "string"
+ },
+ "emoji": {
+ "$ref": "#/definitions/PartialEmoji"
+ },
+ "custom_id": {
+ "type": "string"
+ },
+ "sku_id": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string"
+ },
+ "disabled": {
+ "type": "boolean"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "style",
+ "type"
+ ]
+ },
+ "MessageComponentType.Button": {
+ "type": "number",
+ "enum": [
+ 2
+ ]
+ },
+ "ButtonStyle": {
+ "enum": [
+ 1,
+ 2,
+ 3,
+ 4,
+ 5,
+ 6
+ ],
+ "type": "number"
+ },
+ "PartialEmoji": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "animated": {
+ "type": "boolean"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "name"
+ ]
+ },
+ "SelectMenuComponent": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "enum": [
+ 3,
+ 5,
+ 6,
+ 7,
+ 8
+ ],
+ "type": "number"
+ },
+ "custom_id": {
+ "type": "string"
+ },
+ "channel_types": {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
+ },
+ "placeholder": {
+ "type": "string"
+ },
+ "default_values": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/SelectMenuDefaultOption"
+ }
+ },
+ "min_values": {
+ "type": "integer"
+ },
+ "max_values": {
+ "type": "integer"
+ },
+ "disabled": {
+ "type": "boolean"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "custom_id",
+ "type"
+ ]
+ },
+ "SelectMenuDefaultOption": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "type": {
+ "enum": [
+ "channel",
+ "role",
+ "user"
+ ],
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "id",
+ "type"
+ ]
+ },
+ "StringSelectMenuComponent": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "$ref": "#/definitions/MessageComponentType.StringSelect"
+ },
+ "options": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/SelectMenuOption"
+ }
+ },
+ "custom_id": {
+ "type": "string"
+ },
+ "channel_types": {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
+ },
+ "placeholder": {
+ "type": "string"
+ },
+ "default_values": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/SelectMenuDefaultOption"
+ }
+ },
+ "min_values": {
+ "type": "integer"
+ },
+ "max_values": {
+ "type": "integer"
+ },
+ "disabled": {
+ "type": "boolean"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "custom_id",
+ "options",
+ "type"
+ ]
+ },
+ "MessageComponentType.StringSelect": {
+ "type": "number",
+ "enum": [
+ 3
+ ]
+ },
+ "SelectMenuOption": {
+ "type": "object",
+ "properties": {
+ "label": {
+ "type": "string"
+ },
+ "value": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ },
+ "emoji": {
+ "$ref": "#/definitions/PartialEmoji"
+ },
+ "default": {
+ "type": "boolean"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "label",
+ "value"
+ ]
+ },
+ "TextInputComponent": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "$ref": "#/definitions/MessageComponentType.TextInput"
+ },
+ "custom_id": {
+ "type": "string"
+ },
+ "style": {
+ "$ref": "#/definitions/TextInputStyle"
+ },
+ "label": {
+ "type": "string"
+ },
+ "min_length": {
+ "type": "integer"
+ },
+ "max_length": {
+ "type": "integer"
+ },
+ "required": {
+ "type": "boolean"
+ },
+ "value": {
+ "type": "string"
+ },
+ "placeholder": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "custom_id",
+ "label",
+ "style",
+ "type"
+ ]
+ },
+ "MessageComponentType.TextInput": {
+ "type": "number",
+ "enum": [
+ 4
+ ]
+ },
+ "TextInputStyle": {
+ "enum": [
+ 1,
+ 2
+ ],
+ "type": "number"
+ },
+ "PollCreationSchema": {
+ "type": "object",
+ "properties": {
+ "question": {
+ "$ref": "#/definitions/PollMedia"
+ },
+ "answers": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/PollAnswer"
+ }
+ },
+ "duration": {
+ "type": "integer"
+ },
+ "allow_multiselect": {
+ "type": "boolean"
+ },
+ "layout_type": {
+ "type": "integer"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "answers",
+ "question"
+ ]
+ },
+ "PollMedia": {
+ "type": "object",
+ "properties": {
+ "text": {
+ "type": "string"
+ },
+ "emoji": {
+ "$ref": "#/definitions/PartialEmoji"
+ }
+ },
+ "additionalProperties": false
+ },
+ "PollAnswer": {
+ "type": "object",
+ "properties": {
+ "answer_id": {
+ "type": "string"
+ },
+ "poll_media": {
+ "$ref": "#/definitions/PollMedia"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "poll_media"
+ ]
+ },
+ "ChannelOverride": {
+ "type": "object",
+ "properties": {
+ "message_notifications": {
+ "type": "integer"
+ },
+ "mute_config": {
+ "$ref": "#/definitions/MuteConfig"
+ },
+ "muted": {
+ "type": "boolean"
+ },
+ "channel_id": {
+ "type": [
+ "null",
+ "string"
+ ]
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "channel_id",
+ "message_notifications",
+ "mute_config",
+ "muted"
+ ]
+ },
+ "MuteConfig": {
+ "type": "object",
+ "properties": {
+ "end_time": {
+ "type": "integer"
+ },
+ "selected_time_window": {
+ "type": "integer"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "end_time",
+ "selected_time_window"
+ ]
+ },
+ "CustomStatus": {
+ "type": "object",
+ "properties": {
+ "emoji_id": {
+ "type": "string"
+ },
+ "emoji_name": {
+ "type": "string"
+ },
+ "expires_at": {
+ "type": "integer"
+ },
+ "text": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false
+ },
+ "FriendSourceFlags": {
+ "type": "object",
+ "properties": {
+ "all": {
+ "type": "boolean"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "all"
+ ]
+ },
+ "GuildFolder": {
+ "type": "object",
+ "properties": {
+ "color": {
+ "type": "integer"
+ },
+ "guild_ids": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "id": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "color",
+ "guild_ids",
+ "id",
+ "name"
+ ]
+ },
+ "GenerateWebAuthnCredentialsSchema": {
+ "type": "object",
+ "properties": {
+ "password": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "password"
+ ]
+ },
+ "CreateWebAuthnCredentialSchema": {
+ "type": "object",
+ "properties": {
+ "credential": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "ticket": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "credential",
+ "name",
+ "ticket"
+ ]
+ },
+ "APIErrorResponse": {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "integer"
+ },
+ "message": {
+ "type": "string"
+ },
+ "errors": {
+ "type": "object",
+ "additionalProperties": {
+ "type": "object",
+ "properties": {
+ "_errors": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "message": {
+ "type": "string"
+ },
+ "code": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "code",
+ "message"
+ ]
+ }
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "_errors"
+ ]
+ }
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "code",
+ "errors",
+ "message"
+ ]
+ },
+ "CaptchaRequiredResponse": {
+ "type": "object",
+ "properties": {
+ "captcha_key": {
+ "type": "string"
+ },
+ "captcha_sitekey": {
+ "type": "string"
+ },
+ "captcha_service": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "captcha_key",
+ "captcha_service",
+ "captcha_sitekey"
+ ]
+ },
+ "Guild": {
+ "type": "object",
+ "properties": {
+ "afk_channel_id": {
+ "type": "string"
+ },
+ "afk_channel": {
+ "$ref": "#/definitions/Channel"
+ },
+ "afk_timeout": {
+ "type": "integer"
+ },
+ "bans": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Ban"
+ }
+ },
+ "banner": {
+ "type": "string"
+ },
+ "default_message_notifications": {
+ "type": "integer"
+ },
+ "description": {
+ "type": "string"
+ },
+ "discovery_splash": {
+ "type": "string"
+ },
+ "explicit_content_filter": {
+ "type": "integer"
+ },
+ "features": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "default": []
+ },
+ "primary_category_id": {
+ "type": "string"
+ },
+ "icon": {
+ "type": "string"
+ },
+ "large": {
+ "type": "boolean",
+ "default": false
+ },
+ "max_members": {
+ "type": "integer"
+ },
+ "max_presences": {
+ "type": "integer"
+ },
+ "max_video_channel_users": {
+ "type": "integer"
+ },
+ "member_count": {
+ "type": "integer"
+ },
+ "presence_count": {
+ "type": "integer"
+ },
+ "members": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Member"
+ }
+ },
+ "roles": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Role"
+ }
+ },
+ "channels": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Channel"
+ }
+ },
+ "template_id": {
+ "type": "string"
+ },
+ "template": {
+ "$ref": "#/definitions/Template"
+ },
+ "emojis": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Emoji"
+ }
+ },
+ "stickers": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Sticker"
+ }
+ },
+ "invites": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Invite"
+ }
+ },
+ "voice_states": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/VoiceState"
+ }
+ },
+ "webhooks": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Webhook"
+ }
+ },
+ "mfa_level": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "owner_id": {
+ "type": "string"
+ },
+ "owner": {
+ "$ref": "#/definitions/User"
+ },
+ "preferred_locale": {
+ "type": "string"
+ },
+ "premium_subscription_count": {
+ "type": "integer"
+ },
+ "premium_tier": {
+ "type": "integer"
+ },
+ "public_updates_channel_id": {
+ "type": "string"
+ },
+ "public_updates_channel": {
+ "$ref": "#/definitions/Channel"
+ },
+ "rules_channel_id": {
+ "type": "string"
+ },
+ "rules_channel": {
+ "type": "string"
+ },
+ "region": {
+ "type": "string"
+ },
+ "splash": {
+ "type": "string"
+ },
+ "system_channel_id": {
+ "type": "string"
+ },
+ "system_channel": {
+ "$ref": "#/definitions/Channel"
+ },
+ "system_channel_flags": {
+ "type": "integer"
+ },
+ "unavailable": {
+ "type": "boolean",
+ "default": false
+ },
+ "verification_level": {
+ "type": "integer"
+ },
+ "welcome_screen": {
+ "$ref": "#/definitions/GuildWelcomeScreen"
+ },
+ "widget_channel_id": {
+ "type": "string"
+ },
+ "widget_channel": {
+ "$ref": "#/definitions/Channel"
+ },
+ "widget_enabled": {
+ "type": "boolean",
+ "default": true
+ },
+ "nsfw_level": {
+ "type": "integer"
+ },
+ "nsfw": {
+ "type": "boolean",
+ "default": false
+ },
+ "parent": {
+ "type": "string"
+ },
+ "permissions": {
+ "type": "integer"
+ },
+ "premium_progress_bar_enabled": {
+ "type": "boolean",
+ "default": false
+ },
+ "channel_ordering": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "bans",
+ "channel_ordering",
+ "channels",
+ "emojis",
+ "features",
+ "id",
+ "invites",
+ "members",
+ "name",
+ "nsfw",
+ "premium_progress_bar_enabled",
+ "public_updates_channel_id",
+ "roles",
+ "stickers",
+ "template",
+ "unavailable",
+ "voice_states",
+ "webhooks",
+ "welcome_screen",
+ "widget_enabled"
+ ]
+ },
+ "Channel": {
+ "type": "object",
+ "properties": {
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "name": {
+ "type": "string"
+ },
+ "icon": {
+ "type": [
+ "null",
+ "string"
+ ]
+ },
+ "type": {
+ "$ref": "#/definitions/ChannelType"
+ },
+ "recipients": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Recipient"
+ }
+ },
+ "last_message_id": {
+ "type": "string"
+ },
+ "guild_id": {
+ "type": "string"
+ },
+ "guild": {
+ "$ref": "#/definitions/Guild"
+ },
+ "parent_id": {
+ "type": [
+ "null",
+ "string"
+ ]
+ },
+ "parent": {
+ "$ref": "#/definitions/Channel"
+ },
+ "owner_id": {
+ "type": "string"
+ },
+ "owner": {
+ "$ref": "#/definitions/User"
+ },
+ "last_pin_timestamp": {
+ "type": "integer"
+ },
+ "default_auto_archive_duration": {
+ "type": "integer"
+ },
+ "permission_overwrites": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ChannelPermissionOverwrite"
+ }
+ },
+ "video_quality_mode": {
+ "type": "integer"
+ },
+ "bitrate": {
+ "type": "integer"
+ },
+ "user_limit": {
+ "type": "integer"
+ },
+ "nsfw": {
+ "type": "boolean",
+ "default": false
+ },
+ "rate_limit_per_user": {
+ "type": "integer"
+ },
+ "topic": {
+ "type": "string"
+ },
+ "invites": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Invite"
+ }
+ },
+ "retention_policy_id": {
+ "type": "string"
+ },
+ "messages": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Message"
+ }
+ },
+ "voice_states": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/VoiceState"
+ }
+ },
+ "read_states": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ReadState"
+ }
+ },
+ "webhooks": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Webhook"
+ }
+ },
+ "flags": {
+ "type": "integer",
+ "default": 0
+ },
+ "default_thread_rate_limit_per_user": {
+ "type": "integer",
+ "default": 0
+ },
+ "position": {
+ "description": "Must be calculated Channel.calculatePosition",
+ "type": "integer"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "created_at",
+ "default_thread_rate_limit_per_user",
+ "flags",
+ "id",
+ "nsfw",
+ "owner",
+ "parent_id",
+ "position",
+ "type"
+ ]
+ },
+ "ChannelType": {
+ "enum": [
+ 0,
+ 1,
+ 10,
+ 11,
+ 12,
+ 13,
+ 14,
+ 15,
+ 2,
+ 255,
+ 3,
+ 33,
+ 34,
+ 35,
+ 4,
+ 5,
+ 6,
+ 64,
+ 7,
+ 8,
+ 9
+ ],
+ "type": "number"
+ },
+ "Recipient": {
+ "type": "object",
+ "properties": {
+ "channel_id": {
+ "type": "string"
+ },
+ "channel": {
+ "$ref": "#/definitions/Channel"
+ },
+ "user_id": {
+ "type": "string"
+ },
+ "user": {
+ "$ref": "#/definitions/User"
+ },
+ "closed": {
+ "type": "boolean"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "channel",
+ "channel_id",
+ "closed",
+ "id",
+ "user",
+ "user_id"
+ ]
+ },
+ "User": {
+ "type": "object",
+ "properties": {
+ "username": {
+ "type": "string"
+ },
+ "discriminator": {
+ "type": "string"
+ },
+ "avatar": {
+ "type": "string"
+ },
+ "accent_color": {
+ "type": "integer"
+ },
+ "banner": {
+ "type": "string"
+ },
+ "theme_colors": {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
+ },
+ "pronouns": {
+ "type": "string"
+ },
+ "phone": {
+ "type": "string"
+ },
+ "desktop": {
+ "type": "boolean",
+ "default": false
+ },
+ "mobile": {
+ "type": "boolean",
+ "default": false
+ },
+ "premium": {
+ "type": "boolean"
+ },
+ "premium_type": {
+ "type": "integer"
+ },
+ "bot": {
+ "type": "boolean",
+ "default": false
+ },
+ "bio": {
+ "type": "string",
+ "default": ""
+ },
+ "system": {
+ "type": "boolean",
+ "default": false
+ },
+ "nsfw_allowed": {
+ "type": "boolean",
+ "default": true
+ },
+ "mfa_enabled": {
+ "type": "boolean",
+ "default": false
+ },
+ "webauthn_enabled": {
+ "type": "boolean",
+ "default": false
+ },
+ "totp_secret": {
+ "type": "string",
+ "default": ""
+ },
+ "totp_last_ticket": {
+ "type": "string",
+ "default": ""
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "premium_since": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "verified": {
+ "type": "boolean"
+ },
+ "disabled": {
+ "type": "boolean",
+ "default": false
+ },
+ "deleted": {
+ "type": "boolean",
+ "default": false
+ },
+ "email": {
+ "type": "string"
+ },
+ "flags": {
+ "type": "integer",
+ "default": 0
+ },
+ "public_flags": {
+ "type": "integer",
+ "default": 0
+ },
+ "purchased_flags": {
+ "type": "integer",
+ "default": 0
+ },
+ "premium_usage_flags": {
+ "type": "integer",
+ "default": 0
+ },
+ "rights": {
+ "type": "string"
+ },
+ "sessions": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Session"
+ }
+ },
+ "relationships": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Relationship"
+ }
+ },
+ "connected_accounts": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ConnectedAccount"
+ }
+ },
+ "data": {
+ "type": "object",
+ "properties": {
+ "valid_tokens_since": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "hash": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "valid_tokens_since"
+ ]
+ },
+ "fingerprints": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "default": []
+ },
+ "settings": {
+ "$ref": "#/definitions/UserSettings"
+ },
+ "extended_settings": {
+ "type": "string",
+ "default": "{}"
+ },
+ "security_keys": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/SecurityKey"
+ }
+ },
+ "badge_ids": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "bio",
+ "bot",
+ "connected_accounts",
+ "created_at",
+ "data",
+ "deleted",
+ "desktop",
+ "disabled",
+ "discriminator",
+ "extended_settings",
+ "fingerprints",
+ "flags",
+ "id",
+ "mfa_enabled",
+ "mobile",
+ "nsfw_allowed",
+ "premium",
+ "premium_since",
+ "premium_type",
+ "premium_usage_flags",
+ "public_flags",
+ "purchased_flags",
+ "relationships",
+ "rights",
+ "security_keys",
+ "sessions",
+ "settings",
+ "system",
+ "username",
+ "verified",
+ "webauthn_enabled"
+ ]
+ },
+ "Session": {
+ "type": "object",
+ "properties": {
+ "user_id": {
+ "type": "string"
+ },
+ "user": {
+ "$ref": "#/definitions/User"
+ },
+ "session_id": {
+ "type": "string"
+ },
+ "activities": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Activity"
+ }
+ },
+ "client_info": {
+ "type": "object",
+ "properties": {
+ "client": {
+ "type": "string"
+ },
+ "os": {
+ "type": "string"
+ },
+ "version": {
+ "type": "integer"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "client",
+ "os",
+ "version"
+ ]
+ },
+ "client_status": {
+ "$ref": "#/definitions/ClientStatus"
+ },
+ "status": {
+ "$ref": "#/definitions/Status"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "activities",
+ "client_info",
+ "client_status",
+ "id",
+ "session_id",
+ "status",
+ "user",
+ "user_id"
+ ]
+ },
+ "ClientStatus": {
+ "type": "object",
+ "properties": {
+ "desktop": {
+ "type": "string"
+ },
+ "mobile": {
+ "type": "string"
+ },
+ "web": {
+ "type": "string"
+ },
+ "embedded": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false
+ },
+ "Relationship": {
+ "type": "object",
+ "properties": {
+ "from_id": {
+ "type": "string"
+ },
+ "from": {
+ "$ref": "#/definitions/User"
+ },
+ "to_id": {
+ "type": "string"
+ },
+ "to": {
+ "$ref": "#/definitions/User"
+ },
+ "nickname": {
+ "type": "string"
+ },
+ "type": {
+ "$ref": "#/definitions/RelationshipType"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "from",
+ "from_id",
+ "id",
+ "to",
+ "to_id",
+ "type"
+ ]
+ },
+ "RelationshipType": {
+ "enum": [
+ 1,
+ 2,
+ 3,
+ 4
+ ],
+ "type": "number"
+ },
+ "ConnectedAccount": {
+ "type": "object",
+ "properties": {
+ "external_id": {
+ "type": "string"
+ },
+ "user_id": {
+ "type": "string"
+ },
+ "user": {
+ "$ref": "#/definitions/User"
+ },
+ "friend_sync": {
+ "type": "boolean",
+ "default": false
+ },
+ "name": {
+ "type": "string"
+ },
+ "revoked": {
+ "type": "boolean",
+ "default": false
+ },
+ "show_activity": {
+ "type": "integer",
+ "default": 0
+ },
+ "type": {
+ "type": "string"
+ },
+ "verified": {
+ "type": "boolean",
+ "default": true
+ },
+ "visibility": {
+ "type": "integer",
+ "default": 0
+ },
+ "integrations": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "default": []
+ },
+ "metadata_": {},
+ "metadata_visibility": {
+ "type": "integer",
+ "default": 0
+ },
+ "two_way_link": {
+ "type": "boolean",
+ "default": false
+ },
+ "token_data": {
+ "anyOf": [
+ {
+ "$ref": "#/definitions/ConnectedAccountTokenData"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "external_id",
+ "id",
+ "name",
+ "type",
+ "user",
+ "user_id"
+ ]
+ },
+ "UserSettings": {
+ "type": "object",
+ "properties": {
+ "index": {
+ "type": "string"
+ },
+ "afk_timeout": {
+ "type": "integer",
+ "default": 3600
+ },
+ "allow_accessibility_detection": {
+ "type": "boolean",
+ "default": true
+ },
+ "animate_emoji": {
+ "type": "boolean",
+ "default": true
+ },
+ "animate_stickers": {
+ "type": "integer",
+ "default": 0
+ },
+ "contact_sync_enabled": {
+ "type": "boolean",
+ "default": false
+ },
+ "convert_emoticons": {
+ "type": "boolean",
+ "default": false
+ },
+ "custom_status": {
+ "anyOf": [
+ {
+ "$ref": "#/definitions/CustomStatus"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null
+ },
+ "default_guilds_restricted": {
+ "type": "boolean",
+ "default": false
+ },
+ "detect_platform_accounts": {
+ "type": "boolean",
+ "default": false
+ },
+ "developer_mode": {
+ "type": "boolean",
+ "default": true
+ },
+ "disable_games_tab": {
+ "type": "boolean",
+ "default": true
+ },
+ "enable_tts_command": {
+ "type": "boolean",
+ "default": false
+ },
+ "explicit_content_filter": {
+ "type": "integer",
+ "default": 0
+ },
+ "friend_discovery_flags": {
+ "type": "integer",
+ "default": 0
+ },
+ "friend_source_flags": {
+ "$ref": "#/definitions/FriendSourceFlags"
+ },
+ "gateway_connected": {
+ "type": "boolean",
+ "default": false
+ },
+ "gif_auto_play": {
+ "type": "boolean",
+ "default": false
+ },
+ "guild_folders": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/GuildFolder"
+ },
+ "default": []
+ },
+ "guild_positions": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "default": []
+ },
+ "inline_attachment_media": {
+ "type": "boolean",
+ "default": true
+ },
+ "inline_embed_media": {
+ "type": "boolean",
+ "default": true
+ },
+ "locale": {
+ "type": "string",
+ "default": "en-US"
+ },
+ "message_display_compact": {
+ "type": "boolean",
+ "default": false
+ },
+ "native_phone_integration_enabled": {
+ "type": "boolean",
+ "default": true
+ },
+ "render_embeds": {
+ "type": "boolean",
+ "default": true
+ },
+ "render_reactions": {
+ "type": "boolean",
+ "default": true
+ },
+ "restricted_guilds": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "default": []
+ },
+ "show_current_game": {
+ "type": "boolean",
+ "default": true
+ },
+ "status": {
+ "enum": [
+ "dnd",
+ "idle",
+ "invisible",
+ "offline",
+ "online"
+ ],
+ "type": "string",
+ "default": "online"
+ },
+ "stream_notifications_enabled": {
+ "type": "boolean",
+ "default": false
+ },
+ "theme": {
+ "enum": [
+ "dark",
+ "light"
+ ],
+ "type": "string",
+ "default": "dark"
+ },
+ "timezone_offset": {
+ "type": "integer",
+ "default": 0
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean",
+ "default": true
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "afk_timeout",
+ "allow_accessibility_detection",
+ "animate_emoji",
+ "animate_stickers",
+ "contact_sync_enabled",
+ "convert_emoticons",
+ "custom_status",
+ "default_guilds_restricted",
+ "detect_platform_accounts",
+ "developer_mode",
+ "disable_games_tab",
+ "enable_tts_command",
+ "explicit_content_filter",
+ "friend_discovery_flags",
+ "friend_source_flags",
+ "gateway_connected",
+ "gif_auto_play",
+ "guild_folders",
+ "guild_positions",
+ "index",
+ "inline_attachment_media",
+ "inline_embed_media",
+ "locale",
+ "message_display_compact",
+ "native_phone_integration_enabled",
+ "render_embeds",
+ "render_reactions",
+ "restricted_guilds",
+ "show_current_game",
+ "status",
+ "stream_notifications_enabled",
+ "theme",
+ "timezone_offset",
+ "view_nsfw_guilds"
+ ]
+ },
+ "SecurityKey": {
+ "type": "object",
+ "properties": {
+ "user_id": {
+ "type": "string"
+ },
+ "user": {
+ "$ref": "#/definitions/User"
+ },
+ "key_id": {
+ "type": "string"
+ },
+ "public_key": {
+ "type": "string"
+ },
+ "counter": {
+ "type": "integer"
+ },
+ "name": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "counter",
+ "id",
+ "key_id",
+ "name",
+ "public_key",
+ "user",
+ "user_id"
+ ]
+ },
+ "ChannelPermissionOverwrite": {
+ "type": "object",
+ "properties": {
+ "allow": {
+ "type": "string"
+ },
+ "deny": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "type": {
+ "$ref": "#/definitions/ChannelPermissionOverwriteType"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "allow",
+ "deny",
+ "id",
+ "type"
+ ]
+ },
+ "Invite": {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "temporary": {
+ "type": "boolean"
+ },
+ "uses": {
+ "type": "integer"
+ },
+ "max_uses": {
+ "type": "integer"
+ },
+ "max_age": {
+ "type": "integer"
+ },
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "expires_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "guild_id": {
+ "type": "string"
+ },
+ "guild": {
+ "$ref": "#/definitions/Guild"
+ },
+ "channel_id": {
+ "type": "string"
+ },
+ "channel": {
+ "$ref": "#/definitions/Channel"
+ },
+ "inviter_id": {
+ "type": "string"
+ },
+ "inviter": {
+ "$ref": "#/definitions/User"
+ },
+ "target_user_id": {
+ "type": "string"
+ },
+ "target_user": {
+ "type": "string"
+ },
+ "target_user_type": {
+ "type": "integer"
+ },
+ "vanity_url": {
+ "type": "boolean"
+ },
+ "flags": {
+ "type": "integer"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "channel",
+ "channel_id",
+ "code",
+ "created_at",
+ "flags",
+ "guild",
+ "guild_id",
+ "inviter",
+ "max_age",
+ "max_uses",
+ "target_user_id",
+ "temporary",
+ "uses"
+ ]
+ },
+ "Message": {
+ "type": "object",
+ "properties": {
+ "channel_id": {
+ "type": "string"
+ },
+ "channel": {
+ "$ref": "#/definitions/Channel"
+ },
+ "guild_id": {
+ "type": "string"
+ },
+ "guild": {
+ "$ref": "#/definitions/Guild"
+ },
+ "author_id": {
+ "type": "string"
+ },
+ "author": {
+ "$ref": "#/definitions/User"
+ },
+ "member_id": {
+ "type": "string"
+ },
+ "member": {
+ "$ref": "#/definitions/Member"
+ },
+ "webhook_id": {
+ "type": "string"
+ },
+ "webhook": {
+ "$ref": "#/definitions/Webhook"
+ },
+ "application_id": {
+ "type": "string"
+ },
+ "application": {
+ "$ref": "#/definitions/Application"
+ },
+ "content": {
+ "type": "string"
+ },
+ "timestamp": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "edited_timestamp": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "tts": {
+ "type": "boolean"
+ },
+ "mention_everyone": {
+ "type": "boolean"
+ },
+ "mentions": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/User"
+ }
+ },
+ "mention_roles": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Role"
+ }
+ },
+ "mention_channels": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Channel"
+ }
+ },
+ "sticker_items": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Sticker"
+ }
+ },
+ "attachments": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Attachment"
+ }
+ },
+ "embeds": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Embed"
+ }
+ },
+ "reactions": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Reaction"
+ }
+ },
+ "nonce": {
+ "type": "string"
+ },
+ "pinned": {
+ "type": "boolean"
+ },
+ "type": {
+ "$ref": "#/definitions/MessageType"
+ },
+ "activity": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "integer"
+ },
+ "party_id": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "party_id",
+ "type"
+ ]
+ },
+ "flags": {
+ "type": "integer"
+ },
+ "message_reference": {
+ "type": "object",
+ "properties": {
+ "message_id": {
+ "type": "string"
+ },
+ "channel_id": {
+ "type": "string"
+ },
+ "guild_id": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "message_id"
+ ]
+ },
+ "referenced_message": {
+ "$ref": "#/definitions/Message"
+ },
+ "interaction": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "type": {
+ "$ref": "#/definitions/InteractionType"
+ },
+ "name": {
+ "type": "string"
+ },
+ "user_id": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "id",
+ "name",
+ "type",
+ "user_id"
+ ]
+ },
+ "components": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/ActionRowComponent"
+ }
+ },
+ "poll": {
+ "$ref": "#/definitions/Poll"
+ },
+ "username": {
+ "type": "string"
+ },
+ "avatar": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "channel",
+ "embeds",
+ "flags",
+ "id",
+ "mention_channels",
+ "mention_roles",
+ "mentions",
+ "reactions",
+ "timestamp",
+ "type"
+ ]
+ },
+ "Member": {
+ "type": "object",
+ "properties": {
+ "index": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "user": {
+ "$ref": "#/definitions/User"
+ },
+ "guild_id": {
+ "type": "string"
+ },
+ "guild": {
+ "$ref": "#/definitions/Guild"
+ },
+ "nick": {
+ "type": "string"
+ },
+ "roles": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Role"
+ }
+ },
+ "joined_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "premium_since": {
+ "type": "integer"
+ },
+ "deaf": {
+ "type": "boolean"
+ },
+ "mute": {
+ "type": "boolean"
+ },
+ "pending": {
+ "type": "boolean"
+ },
+ "settings": {
+ "$ref": "#/definitions/UserGuildSettings"
+ },
+ "last_message_id": {
+ "type": "string"
+ },
+ "joined_by": {
+ "type": "string"
+ },
+ "avatar": {
+ "type": "string"
+ },
+ "banner": {
+ "type": "string"
+ },
+ "bio": {
+ "type": "string"
+ },
+ "theme_colors": {
+ "type": "array",
+ "items": {
+ "type": "integer"
+ }
+ },
+ "pronouns": {
+ "type": "string"
+ },
+ "communication_disabled_until": {
+ "type": "string",
+ "format": "date-time"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "banner",
+ "bio",
+ "communication_disabled_until",
+ "deaf",
+ "guild",
+ "guild_id",
+ "id",
+ "index",
+ "joined_at",
+ "joined_by",
+ "mute",
+ "pending",
+ "roles",
+ "settings",
+ "user"
+ ]
+ },
+ "Role": {
+ "type": "object",
+ "properties": {
+ "guild_id": {
+ "type": "string"
+ },
+ "guild": {
+ "$ref": "#/definitions/Guild"
+ },
+ "color": {
+ "type": "integer"
+ },
+ "hoist": {
+ "type": "boolean"
+ },
+ "managed": {
+ "type": "boolean"
+ },
+ "mentionable": {
+ "type": "boolean"
+ },
+ "name": {
+ "type": "string"
+ },
+ "permissions": {
+ "type": "string"
+ },
+ "position": {
+ "type": "integer"
+ },
+ "icon": {
+ "type": "string"
+ },
+ "unicode_emoji": {
+ "type": "string"
+ },
+ "tags": {
+ "type": "object",
+ "properties": {
+ "bot_id": {
+ "type": "string"
+ },
+ "integration_id": {
+ "type": "string"
+ },
+ "premium_subscriber": {
+ "type": "boolean"
+ }
+ },
+ "additionalProperties": false
+ },
+ "flags": {
+ "type": "integer"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "color",
+ "flags",
+ "guild",
+ "guild_id",
+ "hoist",
+ "id",
+ "managed",
+ "mentionable",
+ "name",
+ "permissions",
+ "position"
+ ]
+ },
+ "UserGuildSettings": {
+ "type": "object",
+ "properties": {
+ "channel_overrides": {
+ "anyOf": [
+ {
+ "type": "object",
+ "additionalProperties": {
+ "$ref": "#/definitions/ChannelOverride"
+ }
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "message_notifications": {
+ "type": "integer"
+ },
+ "mobile_push": {
+ "type": "boolean"
+ },
+ "mute_config": {
+ "anyOf": [
+ {
+ "$ref": "#/definitions/MuteConfig"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "muted": {
+ "type": "boolean"
+ },
+ "suppress_everyone": {
+ "type": "boolean"
+ },
+ "suppress_roles": {
+ "type": "boolean"
+ },
+ "version": {
+ "type": "integer"
+ },
+ "guild_id": {
+ "type": [
+ "null",
+ "string"
+ ]
+ },
+ "flags": {
+ "type": "integer"
+ },
+ "mute_scheduled_events": {
+ "type": "boolean"
+ },
+ "hide_muted_channels": {
+ "type": "boolean"
+ },
+ "notify_highlights": {
+ "type": "number",
+ "enum": [
+ 0
+ ]
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "channel_overrides",
+ "flags",
+ "guild_id",
+ "hide_muted_channels",
+ "message_notifications",
+ "mobile_push",
+ "mute_config",
+ "mute_scheduled_events",
+ "muted",
+ "notify_highlights",
+ "suppress_everyone",
+ "suppress_roles",
+ "version"
+ ]
+ },
+ "Webhook": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "$ref": "#/definitions/WebhookType"
+ },
+ "name": {
+ "type": "string"
+ },
+ "avatar": {
+ "type": "string"
+ },
+ "token": {
+ "type": "string"
+ },
+ "guild_id": {
+ "type": "string"
+ },
+ "guild": {
+ "$ref": "#/definitions/Guild"
+ },
+ "channel_id": {
+ "type": "string"
+ },
+ "channel": {
+ "$ref": "#/definitions/Channel"
+ },
+ "application_id": {
+ "type": "string"
+ },
+ "application": {
+ "$ref": "#/definitions/Application"
+ },
+ "user_id": {
+ "type": "string"
+ },
+ "user": {
+ "$ref": "#/definitions/User"
+ },
+ "source_guild_id": {
+ "type": "string"
+ },
+ "source_guild": {
+ "$ref": "#/definitions/Guild"
+ },
+ "source_channel_id": {
+ "type": "string"
+ },
+ "source_channel": {
+ "$ref": "#/definitions/Channel"
+ },
+ "url": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "application",
+ "application_id",
+ "avatar",
+ "channel",
+ "channel_id",
+ "id",
+ "name",
+ "source_channel",
+ "source_channel_id",
+ "type",
+ "url",
+ "user",
+ "user_id"
+ ]
+ },
+ "WebhookType": {
+ "enum": [
+ 1,
+ 2,
+ 3
+ ],
+ "type": "number"
+ },
+ "Application": {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "icon": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ },
+ "summary": {
+ "type": "string",
+ "default": ""
+ },
+ "type": {
+ "type": "object",
+ "properties": {},
+ "additionalProperties": true
+ },
+ "hook": {
+ "type": "boolean",
+ "default": true
+ },
+ "bot_public": {
+ "type": "boolean",
+ "default": true
+ },
+ "bot_require_code_grant": {
+ "type": "boolean",
+ "default": false
+ },
+ "verify_key": {
+ "type": "string"
+ },
+ "owner": {
+ "$ref": "#/definitions/User"
+ },
+ "flags": {
+ "type": "integer",
+ "default": 0
+ },
+ "redirect_uris": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "default": []
+ },
+ "rpc_application_state": {
+ "type": "integer",
+ "default": 0
+ },
+ "store_application_state": {
+ "type": "integer",
+ "default": 1
+ },
+ "verification_state": {
+ "type": "integer",
+ "default": 1
+ },
+ "interactions_endpoint_url": {
+ "type": "string"
+ },
+ "integration_public": {
+ "type": "boolean",
+ "default": true
+ },
+ "integration_require_code_grant": {
+ "type": "boolean",
+ "default": false
+ },
+ "discoverability_state": {
+ "type": "integer",
+ "default": 1
+ },
+ "discovery_eligibility_flags": {
+ "type": "integer",
+ "default": 2240
+ },
+ "bot": {
+ "$ref": "#/definitions/User"
+ },
+ "tags": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "cover_image": {
+ "type": "string"
+ },
+ "install_params": {
+ "type": "object",
+ "properties": {
+ "scopes": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "permissions": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "permissions",
+ "scopes"
+ ]
+ },
+ "terms_of_service_url": {
+ "type": "string"
+ },
+ "privacy_policy_url": {
+ "type": "string"
+ },
+ "team": {
+ "$ref": "#/definitions/Team"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "description",
+ "discoverability_state",
+ "discovery_eligibility_flags",
+ "flags",
+ "hook",
+ "id",
+ "integration_public",
+ "integration_require_code_grant",
+ "name",
+ "owner",
+ "redirect_uris",
+ "rpc_application_state",
+ "store_application_state",
+ "summary",
+ "verification_state",
+ "verify_key"
+ ]
+ },
+ "Team": {
+ "type": "object",
+ "properties": {
+ "icon": {
+ "type": "string"
+ },
+ "members": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/TeamMember"
+ }
+ },
+ "name": {
+ "type": "string"
+ },
+ "owner_user_id": {
+ "type": "string"
+ },
+ "owner_user": {
+ "$ref": "#/definitions/User"
+ },
+ "id": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "id",
+ "members",
+ "name",
+ "owner_user",
+ "owner_user_id"
+ ]
+ },
+ "TeamMember": {
+ "type": "object",
+ "properties": {
+ "membership_state": {
+ "$ref": "#/definitions/TeamMemberState"
+ },
+ "permissions": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -202306,6 +212527,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -202319,6 +212541,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -204139,63 +214369,47 @@
},
"$schema": "http://json-schema.org/draft-07/schema#"
},
- "UserGuildSettingsSchema": {
+ "UserModifySchema": {
"type": "object",
"properties": {
- "channel_overrides": {
- "type": "object",
- "additionalProperties": {
- "$ref": "#/definitions/ChannelOverride"
- }
- },
- "version": {
- "type": "integer"
- },
- "message_notifications": {
- "type": "integer"
- },
- "mobile_push": {
- "type": "boolean"
+ "username": {
+ "minLength": 2,
+ "type": "string"
},
- "mute_config": {
- "anyOf": [
- {
- "$ref": "#/definitions/MuteConfig"
- },
- {
- "type": "null"
- }
+ "avatar": {
+ "type": [
+ "null",
+ "string"
]
},
- "muted": {
- "type": "boolean"
- },
- "suppress_everyone": {
- "type": "boolean"
+ "bio": {
+ "type": "string"
},
- "suppress_roles": {
- "type": "boolean"
+ "accent_color": {
+ "type": "integer"
},
- "guild_id": {
+ "banner": {
"type": [
"null",
"string"
]
},
- "flags": {
- "type": "integer"
+ "password": {
+ "type": "string"
},
- "mute_scheduled_events": {
- "type": "boolean"
+ "new_password": {
+ "type": "string"
},
- "hide_muted_channels": {
- "type": "boolean"
+ "code": {
+ "type": "string"
},
- "notify_highlights": {
- "enum": [
- 0
- ],
- "type": "number"
+ "email": {
+ "type": "string"
+ },
+ "discriminator": {
+ "minLength": 4,
+ "maxLength": 4,
+ "type": "string"
}
},
"additionalProperties": false,
@@ -207162,6 +217376,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -207183,6 +217400,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -207196,6 +217414,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -209016,50 +219242,17 @@
},
"$schema": "http://json-schema.org/draft-07/schema#"
},
- "UserModifySchema": {
+ "UserNoteUpdateSchema": {
"type": "object",
"properties": {
- "username": {
- "minLength": 2,
- "type": "string"
- },
- "avatar": {
- "type": [
- "null",
- "string"
- ]
- },
- "bio": {
- "type": "string"
- },
- "accent_color": {
- "type": "integer"
- },
- "banner": {
- "type": [
- "null",
- "string"
- ]
- },
- "password": {
- "type": "string"
- },
- "new_password": {
- "type": "string"
- },
- "code": {
- "type": "string"
- },
- "email": {
- "type": "string"
- },
- "discriminator": {
- "minLength": 4,
- "maxLength": 4,
+ "note": {
"type": "string"
}
},
"additionalProperties": false,
+ "required": [
+ "note"
+ ],
"definitions": {
"ChannelPermissionOverwriteType": {
"enum": [
@@ -212023,6 +222216,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -212044,6 +222240,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -212057,6 +222254,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -213877,17 +224082,42 @@
},
"$schema": "http://json-schema.org/draft-07/schema#"
},
- "UserNoteUpdateSchema": {
+ "UserProfileModifySchema": {
"type": "object",
"properties": {
- "note": {
+ "bio": {
+ "type": "string"
+ },
+ "accent_color": {
+ "type": [
+ "null",
+ "integer"
+ ]
+ },
+ "banner": {
+ "type": [
+ "null",
+ "string"
+ ]
+ },
+ "pronouns": {
"type": "string"
+ },
+ "theme_colors": {
+ "items": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "integer"
+ }
+ ],
+ "type": "array",
+ "minItems": 2,
+ "maxItems": 2
}
},
"additionalProperties": false,
- "required": [
- "note"
- ],
"definitions": {
"ChannelPermissionOverwriteType": {
"enum": [
@@ -216851,6 +227081,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -216872,6 +227105,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -216885,6 +227119,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -218705,39 +228947,134 @@
},
"$schema": "http://json-schema.org/draft-07/schema#"
},
- "UserProfileModifySchema": {
+ "UserSettingsSchema": {
"type": "object",
"properties": {
- "bio": {
+ "status": {
+ "enum": [
+ "dnd",
+ "idle",
+ "invisible",
+ "offline",
+ "online"
+ ],
"type": "string"
},
- "accent_color": {
- "type": [
- "null",
- "integer"
- ]
+ "afk_timeout": {
+ "type": "integer"
},
- "banner": {
- "type": [
- "null",
- "string"
- ]
+ "allow_accessibility_detection": {
+ "type": "boolean"
},
- "pronouns": {
- "type": "string"
+ "animate_emoji": {
+ "type": "boolean"
},
- "theme_colors": {
- "items": [
+ "animate_stickers": {
+ "type": "integer"
+ },
+ "contact_sync_enabled": {
+ "type": "boolean"
+ },
+ "convert_emoticons": {
+ "type": "boolean"
+ },
+ "custom_status": {
+ "anyOf": [
{
- "type": "integer"
+ "$ref": "#/definitions/CustomStatus"
},
{
- "type": "integer"
+ "type": "null"
}
- ],
+ ]
+ },
+ "default_guilds_restricted": {
+ "type": "boolean"
+ },
+ "detect_platform_accounts": {
+ "type": "boolean"
+ },
+ "developer_mode": {
+ "type": "boolean"
+ },
+ "disable_games_tab": {
+ "type": "boolean"
+ },
+ "enable_tts_command": {
+ "type": "boolean"
+ },
+ "explicit_content_filter": {
+ "type": "integer"
+ },
+ "friend_discovery_flags": {
+ "type": "integer"
+ },
+ "friend_source_flags": {
+ "$ref": "#/definitions/FriendSourceFlags"
+ },
+ "gateway_connected": {
+ "type": "boolean"
+ },
+ "gif_auto_play": {
+ "type": "boolean"
+ },
+ "guild_folders": {
"type": "array",
- "minItems": 2,
- "maxItems": 2
+ "items": {
+ "$ref": "#/definitions/GuildFolder"
+ }
+ },
+ "guild_positions": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "inline_attachment_media": {
+ "type": "boolean"
+ },
+ "inline_embed_media": {
+ "type": "boolean"
+ },
+ "locale": {
+ "type": "string"
+ },
+ "message_display_compact": {
+ "type": "boolean"
+ },
+ "native_phone_integration_enabled": {
+ "type": "boolean"
+ },
+ "render_embeds": {
+ "type": "boolean"
+ },
+ "render_reactions": {
+ "type": "boolean"
+ },
+ "restricted_guilds": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "show_current_game": {
+ "type": "boolean"
+ },
+ "stream_notifications_enabled": {
+ "type": "boolean"
+ },
+ "theme": {
+ "enum": [
+ "dark",
+ "light"
+ ],
+ "type": "string"
+ },
+ "timezone_offset": {
+ "type": "integer"
+ },
+ "view_nsfw_guilds": {
+ "type": "boolean"
}
},
"additionalProperties": false,
@@ -221704,6 +232041,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -221725,6 +232065,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -221738,6 +232079,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -223558,134 +233907,13 @@
},
"$schema": "http://json-schema.org/draft-07/schema#"
},
- "UserSettingsSchema": {
+ "VanityUrlSchema": {
"type": "object",
"properties": {
- "status": {
- "enum": [
- "dnd",
- "idle",
- "invisible",
- "offline",
- "online"
- ],
- "type": "string"
- },
- "afk_timeout": {
- "type": "integer"
- },
- "allow_accessibility_detection": {
- "type": "boolean"
- },
- "animate_emoji": {
- "type": "boolean"
- },
- "animate_stickers": {
- "type": "integer"
- },
- "contact_sync_enabled": {
- "type": "boolean"
- },
- "convert_emoticons": {
- "type": "boolean"
- },
- "custom_status": {
- "anyOf": [
- {
- "$ref": "#/definitions/CustomStatus"
- },
- {
- "type": "null"
- }
- ]
- },
- "default_guilds_restricted": {
- "type": "boolean"
- },
- "detect_platform_accounts": {
- "type": "boolean"
- },
- "developer_mode": {
- "type": "boolean"
- },
- "disable_games_tab": {
- "type": "boolean"
- },
- "enable_tts_command": {
- "type": "boolean"
- },
- "explicit_content_filter": {
- "type": "integer"
- },
- "friend_discovery_flags": {
- "type": "integer"
- },
- "friend_source_flags": {
- "$ref": "#/definitions/FriendSourceFlags"
- },
- "gateway_connected": {
- "type": "boolean"
- },
- "gif_auto_play": {
- "type": "boolean"
- },
- "guild_folders": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/GuildFolder"
- }
- },
- "guild_positions": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "inline_attachment_media": {
- "type": "boolean"
- },
- "inline_embed_media": {
- "type": "boolean"
- },
- "locale": {
- "type": "string"
- },
- "message_display_compact": {
- "type": "boolean"
- },
- "native_phone_integration_enabled": {
- "type": "boolean"
- },
- "render_embeds": {
- "type": "boolean"
- },
- "render_reactions": {
- "type": "boolean"
- },
- "restricted_guilds": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "show_current_game": {
- "type": "boolean"
- },
- "stream_notifications_enabled": {
- "type": "boolean"
- },
- "theme": {
- "enum": [
- "dark",
- "light"
- ],
+ "code": {
+ "minLength": 1,
+ "maxLength": 20,
"type": "string"
- },
- "timezone_offset": {
- "type": "integer"
- },
- "view_nsfw_guilds": {
- "type": "boolean"
}
},
"additionalProperties": false,
@@ -226652,6 +236880,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -226673,6 +236904,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -226686,6 +236918,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -228506,16 +238746,55 @@
},
"$schema": "http://json-schema.org/draft-07/schema#"
},
- "VanityUrlSchema": {
+ "VoiceIdentifySchema": {
"type": "object",
"properties": {
- "code": {
- "minLength": 1,
- "maxLength": 20,
+ "server_id": {
+ "type": "string"
+ },
+ "user_id": {
"type": "string"
+ },
+ "session_id": {
+ "type": "string"
+ },
+ "token": {
+ "type": "string"
+ },
+ "video": {
+ "type": "boolean"
+ },
+ "streams": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string"
+ },
+ "rid": {
+ "type": "string"
+ },
+ "quality": {
+ "type": "integer"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "quality",
+ "rid",
+ "type"
+ ]
+ }
}
},
"additionalProperties": false,
+ "required": [
+ "server_id",
+ "session_id",
+ "token",
+ "user_id"
+ ],
"definitions": {
"ChannelPermissionOverwriteType": {
"enum": [
@@ -231479,6 +241758,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -231500,6 +241782,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -231513,6 +241796,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -233333,54 +243624,42 @@
},
"$schema": "http://json-schema.org/draft-07/schema#"
},
- "VoiceIdentifySchema": {
+ "VoiceStateUpdateSchema": {
"type": "object",
"properties": {
- "server_id": {
+ "guild_id": {
"type": "string"
},
- "user_id": {
+ "channel_id": {
"type": "string"
},
- "session_id": {
- "type": "string"
+ "self_mute": {
+ "type": "boolean"
},
- "token": {
+ "self_deaf": {
+ "type": "boolean"
+ },
+ "self_video": {
+ "type": "boolean"
+ },
+ "preferred_region": {
"type": "string"
},
- "video": {
+ "request_to_speak_timestamp": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "suppress": {
"type": "boolean"
},
- "streams": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string"
- },
- "rid": {
- "type": "string"
- },
- "quality": {
- "type": "integer"
- }
- },
- "additionalProperties": false,
- "required": [
- "quality",
- "rid",
- "type"
- ]
- }
+ "flags": {
+ "type": "integer"
}
},
"additionalProperties": false,
"required": [
- "server_id",
- "session_id",
- "token",
- "user_id"
+ "self_deaf",
+ "self_mute"
],
"definitions": {
"ChannelPermissionOverwriteType": {
@@ -236345,6 +246624,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -236366,6 +246648,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -236379,6 +246662,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -238199,42 +248490,94 @@
},
"$schema": "http://json-schema.org/draft-07/schema#"
},
- "VoiceStateUpdateSchema": {
+ "VoiceVideoSchema": {
"type": "object",
"properties": {
- "guild_id": {
- "type": "string"
- },
- "channel_id": {
- "type": "string"
- },
- "self_mute": {
- "type": "boolean"
+ "audio_ssrc": {
+ "type": "integer"
},
- "self_deaf": {
- "type": "boolean"
+ "video_ssrc": {
+ "type": "integer"
},
- "self_video": {
- "type": "boolean"
+ "rtx_ssrc": {
+ "type": "integer"
},
- "preferred_region": {
+ "user_id": {
"type": "string"
},
- "request_to_speak_timestamp": {
- "type": "string",
- "format": "date-time"
- },
- "suppress": {
- "type": "boolean"
- },
- "flags": {
- "type": "integer"
+ "streams": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "enum": [
+ "audio",
+ "video"
+ ],
+ "type": "string"
+ },
+ "rid": {
+ "type": "string"
+ },
+ "ssrc": {
+ "type": "integer"
+ },
+ "active": {
+ "type": "boolean"
+ },
+ "quality": {
+ "type": "integer"
+ },
+ "rtx_ssrc": {
+ "type": "integer"
+ },
+ "max_bitrate": {
+ "type": "integer"
+ },
+ "max_framerate": {
+ "type": "integer"
+ },
+ "max_resolution": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string"
+ },
+ "width": {
+ "type": "integer"
+ },
+ "height": {
+ "type": "integer"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "height",
+ "type",
+ "width"
+ ]
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "active",
+ "max_bitrate",
+ "max_framerate",
+ "max_resolution",
+ "quality",
+ "rid",
+ "rtx_ssrc",
+ "ssrc",
+ "type"
+ ]
+ }
}
},
"additionalProperties": false,
"required": [
- "self_deaf",
- "self_mute"
+ "audio_ssrc",
+ "video_ssrc"
],
"definitions": {
"ChannelPermissionOverwriteType": {
@@ -241199,6 +251542,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -241220,6 +251566,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -241233,6 +251580,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -243053,94 +253408,16 @@
},
"$schema": "http://json-schema.org/draft-07/schema#"
},
- "VoiceVideoSchema": {
+ "GenerateWebAuthnCredentialsSchema": {
"type": "object",
"properties": {
- "audio_ssrc": {
- "type": "integer"
- },
- "video_ssrc": {
- "type": "integer"
- },
- "rtx_ssrc": {
- "type": "integer"
- },
- "user_id": {
+ "password": {
"type": "string"
- },
- "streams": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "type": {
- "enum": [
- "audio",
- "video"
- ],
- "type": "string"
- },
- "rid": {
- "type": "string"
- },
- "ssrc": {
- "type": "integer"
- },
- "active": {
- "type": "boolean"
- },
- "quality": {
- "type": "integer"
- },
- "rtx_ssrc": {
- "type": "integer"
- },
- "max_bitrate": {
- "type": "integer"
- },
- "max_framerate": {
- "type": "integer"
- },
- "max_resolution": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string"
- },
- "width": {
- "type": "integer"
- },
- "height": {
- "type": "integer"
- }
- },
- "additionalProperties": false,
- "required": [
- "height",
- "type",
- "width"
- ]
- }
- },
- "additionalProperties": false,
- "required": [
- "active",
- "max_bitrate",
- "max_framerate",
- "max_resolution",
- "quality",
- "rid",
- "rtx_ssrc",
- "ssrc",
- "type"
- ]
- }
}
},
"additionalProperties": false,
"required": [
- "audio_ssrc",
- "video_ssrc"
+ "password"
],
"definitions": {
"ChannelPermissionOverwriteType": {
@@ -246105,6 +256382,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -246126,6 +256406,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -246139,6 +256420,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -247959,16 +258248,24 @@
},
"$schema": "http://json-schema.org/draft-07/schema#"
},
- "GenerateWebAuthnCredentialsSchema": {
+ "CreateWebAuthnCredentialSchema": {
"type": "object",
"properties": {
- "password": {
+ "credential": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "ticket": {
"type": "string"
}
},
"additionalProperties": false,
"required": [
- "password"
+ "credential",
+ "name",
+ "ticket"
],
"definitions": {
"ChannelPermissionOverwriteType": {
@@ -250933,6 +261230,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -250954,6 +261254,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -250967,6 +261268,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -252787,24 +263096,14 @@
},
"$schema": "http://json-schema.org/draft-07/schema#"
},
- "CreateWebAuthnCredentialSchema": {
- "type": "object",
- "properties": {
- "credential": {
- "type": "string"
- },
- "name": {
- "type": "string"
+ "WebAuthnPostSchema": {
+ "anyOf": [
+ {
+ "$ref": "#/definitions/GenerateWebAuthnCredentialsSchema"
},
- "ticket": {
- "type": "string"
+ {
+ "$ref": "#/definitions/CreateWebAuthnCredentialSchema"
}
- },
- "additionalProperties": false,
- "required": [
- "credential",
- "name",
- "ticket"
],
"definitions": {
"ChannelPermissionOverwriteType": {
@@ -255769,6 +266068,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -255790,6 +266092,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -255803,6 +266106,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -257623,14 +267934,20 @@
},
"$schema": "http://json-schema.org/draft-07/schema#"
},
- "WebAuthnPostSchema": {
- "anyOf": [
- {
- "$ref": "#/definitions/GenerateWebAuthnCredentialsSchema"
+ "WebAuthnTotpSchema": {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "string"
},
- {
- "$ref": "#/definitions/CreateWebAuthnCredentialSchema"
+ "ticket": {
+ "type": "string"
}
+ },
+ "additionalProperties": false,
+ "required": [
+ "code",
+ "ticket"
],
"definitions": {
"ChannelPermissionOverwriteType": {
@@ -260595,6 +270912,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -260616,6 +270936,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -260629,6 +270950,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -262449,20 +272778,20 @@
},
"$schema": "http://json-schema.org/draft-07/schema#"
},
- "WebAuthnTotpSchema": {
+ "WebhookCreateSchema": {
"type": "object",
"properties": {
- "code": {
+ "name": {
+ "maxLength": 80,
"type": "string"
},
- "ticket": {
+ "avatar": {
"type": "string"
}
},
"additionalProperties": false,
"required": [
- "code",
- "ticket"
+ "name"
],
"definitions": {
"ChannelPermissionOverwriteType": {
@@ -265427,6 +275756,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -265448,6 +275780,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -265461,6 +275794,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -267281,21 +277622,107 @@
},
"$schema": "http://json-schema.org/draft-07/schema#"
},
- "WebhookCreateSchema": {
+ "WebhookExecuteSchema": {
"type": "object",
"properties": {
- "name": {
- "maxLength": 80,
+ "content": {
"type": "string"
},
- "avatar": {
+ "username": {
+ "type": "string"
+ },
+ "avatar_url": {
"type": "string"
+ },
+ "tts": {
+ "type": "boolean"
+ },
+ "embeds": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Embed"
+ }
+ },
+ "allowed_mentions": {
+ "type": "object",
+ "properties": {
+ "parse": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "roles": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "users": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "replied_user": {
+ "type": "boolean"
+ }
+ },
+ "additionalProperties": false
+ },
+ "components": {
+ "type": "array",
+ "items": {}
+ },
+ "file": {
+ "type": "object",
+ "properties": {
+ "filename": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "filename"
+ ]
+ },
+ "payload_json": {
+ "type": "string"
+ },
+ "attachments": {
+ "description": "TODO: we should create an interface for attachments\nTODO: OpenWAAO<-->attachment-style metadata conversion",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "filename": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "filename",
+ "id"
+ ]
+ }
+ },
+ "flags": {
+ "type": "integer"
+ },
+ "thread_name": {
+ "type": "string"
+ },
+ "applied_tags": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
}
},
"additionalProperties": false,
- "required": [
- "name"
- ],
"definitions": {
"ChannelPermissionOverwriteType": {
"enum": [
@@ -270259,6 +280686,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -270280,6 +280710,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -270293,6 +280724,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -272113,107 +282552,21 @@
},
"$schema": "http://json-schema.org/draft-07/schema#"
},
- "WebhookExecuteSchema": {
+ "WidgetModifySchema": {
"type": "object",
"properties": {
- "content": {
- "type": "string"
- },
- "username": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "tts": {
+ "enabled": {
"type": "boolean"
},
- "embeds": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Embed"
- }
- },
- "allowed_mentions": {
- "type": "object",
- "properties": {
- "parse": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "roles": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "users": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "replied_user": {
- "type": "boolean"
- }
- },
- "additionalProperties": false
- },
- "components": {
- "type": "array",
- "items": {}
- },
- "file": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- }
- },
- "additionalProperties": false,
- "required": [
- "filename"
- ]
- },
- "payload_json": {
- "type": "string"
- },
- "attachments": {
- "description": "TODO: we should create an interface for attachments\nTODO: OpenWAAO<-->attachment-style metadata conversion",
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
- },
- "filename": {
- "type": "string"
- }
- },
- "additionalProperties": false,
- "required": [
- "filename",
- "id"
- ]
- }
- },
- "flags": {
- "type": "integer"
- },
- "thread_name": {
+ "channel_id": {
"type": "string"
- },
- "applied_tags": {
- "type": "array",
- "items": {
- "type": "string"
- }
}
},
"additionalProperties": false,
+ "required": [
+ "channel_id",
+ "enabled"
+ ],
"definitions": {
"ChannelPermissionOverwriteType": {
"enum": [
@@ -275177,6 +285530,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -275198,6 +285554,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -275211,6 +285568,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -277031,20 +287396,52 @@
},
"$schema": "http://json-schema.org/draft-07/schema#"
},
- "WidgetModifySchema": {
+ "APIErrorResponse": {
"type": "object",
"properties": {
- "enabled": {
- "type": "boolean"
+ "code": {
+ "type": "integer"
},
- "channel_id": {
+ "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": [
- "channel_id",
- "enabled"
+ "code",
+ "errors",
+ "message"
],
"definitions": {
"ChannelPermissionOverwriteType": {
@@ -280009,6 +290406,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -280030,6 +290430,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -280043,6 +290444,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -281863,52 +292272,24 @@
},
"$schema": "http://json-schema.org/draft-07/schema#"
},
- "APIErrorResponse": {
+ "CaptchaRequiredResponse": {
"type": "object",
"properties": {
- "code": {
- "type": "integer"
+ "captcha_key": {
+ "type": "string"
},
- "message": {
+ "captcha_sitekey": {
"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"
- ]
- }
+ "captcha_service": {
+ "type": "string"
}
},
"additionalProperties": false,
"required": [
- "code",
- "errors",
- "message"
+ "captcha_key",
+ "captcha_service",
+ "captcha_sitekey"
],
"definitions": {
"ChannelPermissionOverwriteType": {
@@ -284873,6 +295254,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -284894,6 +295278,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -284907,6 +295292,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -286727,24 +297120,14 @@
},
"$schema": "http://json-schema.org/draft-07/schema#"
},
- "CaptchaRequiredResponse": {
- "type": "object",
- "properties": {
- "captcha_key": {
- "type": "string"
- },
- "captcha_sitekey": {
- "type": "string"
+ "APIErrorOrCaptchaResponse": {
+ "anyOf": [
+ {
+ "$ref": "#/definitions/APIErrorResponse"
},
- "captcha_service": {
- "type": "string"
+ {
+ "$ref": "#/definitions/CaptchaRequiredResponse"
}
- },
- "additionalProperties": false,
- "required": [
- "captcha_key",
- "captcha_service",
- "captcha_sitekey"
],
"definitions": {
"ChannelPermissionOverwriteType": {
@@ -289709,6 +300092,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -289730,6 +300116,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -289743,6 +300130,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -291563,14 +301958,20 @@
},
"$schema": "http://json-schema.org/draft-07/schema#"
},
- "APIErrorOrCaptchaResponse": {
- "anyOf": [
- {
- "$ref": "#/definitions/APIErrorResponse"
+ "BackupCodesChallengeResponse": {
+ "type": "object",
+ "properties": {
+ "nonce": {
+ "type": "string"
},
- {
- "$ref": "#/definitions/CaptchaRequiredResponse"
+ "regenerate_nonce": {
+ "type": "string"
}
+ },
+ "additionalProperties": false,
+ "required": [
+ "nonce",
+ "regenerate_nonce"
],
"definitions": {
"ChannelPermissionOverwriteType": {
@@ -294535,6 +304936,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -294556,6 +304960,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -294569,6 +304974,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -296389,20 +306802,31 @@
},
"$schema": "http://json-schema.org/draft-07/schema#"
},
- "BackupCodesChallengeResponse": {
+ "DiscoverableGuildsResponse": {
"type": "object",
"properties": {
- "nonce": {
- "type": "string"
+ "total": {
+ "type": "integer"
},
- "regenerate_nonce": {
- "type": "string"
+ "guilds": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Guild"
+ }
+ },
+ "offset": {
+ "type": "integer"
+ },
+ "limit": {
+ "type": "integer"
}
},
"additionalProperties": false,
"required": [
- "nonce",
- "regenerate_nonce"
+ "guilds",
+ "limit",
+ "offset",
+ "total"
],
"definitions": {
"ChannelPermissionOverwriteType": {
@@ -299367,6 +309791,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -299388,6 +309815,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -299401,6 +309829,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -301221,31 +311657,45 @@
},
"$schema": "http://json-schema.org/draft-07/schema#"
},
- "DiscoverableGuildsResponse": {
+ "GatewayBotResponse": {
"type": "object",
"properties": {
- "total": {
- "type": "integer"
- },
- "guilds": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Guild"
- }
+ "url": {
+ "type": "string"
},
- "offset": {
+ "shards": {
"type": "integer"
},
- "limit": {
- "type": "integer"
+ "session_start_limit": {
+ "type": "object",
+ "properties": {
+ "total": {
+ "type": "integer"
+ },
+ "remaining": {
+ "type": "integer"
+ },
+ "reset_after": {
+ "type": "integer"
+ },
+ "max_concurrency": {
+ "type": "integer"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "max_concurrency",
+ "remaining",
+ "reset_after",
+ "total"
+ ]
}
},
"additionalProperties": false,
"required": [
- "guilds",
- "limit",
- "offset",
- "total"
+ "session_start_limit",
+ "shards",
+ "url"
],
"definitions": {
"ChannelPermissionOverwriteType": {
@@ -304210,6 +314660,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -304231,6 +314684,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -304244,6 +314698,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -306064,44 +316526,15 @@
},
"$schema": "http://json-schema.org/draft-07/schema#"
},
- "GatewayBotResponse": {
+ "GatewayResponse": {
"type": "object",
"properties": {
"url": {
"type": "string"
- },
- "shards": {
- "type": "integer"
- },
- "session_start_limit": {
- "type": "object",
- "properties": {
- "total": {
- "type": "integer"
- },
- "remaining": {
- "type": "integer"
- },
- "reset_after": {
- "type": "integer"
- },
- "max_concurrency": {
- "type": "integer"
- }
- },
- "additionalProperties": false,
- "required": [
- "max_concurrency",
- "remaining",
- "reset_after",
- "total"
- ]
}
},
"additionalProperties": false,
"required": [
- "session_start_limit",
- "shards",
"url"
],
"definitions": {
@@ -309067,6 +319500,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -309088,6 +319524,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -309101,6 +319538,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -310921,16 +321366,19 @@
},
"$schema": "http://json-schema.org/draft-07/schema#"
},
- "GatewayResponse": {
+ "GenerateRegistrationTokensResponse": {
"type": "object",
"properties": {
- "url": {
- "type": "string"
+ "tokens": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
}
},
"additionalProperties": false,
"required": [
- "url"
+ "tokens"
],
"definitions": {
"ChannelPermissionOverwriteType": {
@@ -313895,6 +324343,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -313916,6 +324367,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -313929,6 +324381,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -315749,19 +326209,48 @@
},
"$schema": "http://json-schema.org/draft-07/schema#"
},
- "GenerateRegistrationTokensResponse": {
+ "GuildBansResponse": {
"type": "object",
"properties": {
- "tokens": {
- "type": "array",
- "items": {
- "type": "string"
- }
+ "reason": {
+ "type": "string"
+ },
+ "user": {
+ "type": "object",
+ "properties": {
+ "username": {
+ "type": "string"
+ },
+ "discriminator": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "avatar": {
+ "type": [
+ "null",
+ "string"
+ ]
+ },
+ "public_flags": {
+ "type": "integer"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "avatar",
+ "discriminator",
+ "id",
+ "public_flags",
+ "username"
+ ]
}
},
"additionalProperties": false,
"required": [
- "tokens"
+ "reason",
+ "user"
],
"definitions": {
"ChannelPermissionOverwriteType": {
@@ -318726,6 +329215,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -318747,6 +329239,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -318760,6 +329253,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -320580,48 +331081,143 @@
},
"$schema": "http://json-schema.org/draft-07/schema#"
},
- "GuildBansResponse": {
+ "GuildCreateResponse": {
"type": "object",
"properties": {
- "reason": {
+ "id": {
"type": "string"
},
- "user": {
- "type": "object",
- "properties": {
- "username": {
- "type": "string"
- },
- "discriminator": {
- "type": "string"
- },
- "id": {
- "type": "string"
- },
- "avatar": {
- "type": [
- "null",
- "string"
- ]
- },
- "public_flags": {
- "type": "integer"
- }
- },
- "additionalProperties": false,
- "required": [
- "avatar",
- "discriminator",
- "id",
- "public_flags",
- "username"
+ "name": {
+ "type": "string"
+ },
+ "primary_category_id": {
+ "type": "string"
+ },
+ "large": {
+ "type": "boolean"
+ },
+ "max_members": {
+ "type": "integer"
+ },
+ "max_presences": {
+ "type": "integer"
+ },
+ "max_video_channel_users": {
+ "type": "integer"
+ },
+ "member_count": {
+ "type": "integer"
+ },
+ "presence_count": {
+ "type": "integer"
+ },
+ "template_id": {
+ "type": "string"
+ },
+ "mfa_level": {
+ "type": "integer"
+ },
+ "owner_id": {
+ "type": "string"
+ },
+ "premium_subscription_count": {
+ "type": "integer"
+ },
+ "premium_tier": {
+ "type": "integer"
+ },
+ "welcome_screen": {
+ "$ref": "#/definitions/GuildWelcomeScreen"
+ },
+ "widget_channel_id": {
+ "type": "string"
+ },
+ "widget_enabled": {
+ "type": "boolean"
+ },
+ "nsfw_level": {
+ "type": "integer"
+ },
+ "nsfw": {
+ "type": "boolean"
+ },
+ "parent": {
+ "type": "string"
+ },
+ "icon": {
+ "type": [
+ "null",
+ "string"
+ ]
+ },
+ "banner": {
+ "type": [
+ "null",
+ "string"
]
+ },
+ "description": {
+ "type": "string"
+ },
+ "region": {
+ "type": "string"
+ },
+ "system_channel_id": {
+ "type": "string"
+ },
+ "rules_channel_id": {
+ "type": "string"
+ },
+ "afk_timeout": {
+ "type": "integer"
+ },
+ "explicit_content_filter": {
+ "type": "integer"
+ },
+ "splash": {
+ "type": [
+ "null",
+ "string"
+ ]
+ },
+ "features": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "verification_level": {
+ "type": "integer"
+ },
+ "default_message_notifications": {
+ "type": "integer"
+ },
+ "system_channel_flags": {
+ "type": "integer"
+ },
+ "public_updates_channel_id": {
+ "type": "string"
+ },
+ "afk_channel_id": {
+ "type": "string"
+ },
+ "preferred_locale": {
+ "type": "string"
+ },
+ "premium_progress_bar_enabled": {
+ "type": "boolean"
+ },
+ "discovery_splash": {
+ "type": "string"
}
},
"additionalProperties": false,
"required": [
- "reason",
- "user"
+ "id",
+ "name",
+ "nsfw",
+ "welcome_screen",
+ "widget_enabled"
],
"definitions": {
"ChannelPermissionOverwriteType": {
@@ -323586,6 +334182,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -323607,6 +334206,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -323620,6 +334220,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -325440,143 +336048,95 @@
},
"$schema": "http://json-schema.org/draft-07/schema#"
},
- "GuildCreateResponse": {
+ "GuildDiscoveryRequirementsResponse": {
"type": "object",
"properties": {
- "id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "primary_category_id": {
+ "uild_id": {
"type": "string"
},
- "large": {
+ "safe_environment": {
"type": "boolean"
},
- "max_members": {
- "type": "integer"
- },
- "max_presences": {
- "type": "integer"
- },
- "max_video_channel_users": {
- "type": "integer"
- },
- "member_count": {
- "type": "integer"
- },
- "presence_count": {
- "type": "integer"
- },
- "template_id": {
- "type": "string"
- },
- "mfa_level": {
- "type": "integer"
- },
- "owner_id": {
- "type": "string"
- },
- "premium_subscription_count": {
- "type": "integer"
- },
- "premium_tier": {
- "type": "integer"
- },
- "welcome_screen": {
- "$ref": "#/definitions/GuildWelcomeScreen"
- },
- "widget_channel_id": {
- "type": "string"
- },
- "widget_enabled": {
+ "healthy": {
"type": "boolean"
},
- "nsfw_level": {
- "type": "integer"
- },
- "nsfw": {
+ "health_score_pending": {
"type": "boolean"
},
- "parent": {
- "type": "string"
+ "size": {
+ "type": "boolean"
},
- "icon": {
- "type": [
- "null",
- "string"
- ]
+ "nsfw_properties": {},
+ "protected": {
+ "type": "boolean"
},
- "banner": {
- "type": [
- "null",
- "string"
- ]
+ "sufficient": {
+ "type": "boolean"
},
- "description": {
- "type": "string"
+ "sufficient_without_grace_period": {
+ "type": "boolean"
},
- "region": {
- "type": "string"
+ "valid_rules_channel": {
+ "type": "boolean"
},
- "system_channel_id": {
- "type": "string"
+ "retention_healthy": {
+ "type": "boolean"
},
- "rules_channel_id": {
- "type": "string"
+ "engagement_healthy": {
+ "type": "boolean"
},
- "afk_timeout": {
- "type": "integer"
+ "age": {
+ "type": "boolean"
},
- "explicit_content_filter": {
+ "minimum_age": {
"type": "integer"
},
- "splash": {
- "type": [
- "null",
- "string"
+ "health_score": {
+ "type": "object",
+ "properties": {
+ "avg_nonnew_participators": {
+ "type": "integer"
+ },
+ "avg_nonnew_communicators": {
+ "type": "integer"
+ },
+ "num_intentful_joiners": {
+ "type": "integer"
+ },
+ "perc_ret_w1_intentful": {
+ "type": "integer"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "avg_nonnew_communicators",
+ "avg_nonnew_participators",
+ "num_intentful_joiners",
+ "perc_ret_w1_intentful"
]
},
- "features": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "verification_level": {
- "type": "integer"
- },
- "default_message_notifications": {
- "type": "integer"
- },
- "system_channel_flags": {
+ "minimum_size": {
"type": "integer"
- },
- "public_updates_channel_id": {
- "type": "string"
- },
- "afk_channel_id": {
- "type": "string"
- },
- "preferred_locale": {
- "type": "string"
- },
- "premium_progress_bar_enabled": {
- "type": "boolean"
- },
- "discovery_splash": {
- "type": "string"
}
},
"additionalProperties": false,
"required": [
- "id",
- "name",
- "nsfw",
- "welcome_screen",
- "widget_enabled"
+ "age",
+ "engagement_healthy",
+ "health_score",
+ "health_score_pending",
+ "healthy",
+ "minimum_age",
+ "minimum_size",
+ "nsfw_properties",
+ "protected",
+ "retention_healthy",
+ "safe_environment",
+ "size",
+ "sufficient",
+ "sufficient_without_grace_period",
+ "uild_id",
+ "valid_rules_channel"
],
"definitions": {
"ChannelPermissionOverwriteType": {
@@ -328541,6 +339101,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -328562,6 +339125,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -328575,6 +339139,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -330395,95 +340967,23 @@
},
"$schema": "http://json-schema.org/draft-07/schema#"
},
- "GuildDiscoveryRequirementsResponse": {
+ "GuildMessagesSearchResponse": {
"type": "object",
"properties": {
- "uild_id": {
- "type": "string"
- },
- "safe_environment": {
- "type": "boolean"
- },
- "healthy": {
- "type": "boolean"
- },
- "health_score_pending": {
- "type": "boolean"
- },
- "size": {
- "type": "boolean"
- },
- "nsfw_properties": {},
- "protected": {
- "type": "boolean"
- },
- "sufficient": {
- "type": "boolean"
- },
- "sufficient_without_grace_period": {
- "type": "boolean"
- },
- "valid_rules_channel": {
- "type": "boolean"
- },
- "retention_healthy": {
- "type": "boolean"
- },
- "engagement_healthy": {
- "type": "boolean"
- },
- "age": {
- "type": "boolean"
- },
- "minimum_age": {
- "type": "integer"
- },
- "health_score": {
- "type": "object",
- "properties": {
- "avg_nonnew_participators": {
- "type": "integer"
- },
- "avg_nonnew_communicators": {
- "type": "integer"
- },
- "num_intentful_joiners": {
- "type": "integer"
- },
- "perc_ret_w1_intentful": {
- "type": "integer"
- }
- },
- "additionalProperties": false,
- "required": [
- "avg_nonnew_communicators",
- "avg_nonnew_participators",
- "num_intentful_joiners",
- "perc_ret_w1_intentful"
- ]
+ "messages": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/GuildMessagesSearchMessage"
+ }
},
- "minimum_size": {
+ "total_results": {
"type": "integer"
}
},
"additionalProperties": false,
"required": [
- "age",
- "engagement_healthy",
- "health_score",
- "health_score_pending",
- "healthy",
- "minimum_age",
- "minimum_size",
- "nsfw_properties",
- "protected",
- "retention_healthy",
- "safe_environment",
- "size",
- "sufficient",
- "sufficient_without_grace_period",
- "uild_id",
- "valid_rules_channel"
+ "messages",
+ "total_results"
],
"definitions": {
"ChannelPermissionOverwriteType": {
@@ -333448,6 +343948,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -333469,6 +343972,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -333482,6 +343986,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -335302,23 +345814,16 @@
},
"$schema": "http://json-schema.org/draft-07/schema#"
},
- "GuildMessagesSearchResponse": {
+ "GuildPruneResponse": {
"type": "object",
"properties": {
- "messages": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/GuildMessagesSearchMessage"
- }
- },
- "total_results": {
+ "pruned": {
"type": "integer"
}
},
"additionalProperties": false,
"required": [
- "messages",
- "total_results"
+ "pruned"
],
"definitions": {
"ChannelPermissionOverwriteType": {
@@ -338283,6 +348788,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -338304,6 +348812,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -338317,6 +348826,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -340137,16 +350654,16 @@
},
"$schema": "http://json-schema.org/draft-07/schema#"
},
- "GuildPruneResponse": {
+ "GuildPurgeResponse": {
"type": "object",
"properties": {
- "pruned": {
+ "purged": {
"type": "integer"
}
},
"additionalProperties": false,
"required": [
- "pruned"
+ "purged"
],
"definitions": {
"ChannelPermissionOverwriteType": {
@@ -343111,6 +353628,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -343132,6 +353652,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -343145,6 +353666,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -344965,16 +355494,23 @@
},
"$schema": "http://json-schema.org/draft-07/schema#"
},
- "GuildPurgeResponse": {
+ "GuildRecommendationsResponse": {
"type": "object",
"properties": {
- "purged": {
- "type": "integer"
+ "recommended_guilds": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Guild"
+ }
+ },
+ "load_id": {
+ "type": "string"
}
},
"additionalProperties": false,
"required": [
- "purged"
+ "load_id",
+ "recommended_guilds"
],
"definitions": {
"ChannelPermissionOverwriteType": {
@@ -347939,6 +358475,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -347960,6 +358499,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -347973,6 +358513,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -349793,23 +360341,20 @@
},
"$schema": "http://json-schema.org/draft-07/schema#"
},
- "GuildRecommendationsResponse": {
- "type": "object",
- "properties": {
- "recommended_guilds": {
+ "GuildVanityUrlResponse": {
+ "anyOf": [
+ {
+ "$ref": "#/definitions/GuildVanityUrl"
+ },
+ {
+ "$ref": "#/definitions/GuildVanityUrlNoInvite"
+ },
+ {
"type": "array",
"items": {
- "$ref": "#/definitions/Guild"
+ "$ref": "#/definitions/GuildVanityUrl"
}
- },
- "load_id": {
- "type": "string"
}
- },
- "additionalProperties": false,
- "required": [
- "load_id",
- "recommended_guilds"
],
"definitions": {
"ChannelPermissionOverwriteType": {
@@ -352774,6 +363319,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -352795,6 +363343,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -352808,6 +363357,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -354628,20 +365185,16 @@
},
"$schema": "http://json-schema.org/draft-07/schema#"
},
- "GuildVanityUrlResponse": {
- "anyOf": [
- {
- "$ref": "#/definitions/GuildVanityUrl"
- },
- {
- "$ref": "#/definitions/GuildVanityUrlNoInvite"
- },
- {
- "type": "array",
- "items": {
- "$ref": "#/definitions/GuildVanityUrl"
- }
+ "GuildVanityUrlCreateResponse": {
+ "type": "object",
+ "properties": {
+ "code": {
+ "type": "string"
}
+ },
+ "additionalProperties": false,
+ "required": [
+ "code"
],
"definitions": {
"ChannelPermissionOverwriteType": {
@@ -357606,6 +368159,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -357627,6 +368183,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -357640,6 +368197,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -359460,16 +370025,91 @@
},
"$schema": "http://json-schema.org/draft-07/schema#"
},
- "GuildVanityUrlCreateResponse": {
+ "GuildWidgetJsonResponse": {
"type": "object",
"properties": {
- "code": {
+ "id": {
"type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "instant_invite": {
+ "type": "string"
+ },
+ "channels": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "position": {
+ "type": "integer"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "id",
+ "name",
+ "position"
+ ]
+ }
+ },
+ "members": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "username": {
+ "type": "string"
+ },
+ "discriminator": {
+ "type": "string"
+ },
+ "avatar": {
+ "type": [
+ "null",
+ "string"
+ ]
+ },
+ "status": {
+ "$ref": "#/definitions/ClientStatus"
+ },
+ "avatar_url": {
+ "type": "string"
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "avatar",
+ "avatar_url",
+ "discriminator",
+ "id",
+ "status",
+ "username"
+ ]
+ }
+ },
+ "presence_count": {
+ "type": "integer"
}
},
"additionalProperties": false,
"required": [
- "code"
+ "channels",
+ "id",
+ "instant_invite",
+ "members",
+ "name",
+ "presence_count"
],
"definitions": {
"ChannelPermissionOverwriteType": {
@@ -362434,6 +373074,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -362455,6 +373098,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -362468,6 +373112,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -364288,91 +374940,27 @@
},
"$schema": "http://json-schema.org/draft-07/schema#"
},
- "GuildWidgetJsonResponse": {
+ "GuildWidgetSettingsResponse": {
"type": "object",
"properties": {
- "id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "instant_invite": {
- "type": "string"
- },
- "channels": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "position": {
- "type": "integer"
- }
- },
- "additionalProperties": false,
- "required": [
- "id",
- "name",
- "position"
- ]
- }
+ "enabled": {
+ "type": "boolean"
},
- "members": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string"
- },
- "username": {
- "type": "string"
- },
- "discriminator": {
- "type": "string"
- },
- "avatar": {
- "type": [
- "null",
- "string"
- ]
- },
- "status": {
- "$ref": "#/definitions/ClientStatus"
- },
- "avatar_url": {
- "type": "string"
- }
+ "channel_id": {
+ "anyOf": [
+ {
+ "$ref": "#/definitions/Snowflake"
},
- "additionalProperties": false,
- "required": [
- "avatar",
- "avatar_url",
- "discriminator",
- "id",
- "status",
- "username"
- ]
- }
- },
- "presence_count": {
- "type": "integer"
+ {
+ "type": "null"
+ }
+ ]
}
},
"additionalProperties": false,
"required": [
- "channels",
- "id",
- "instant_invite",
- "members",
- "name",
- "presence_count"
+ "channel_id",
+ "enabled"
],
"definitions": {
"ChannelPermissionOverwriteType": {
@@ -367337,6 +377925,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -367358,6 +377949,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -367371,6 +377963,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -369191,27 +379791,28 @@
},
"$schema": "http://json-schema.org/draft-07/schema#"
},
- "GuildWidgetSettingsResponse": {
+ "InstanceDomainsResponse": {
"type": "object",
"properties": {
- "enabled": {
- "type": "boolean"
+ "cdn": {
+ "type": "string"
},
- "channel_id": {
- "anyOf": [
- {
- "$ref": "#/definitions/Snowflake"
- },
- {
- "type": "null"
- }
- ]
+ "gateway": {
+ "type": "string"
+ },
+ "defaultApiVersion": {
+ "type": "string"
+ },
+ "apiEndpoint": {
+ "type": "string"
}
},
"additionalProperties": false,
"required": [
- "channel_id",
- "enabled"
+ "apiEndpoint",
+ "cdn",
+ "defaultApiVersion",
+ "gateway"
],
"definitions": {
"ChannelPermissionOverwriteType": {
@@ -372176,6 +382777,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -372197,6 +382801,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -372210,6 +382815,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -374030,28 +384643,78 @@
},
"$schema": "http://json-schema.org/draft-07/schema#"
},
- "InstanceDomainsResponse": {
+ "InstancePingResponse": {
"type": "object",
"properties": {
- "cdn": {
- "type": "string"
- },
- "gateway": {
- "type": "string"
- },
- "defaultApiVersion": {
- "type": "string"
+ "ping": {
+ "type": "string",
+ "enum": [
+ "pong!"
+ ]
},
- "apiEndpoint": {
- "type": "string"
+ "instance": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "description": {
+ "type": [
+ "null",
+ "string"
+ ]
+ },
+ "image": {
+ "type": [
+ "null",
+ "string"
+ ]
+ },
+ "correspondenceEmail": {
+ "type": [
+ "null",
+ "string"
+ ]
+ },
+ "correspondenceUserID": {
+ "type": [
+ "null",
+ "string"
+ ]
+ },
+ "frontPage": {
+ "type": [
+ "null",
+ "string"
+ ]
+ },
+ "tosPage": {
+ "type": [
+ "null",
+ "string"
+ ]
+ }
+ },
+ "additionalProperties": false,
+ "required": [
+ "correspondenceEmail",
+ "correspondenceUserID",
+ "description",
+ "frontPage",
+ "id",
+ "image",
+ "name",
+ "tosPage"
+ ]
}
},
"additionalProperties": false,
"required": [
- "apiEndpoint",
- "cdn",
- "defaultApiVersion",
- "gateway"
+ "instance",
+ "ping"
],
"definitions": {
"ChannelPermissionOverwriteType": {
@@ -377016,6 +387679,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -377037,6 +387703,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -377050,6 +387717,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -378870,78 +389545,37 @@
},
"$schema": "http://json-schema.org/draft-07/schema#"
},
- "InstancePingResponse": {
+ "InstanceStatsResponse": {
"type": "object",
"properties": {
- "ping": {
- "type": "string",
- "enum": [
- "pong!"
- ]
- },
- "instance": {
+ "counts": {
"type": "object",
"properties": {
- "id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": [
- "null",
- "string"
- ]
- },
- "image": {
- "type": [
- "null",
- "string"
- ]
- },
- "correspondenceEmail": {
- "type": [
- "null",
- "string"
- ]
+ "user": {
+ "type": "integer"
},
- "correspondenceUserID": {
- "type": [
- "null",
- "string"
- ]
+ "guild": {
+ "type": "integer"
},
- "frontPage": {
- "type": [
- "null",
- "string"
- ]
+ "message": {
+ "type": "integer"
},
- "tosPage": {
- "type": [
- "null",
- "string"
- ]
+ "members": {
+ "type": "integer"
}
},
"additionalProperties": false,
"required": [
- "correspondenceEmail",
- "correspondenceUserID",
- "description",
- "frontPage",
- "id",
- "image",
- "name",
- "tosPage"
+ "guild",
+ "members",
+ "message",
+ "user"
]
}
},
"additionalProperties": false,
"required": [
- "instance",
- "ping"
+ "counts"
],
"definitions": {
"ChannelPermissionOverwriteType": {
@@ -381906,6 +392540,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -381927,6 +392564,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -381940,6 +392578,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -383760,37 +394406,43 @@
},
"$schema": "http://json-schema.org/draft-07/schema#"
},
- "InstanceStatsResponse": {
+ "LocationMetadataResponse": {
"type": "object",
"properties": {
- "counts": {
+ "consent_required": {
+ "type": "boolean"
+ },
+ "country_code": {
+ "type": "string"
+ },
+ "promotional_email_opt_in": {
"type": "object",
"properties": {
- "user": {
- "type": "integer"
- },
- "guild": {
- "type": "integer"
- },
- "message": {
- "type": "integer"
+ "required": {
+ "type": "boolean",
+ "enum": [
+ true
+ ]
},
- "members": {
- "type": "integer"
+ "pre_checked": {
+ "type": "boolean",
+ "enum": [
+ false
+ ]
}
},
"additionalProperties": false,
"required": [
- "guild",
- "members",
- "message",
- "user"
+ "pre_checked",
+ "required"
]
}
},
"additionalProperties": false,
"required": [
- "counts"
+ "consent_required",
+ "country_code",
+ "promotional_email_opt_in"
],
"definitions": {
"ChannelPermissionOverwriteType": {
@@ -386755,6 +397407,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -386776,6 +397431,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -386789,6 +397445,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -388609,43 +399273,37 @@
},
"$schema": "http://json-schema.org/draft-07/schema#"
},
- "LocationMetadataResponse": {
+ "MemberJoinGuildResponse": {
"type": "object",
"properties": {
- "consent_required": {
- "type": "boolean"
+ "guild": {
+ "$ref": "#/definitions/GuildCreateResponse"
},
- "country_code": {
- "type": "string"
+ "emojis": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Emoji"
+ }
},
- "promotional_email_opt_in": {
- "type": "object",
- "properties": {
- "required": {
- "type": "boolean",
- "enum": [
- true
- ]
- },
- "pre_checked": {
- "type": "boolean",
- "enum": [
- false
- ]
- }
- },
- "additionalProperties": false,
- "required": [
- "pre_checked",
- "required"
- ]
+ "roles": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Role"
+ }
+ },
+ "stickers": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/Sticker"
+ }
}
},
"additionalProperties": false,
"required": [
- "consent_required",
- "country_code",
- "promotional_email_opt_in"
+ "emojis",
+ "guild",
+ "roles",
+ "stickers"
],
"definitions": {
"ChannelPermissionOverwriteType": {
@@ -391610,6 +402268,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -391631,6 +402292,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -391644,6 +402306,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -393464,37 +404134,16 @@
},
"$schema": "http://json-schema.org/draft-07/schema#"
},
- "MemberJoinGuildResponse": {
+ "OAuthAuthorizeResponse": {
"type": "object",
"properties": {
- "guild": {
- "$ref": "#/definitions/GuildCreateResponse"
- },
- "emojis": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Emoji"
- }
- },
- "roles": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Role"
- }
- },
- "stickers": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/Sticker"
- }
+ "location": {
+ "type": "string"
}
},
"additionalProperties": false,
"required": [
- "emojis",
- "guild",
- "roles",
- "stickers"
+ "location"
],
"definitions": {
"ChannelPermissionOverwriteType": {
@@ -396459,6 +407108,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -396480,6 +407132,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -396493,6 +407146,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -398313,17 +408974,14 @@
},
"$schema": "http://json-schema.org/draft-07/schema#"
},
- "OAuthAuthorizeResponse": {
+ "TeamListResponse": {
"type": "object",
- "properties": {
- "location": {
- "type": "string"
+ "additionalProperties": false,
+ "patternProperties": {
+ "^[0-9]+$": {
+ "$ref": "#/definitions/Team"
}
},
- "additionalProperties": false,
- "required": [
- "location"
- ],
"definitions": {
"ChannelPermissionOverwriteType": {
"enum": [
@@ -401287,6 +411945,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -401308,6 +411969,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -401321,6 +411983,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -406143,6 +416813,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -406164,6 +416837,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -406177,6 +416851,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -411011,6 +421693,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -411032,6 +421717,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -411045,6 +421731,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -415833,6 +426527,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -415854,6 +426551,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -415867,6 +426565,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -420665,6 +431371,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -420686,6 +431395,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -420699,6 +431409,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -425493,6 +436211,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -425514,6 +436235,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -425527,6 +436249,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -430328,6 +441058,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -430349,6 +441082,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -430362,6 +441096,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -435367,6 +446109,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -435388,6 +446133,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -435401,6 +446147,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -440186,6 +450940,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -440207,6 +450964,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -440220,6 +450978,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -445105,6 +455871,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -445126,6 +455895,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -445139,6 +455909,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -449927,6 +460705,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -449948,6 +460729,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -449961,6 +460743,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -454749,6 +465539,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -454770,6 +465563,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -454783,6 +465577,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -459571,6 +470373,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -459592,6 +470397,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -459605,6 +470411,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -464493,6 +475307,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -464514,6 +475331,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -464527,6 +475345,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -469313,6 +480139,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -469334,6 +480163,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -469347,6 +480177,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -474133,6 +484971,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -474154,6 +484995,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -474167,6 +485009,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -478953,6 +489803,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -478974,6 +489827,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -478987,6 +489841,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -483775,6 +494637,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -483796,6 +494661,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -483809,6 +494675,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -488597,6 +499471,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -488618,6 +499495,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -488631,6 +499509,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -493419,6 +504305,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -493440,6 +504329,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -493453,6 +504343,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -498241,6 +509139,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -498262,6 +509163,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -498275,6 +509177,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -503063,6 +513973,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -503084,6 +513997,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -503097,6 +514011,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -507949,6 +518871,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -507970,6 +518895,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -507983,6 +518909,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -512771,6 +523705,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -512792,6 +523729,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -512805,6 +523743,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -517593,6 +528539,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -517614,6 +528563,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -517627,6 +528577,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -522415,6 +533373,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -522436,6 +533397,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -522449,6 +533411,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -527284,6 +538254,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -527305,6 +538278,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -527318,6 +538292,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -532243,6 +543225,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -532264,6 +543249,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -532277,6 +543263,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -537065,6 +548059,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -537086,6 +548083,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -537099,6 +548097,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -541887,6 +552893,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -541908,6 +552917,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -541921,6 +552931,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -546709,6 +557727,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -546730,6 +557751,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -546743,6 +557765,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -551531,6 +562561,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -551552,6 +562585,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -551565,6 +562599,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -556379,6 +567421,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -556400,6 +567445,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -556413,6 +567459,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -561201,6 +572255,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -561222,6 +572279,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -561235,6 +572293,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -566021,6 +577087,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -566042,6 +577111,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -566055,6 +577125,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -570864,6 +581942,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -570885,6 +581966,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -570898,6 +581980,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -575700,6 +586790,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -575721,6 +586814,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -575734,6 +586828,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -580655,6 +591757,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -580676,6 +591781,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -580689,6 +591795,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -585501,6 +596615,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -585522,6 +596639,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -585535,6 +596653,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -590341,6 +601467,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -590362,6 +601491,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -590375,6 +601505,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -595173,6 +606311,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -595194,6 +606335,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -595207,6 +606349,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -600005,6 +611155,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -600026,6 +611179,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -600039,6 +611193,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -604824,6 +615986,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -604845,6 +616010,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -604858,6 +616024,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -609658,6 +620832,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -609679,6 +620856,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -609692,6 +620870,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -614489,6 +625675,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -614510,6 +625699,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -614523,6 +625713,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -619335,6 +630533,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -619356,6 +630557,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -619369,6 +630571,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -624185,6 +635395,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -624206,6 +635419,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -624219,6 +635433,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -629014,6 +640236,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -629035,6 +640260,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -629048,6 +640274,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -633842,6 +645076,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -633863,6 +645100,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -633876,6 +645114,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -638670,6 +649916,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -638691,6 +649940,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -638704,6 +649954,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
@@ -643504,6 +654762,9 @@
"type": "string"
}
},
+ "role": {
+ "$ref": "#/definitions/TeamMemberRole"
+ },
"team_id": {
"type": "string"
},
@@ -643525,6 +654786,7 @@
"id",
"membership_state",
"permissions",
+ "role",
"team",
"team_id",
"user",
@@ -643538,6 +654800,14 @@
],
"type": "number"
},
+ "TeamMemberRole": {
+ "enum": [
+ "admin",
+ "developer",
+ "read_only"
+ ],
+ "type": "string"
+ },
"Sticker": {
"type": "object",
"properties": {
diff --git a/src/api/routes/teams.ts b/src/api/routes/teams.ts
index 26570165a..1328f6615 100644
--- a/src/api/routes/teams.ts
+++ b/src/api/routes/teams.ts
@@ -1,29 +1,99 @@
/*
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 { Request, Response, Router } from "express";
import { route } from "@spacebar/api";
+import {
+ Team,
+ TeamCreateSchema,
+ TeamMember,
+ TeamMemberRole,
+ TeamMemberState,
+ User,
+} from "@spacebar/util";
+import { HTTPError } from "lambert-server";
const router: Router = Router();
-router.get("/", route({}), async (req: Request, res: Response) => {
- //TODO
- res.send([]);
-});
+router.get(
+ "/",
+ route({
+ query: {
+ include_payout_account_status: {
+ type: "boolean",
+ description:
+ "Whether to include team payout account status in the response (default false)",
+ },
+ },
+ responses: {
+ 200: {
+ body: "TeamListResponse",
+ },
+ },
+ }),
+ async (req: Request, res: Response) => {
+ const teams = await Team.find({
+ where: {
+ owner_user_id: req.user_id,
+ },
+ relations: ["members"],
+ });
+
+ res.send(teams);
+ },
+);
+
+router.post(
+ "/",
+ route({
+ requestBody: "TeamCreateSchema",
+ responses: {
+ 200: {
+ body: "Team",
+ },
+ },
+ }),
+ async (req: Request, res: Response) => {
+ const user = await User.findOneOrFail({
+ where: [{ id: req.user_id }],
+ select: ["mfa_enabled"],
+ });
+ if (!user.mfa_enabled)
+ throw new HTTPError("You must enable MFA to create a team");
+
+ const body = req.body as TeamCreateSchema;
+
+ const team = Team.create({
+ name: body.name,
+ owner_user_id: req.user_id,
+ });
+ await team.save();
+
+ await TeamMember.create({
+ user_id: req.user_id,
+ team_id: team.id,
+ membership_state: TeamMemberState.ACCEPTED,
+ permissions: ["*"],
+ role: TeamMemberRole.ADMIN,
+ }).save();
+
+ res.json(team);
+ },
+);
export default router;
diff --git a/src/util/entities/TeamMember.ts b/src/util/entities/TeamMember.ts
index 2cd04710a..e4c18b892 100644
--- a/src/util/entities/TeamMember.ts
+++ b/src/util/entities/TeamMember.ts
@@ -25,6 +25,11 @@ export enum TeamMemberState {
INVITED = 1,
ACCEPTED = 2,
}
+export enum TeamMemberRole {
+ ADMIN = "admin",
+ DEVELOPER = "developer",
+ READ_ONLY = "read_only",
+}
@Entity({
name: "team_members",
@@ -37,6 +42,9 @@ export class TeamMember extends BaseClass {
@Column({ type: "simple-array" })
permissions: string[];
+ @Column()
+ role: TeamMemberRole;
+
@Column({ nullable: true })
@RelationId((member: TeamMember) => member.team)
team_id: string;
diff --git a/src/util/migration/mariadb/1724477620293-teamMemberRole.ts b/src/util/migration/mariadb/1724477620293-teamMemberRole.ts
new file mode 100644
index 000000000..ff4be7bf5
--- /dev/null
+++ b/src/util/migration/mariadb/1724477620293-teamMemberRole.ts
@@ -0,0 +1,17 @@
+import { MigrationInterface, QueryRunner } from "typeorm";
+
+export class TeamMemberRole1724477620293 implements MigrationInterface {
+ name = "TeamMemberRole1724477620293";
+
+ public async up(queryRunner: QueryRunner): Promise {
+ await queryRunner.query(
+ "ALTER TABLE `team_members` ADD COLUMN `role` VARCHAR(255) NOT NULL AFTER `permissions`",
+ );
+ }
+
+ public async down(queryRunner: QueryRunner): Promise {
+ await queryRunner.query(
+ "ALTER TABLE `team_members` DROP COLUMN `role`",
+ );
+ }
+}
diff --git a/src/util/migration/mysql/1724477620293-teamMemberRole.ts b/src/util/migration/mysql/1724477620293-teamMemberRole.ts
new file mode 100644
index 000000000..ff4be7bf5
--- /dev/null
+++ b/src/util/migration/mysql/1724477620293-teamMemberRole.ts
@@ -0,0 +1,17 @@
+import { MigrationInterface, QueryRunner } from "typeorm";
+
+export class TeamMemberRole1724477620293 implements MigrationInterface {
+ name = "TeamMemberRole1724477620293";
+
+ public async up(queryRunner: QueryRunner): Promise {
+ await queryRunner.query(
+ "ALTER TABLE `team_members` ADD COLUMN `role` VARCHAR(255) NOT NULL AFTER `permissions`",
+ );
+ }
+
+ public async down(queryRunner: QueryRunner): Promise {
+ await queryRunner.query(
+ "ALTER TABLE `team_members` DROP COLUMN `role`",
+ );
+ }
+}
diff --git a/src/util/migration/postgres/1724477620293-teamMemberRole.ts b/src/util/migration/postgres/1724477620293-teamMemberRole.ts
new file mode 100644
index 000000000..d3276d918
--- /dev/null
+++ b/src/util/migration/postgres/1724477620293-teamMemberRole.ts
@@ -0,0 +1,15 @@
+import { MigrationInterface, QueryRunner } from "typeorm";
+
+export class TeamMemberRole1724477620293 implements MigrationInterface {
+ name = "TeamMemberRole1724477620293";
+
+ public async up(queryRunner: QueryRunner): Promise {
+ await queryRunner.query(
+ "ALTER TABLE team_members ADD COLUMN role text NOT NULL",
+ );
+ }
+
+ public async down(queryRunner: QueryRunner): Promise {
+ await queryRunner.query("ALTER TABLE team_members DROP COLUMN role");
+ }
+}
diff --git a/src/util/schemas/ApplicationCreateSchema.ts b/src/util/schemas/ApplicationCreateSchema.ts
index 17bbc94cb..80956ec41 100644
--- a/src/util/schemas/ApplicationCreateSchema.ts
+++ b/src/util/schemas/ApplicationCreateSchema.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 .
*/
export interface ApplicationCreateSchema {
name: string;
- team_id?: string | number;
+ team_id?: string;
}
diff --git a/src/util/schemas/TeamCreateSchema.ts b/src/util/schemas/TeamCreateSchema.ts
new file mode 100644
index 000000000..5903a5363
--- /dev/null
+++ b/src/util/schemas/TeamCreateSchema.ts
@@ -0,0 +1,21 @@
+/*
+ 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 .
+*/
+
+export interface TeamCreateSchema {
+ name: string;
+}
diff --git a/src/util/schemas/index.ts b/src/util/schemas/index.ts
index 62199dfb1..7d8abaa0a 100644
--- a/src/util/schemas/index.ts
+++ b/src/util/schemas/index.ts
@@ -62,6 +62,7 @@ export * from "./RequestGuildMembersSchema";
export * from "./RoleModifySchema";
export * from "./RolePositionUpdateSchema";
export * from "./SelectProtocolSchema";
+export * from "./TeamCreateSchema";
export * from "./TemplateCreateSchema";
export * from "./TemplateModifySchema";
export * from "./TotpDisableSchema";
diff --git a/src/util/schemas/responses/TeamListResponse.ts b/src/util/schemas/responses/TeamListResponse.ts
new file mode 100644
index 000000000..375f0ae63
--- /dev/null
+++ b/src/util/schemas/responses/TeamListResponse.ts
@@ -0,0 +1,21 @@
+/*
+ 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 { Team } from "@spacebar/util";
+
+export interface TeamListResponse extends Array {}
diff --git a/src/util/schemas/responses/index.ts b/src/util/schemas/responses/index.ts
index accb26f5a..070a2e55f 100644
--- a/src/util/schemas/responses/index.ts
+++ b/src/util/schemas/responses/index.ts
@@ -1,17 +1,17 @@
/*
Spacebar: A FOSS re-implementation and extension of the Discord.com backend.
Copyright (C) 2023 Spacebar and Spacebar Contributors
-
+
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
-
+
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
-
+
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
@@ -40,6 +40,7 @@ export * from "./InstanceStatsResponse";
export * from "./LocationMetadataResponse";
export * from "./MemberJoinGuildResponse";
export * from "./OAuthAuthorizeResponse";
+export * from "./TeamListResponse";
export * from "./Tenor";
export * from "./TokenResponse";
export * from "./TypedResponses";