API: Add categories / system messages to server model.

This commit is contained in:
Paul
2021-06-26 23:58:06 +01:00
parent 0810c3d622
commit 158944c2ed
2 changed files with 17 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "revolt.js",
"version": "4.3.3-alpha.1",
"version": "4.3.3-alpha.2",
"main": "dist/index.js",
"repository": "https://gitlab.insrt.uk/revolt/revolt.js",
"author": "Paul Makles <insrt.uk>",
+16
View File
@@ -258,6 +258,19 @@ export namespace Servers {
colour?: string
}
export type Category = {
id: string,
title: string,
channels: string[]
}
export type SystemMessageChannels = {
user_joined?: string,
user_left?: string,
user_kicked?: string,
user_banned?: string,
}
export type Server = {
_id: string,
nonce?: string,
@@ -265,7 +278,10 @@ export namespace Servers {
name: string,
description?: string,
channels: string[],
categories?: Category[],
system_messages?: SystemMessageChannels,
roles?: { [key: string]: Role },
default_permissions: PermissionTuple,