1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-10 04:32:35 +01:00

Merge pull request #1165 from DEVTomatoCake/fix/request-guild-members-relation-typo

Fix typo in Request Guild Members relation
This commit is contained in:
Puyodead1 2024-08-14 10:52:16 -04:00 committed by GitHub
commit 7e55b14a25
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3696 additions and 2191 deletions

View File

@ -1857,6 +1857,9 @@
"version"
]
},
"client_status": {
"$ref": "#/components/schemas/ClientStatus"
},
"status": {
"$ref": "#/components/schemas/Status"
},
@ -1867,6 +1870,7 @@
"required": [
"activities",
"client_info",
"client_status",
"id",
"session_id",
"status",
@ -1874,6 +1878,23 @@
"user_id"
]
},
"ClientStatus": {
"type": "object",
"properties": {
"desktop": {
"type": "string"
},
"mobile": {
"type": "string"
},
"web": {
"type": "string"
},
"embedded": {
"type": "string"
}
}
},
"Relationship": {
"type": "object",
"properties": {
@ -3867,20 +3888,6 @@
"code"
]
},
"ClientStatus": {
"type": "object",
"properties": {
"desktop": {
"type": "string"
},
"mobile": {
"type": "string"
},
"web": {
"type": "string"
}
}
},
"Snowflake": {
"description": "A container for useful snowflake-related methods.",
"type": "object"
@ -4310,6 +4317,9 @@
},
"is_primary": {
"type": "boolean"
},
"icon": {
"type": "string"
}
},
"required": [
@ -4360,9 +4370,14 @@
"maxFriends": {
"type": "integer",
"default": 5000
},
"maxBio": {
"type": "integer",
"default": 190
}
},
"required": [
"maxBio",
"maxFriends",
"maxGuilds",
"maxUsername"
@ -6243,6 +6258,42 @@
}
}
},
"RequestGuildMembersSchema": {
"type": "object",
"properties": {
"guild_id": {
"type": "string"
},
"query": {
"type": "string"
},
"limit": {
"type": "integer"
},
"presences": {
"type": "boolean"
},
"user_ids": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
}
]
},
"nonce": {
"type": "string"
}
},
"required": [
"guild_id"
]
},
"RoleModifySchema": {
"type": "object",
"properties": {
@ -6544,7 +6595,6 @@
"nullable": true
},
"bio": {
"maxLength": 1024,
"type": "string"
},
"accent_color": {

File diff suppressed because it is too large Load Diff

View File

@ -64,7 +64,7 @@ export async function onRequestGuildMembers(this: WebSocket, { d }: Payload) {
...whereQuery,
guild_id,
},
relations: ["users", "roles"],
relations: ["user", "roles"],
};
if (limit) memberFind.take = Math.abs(Number(limit || 100));
const members = await Member.find(memberFind);