feat: update create server + invite resp

This commit is contained in:
Paul Makles
2022-04-09 18:25:33 +01:00
parent 208b2eedbb
commit 8361345866
4 changed files with 59 additions and 13 deletions
+43 -9
View File
@@ -2030,7 +2030,7 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Server"
"$ref": "#/components/schemas/CreateServerResponse"
}
}
}
@@ -6996,6 +6996,31 @@
}
]
},
"CreateServerResponse": {
"title": "Create Server Response",
"type": "object",
"required": [
"channels",
"server"
],
"properties": {
"server": {
"description": "Server object",
"allOf": [
{
"$ref": "#/components/schemas/Server"
}
]
},
"channels": {
"description": "Default channels",
"type": "array",
"items": {
"$ref": "#/components/schemas/Channel"
}
}
}
},
"Server": {
"description": "Representation of a server on Revolt",
"type": "object",
@@ -7602,6 +7627,7 @@
"required": [
"channel_id",
"channel_name",
"code",
"member_count",
"server_id",
"server_name",
@@ -7615,6 +7641,10 @@
"Server"
]
},
"code": {
"description": "Invite code",
"type": "string"
},
"server_id": {
"description": "Id of the server",
"type": "string"
@@ -7680,6 +7710,7 @@
"required": [
"channel_id",
"channel_name",
"code",
"type",
"user_name"
],
@@ -7690,6 +7721,10 @@
"Group"
]
},
"code": {
"description": "Invite code",
"type": "string"
},
"channel_id": {
"description": "Id of group channel",
"type": "string"
@@ -7726,7 +7761,7 @@
{
"type": "object",
"required": [
"channel",
"channels",
"server",
"type"
],
@@ -7737,13 +7772,12 @@
"Server"
]
},
"channel": {
"description": "Channel we are joining",
"allOf": [
{
"$ref": "#/components/schemas/Channel"
}
]
"channels": {
"description": "Channels in the server",
"type": "array",
"items": {
"$ref": "#/components/schemas/Channel"
}
},
"server": {
"description": "Server we are joining",