1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-10 04:32:35 +01:00

🔧 build

This commit is contained in:
Flam3rboy 2021-02-06 21:39:23 +01:00
parent 1b5e487ce0
commit 7099b88ea5
4 changed files with 6 additions and 5 deletions

View File

@ -1,12 +1,12 @@
import { ActivitySchema } from "./Activity";
export declare const IdentifySchema: {
token: StringConstructor;
properties: {
intents: BigIntConstructor;
$properties: {
$$os: StringConstructor;
$$browser: StringConstructor;
$$device: StringConstructor;
};
intents: BigIntConstructor;
$presence: {
afk: BooleanConstructor;
status: StringConstructor;

View File

@ -4,13 +4,13 @@ exports.IdentifySchema = void 0;
const Activity_1 = require("./Activity");
exports.IdentifySchema = {
token: String,
properties: {
intents: BigInt,
$properties: {
// bruh discord really uses $ in the property key, so we need to double prefix it, because instanceOf treats $ (prefix) as a optional key
$$os: String,
$$browser: String,
$$device: String,
},
intents: BigInt,
$presence: Activity_1.ActivitySchema,
$compress: Boolean,
$large_threshold: Number,

View File

@ -1 +1 @@
{"version":3,"file":"Identify.js","sourceRoot":"","sources":["../../src/Schema/Identify.ts"],"names":[],"mappings":";;;AAAA,yCAA4C;AAE/B,QAAA,cAAc,GAAG;IAC7B,KAAK,EAAE,MAAM;IACb,UAAU,EAAE;QACX,yIAAyI;QACzI,IAAI,EAAE,MAAM;QACZ,SAAS,EAAE,MAAM;QACjB,QAAQ,EAAE,MAAM;KAChB;IACD,OAAO,EAAE,MAAM;IACf,SAAS,EAAE,yBAAc;IACzB,SAAS,EAAE,OAAO;IAClB,gBAAgB,EAAE,MAAM;IACxB,MAAM,EAAE,CAAC,MAAM,CAAC;IAChB,oBAAoB,EAAE,OAAO;CAC7B,CAAC"}
{"version":3,"file":"Identify.js","sourceRoot":"","sources":["../../src/Schema/Identify.ts"],"names":[],"mappings":";;;AAAA,yCAA4C;AAE/B,QAAA,cAAc,GAAG;IAC7B,KAAK,EAAE,MAAM;IACb,OAAO,EAAE,MAAM;IACf,WAAW,EAAE;QACZ,yIAAyI;QACzI,IAAI,EAAE,MAAM;QACZ,SAAS,EAAE,MAAM;QACjB,QAAQ,EAAE,MAAM;KAChB;IACD,SAAS,EAAE,yBAAc;IACzB,SAAS,EAAE,OAAO;IAClB,gBAAgB,EAAE,MAAM;IACxB,MAAM,EAAE,CAAC,MAAM,CAAC;IAChB,oBAAoB,EAAE,OAAO;CAC7B,CAAC"}

View File

@ -13,6 +13,7 @@ export interface User {
hash: string;
valid_tokens_since: number;
user_settings: UserSettings;
guilds: bigint[];
}
export interface UserSettings {
afk_timeout: number;