Add mark server as read route.

Include member count in invites.
This commit is contained in:
Paul
2021-08-07 11:17:44 +01:00
parent cdf034fe99
commit d70bdd4932
3 changed files with 13 additions and 2 deletions
-1
View File
@@ -1 +0,0 @@
Need to change empty response requests to 204.
+11
View File
@@ -179,6 +179,17 @@ resource('/servers/:server/invites', {
}
)
});
resource('/servers/:server/ack', {
put: routeAuthenticated(
"Mark Server As Read",
"Mark all channels in a server as read.",
{
...serverParams,
...await success("Marked as read.")
}
),
});
//#endregion
//#region Server Members
+2 -1
View File
@@ -37,5 +37,6 @@ export type RetrievedInvite = {
channel_name: string
channel_description?: string
user_name: string
user_avatar?: Attachment
user_avatar?: Attachment,
member_count: number
}