Fix typo in Request Guild Members relation
This commit is contained in:
parent
2f1449e65f
commit
6196227ed8
@ -1857,6 +1857,9 @@
|
|||||||
"version"
|
"version"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"client_status": {
|
||||||
|
"$ref": "#/components/schemas/ClientStatus"
|
||||||
|
},
|
||||||
"status": {
|
"status": {
|
||||||
"$ref": "#/components/schemas/Status"
|
"$ref": "#/components/schemas/Status"
|
||||||
},
|
},
|
||||||
@ -1867,6 +1870,7 @@
|
|||||||
"required": [
|
"required": [
|
||||||
"activities",
|
"activities",
|
||||||
"client_info",
|
"client_info",
|
||||||
|
"client_status",
|
||||||
"id",
|
"id",
|
||||||
"session_id",
|
"session_id",
|
||||||
"status",
|
"status",
|
||||||
@ -1874,6 +1878,23 @@
|
|||||||
"user_id"
|
"user_id"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"ClientStatus": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"desktop": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"mobile": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"web": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"embedded": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"Relationship": {
|
"Relationship": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
@ -3867,20 +3888,6 @@
|
|||||||
"code"
|
"code"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"ClientStatus": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"desktop": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"mobile": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"web": {
|
|
||||||
"type": "string"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"Snowflake": {
|
"Snowflake": {
|
||||||
"description": "A container for useful snowflake-related methods.",
|
"description": "A container for useful snowflake-related methods.",
|
||||||
"type": "object"
|
"type": "object"
|
||||||
@ -4310,6 +4317,9 @@
|
|||||||
},
|
},
|
||||||
"is_primary": {
|
"is_primary": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"icon": {
|
||||||
|
"type": "string"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": [
|
||||||
@ -4360,9 +4370,14 @@
|
|||||||
"maxFriends": {
|
"maxFriends": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"default": 5000
|
"default": 5000
|
||||||
|
},
|
||||||
|
"maxBio": {
|
||||||
|
"type": "integer",
|
||||||
|
"default": 190
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": [
|
||||||
|
"maxBio",
|
||||||
"maxFriends",
|
"maxFriends",
|
||||||
"maxGuilds",
|
"maxGuilds",
|
||||||
"maxUsername"
|
"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": {
|
"RoleModifySchema": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
@ -6544,7 +6595,6 @@
|
|||||||
"nullable": true
|
"nullable": true
|
||||||
},
|
},
|
||||||
"bio": {
|
"bio": {
|
||||||
"maxLength": 1024,
|
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"accent_color": {
|
"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,
|
...whereQuery,
|
||||||
guild_id,
|
guild_id,
|
||||||
},
|
},
|
||||||
relations: ["users", "roles"],
|
relations: ["user", "roles"],
|
||||||
};
|
};
|
||||||
if (limit) memberFind.take = Math.abs(Number(limit || 100));
|
if (limit) memberFind.take = Math.abs(Number(limit || 100));
|
||||||
const members = await Member.find(memberFind);
|
const members = await Member.find(memberFind);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user