mirror of
https://github.com/stoatchat/javascript-client-api.git
synced 2026-07-18 16:14:27 -04:00
Add servers to GET /users/:user/mutual
This commit is contained in:
+7
-3
@@ -144,18 +144,22 @@ resource('/users/:user/default_avatar', {
|
||||
|
||||
resource('/users/:user/mutual', {
|
||||
get: routeAuthenticated(
|
||||
"Fetch Mutual Friends",
|
||||
"Retrieve a list of mutual friends with another user.",
|
||||
"Fetch Mutual Friends And Servers",
|
||||
"Retrieve a list of mutual friends and servers with another user.",
|
||||
{
|
||||
...userParams,
|
||||
...await success(
|
||||
"Mutual friends.",
|
||||
"Mutual friends and servers.",
|
||||
schema`
|
||||
interface ${'MutualFriends'} {
|
||||
/**
|
||||
* Array of user IDs who both you and the other user are friends with.
|
||||
*/
|
||||
users: string[]
|
||||
/**
|
||||
* Array of server IDs who both you and the other user are members of.
|
||||
*/
|
||||
servers: string[]
|
||||
}
|
||||
`
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user