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:
commit
7e55b14a25
@ -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": {
|
||||
|
5805
assets/schemas.json
5805
assets/schemas.json
File diff suppressed because it is too large
Load Diff
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user