mirror of
https://github.com/stoatchat/javascript-client-sdk.git
synced 2026-07-21 04:25:27 -04:00
API: Add categories / system messages to server model.
This commit is contained in:
+1
-1
@@ -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>",
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user