mirror of
https://github.com/stoatchat/javascript-client-api.git
synced 2026-08-26 12:35:48 -04:00
Add mark server as read route.
Include member count in invites.
This commit is contained in:
@@ -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
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user