summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--dist/Schema/Guild.d.ts4
-rw-r--r--dist/Schema/Guild.js4
-rw-r--r--dist/Schema/Guild.js.map2
-rw-r--r--dist/index.d.ts3
-rw-r--r--dist/index.js5
-rw-r--r--dist/index.js.map2
-rw-r--r--src/Schema/Guild.ts4
-rw-r--r--src/index.ts6
8 files changed, 20 insertions, 10 deletions
diff --git a/dist/Schema/Guild.d.ts b/dist/Schema/Guild.d.ts
index 67900143..42d540ba 100644
--- a/dist/Schema/Guild.d.ts
+++ b/dist/Schema/Guild.d.ts
@@ -1,8 +1,8 @@
-export declare const Guild: {
+export declare const GuildSchema: {
     name: StringConstructor;
     $region: StringConstructor;
 };
-export interface Guild {
+export interface GuildSchema {
     name: string;
     region?: string;
 }
diff --git a/dist/Schema/Guild.js b/dist/Schema/Guild.js
index e18d7129..a65b1b19 100644
--- a/dist/Schema/Guild.js
+++ b/dist/Schema/Guild.js
@@ -1,7 +1,7 @@
 "use strict";
 Object.defineProperty(exports, "__esModule", { value: true });
-exports.Guild = void 0;
-exports.Guild = {
+exports.GuildSchema = void 0;
+exports.GuildSchema = {
     name: String,
     $region: String,
 };
diff --git a/dist/Schema/Guild.js.map b/dist/Schema/Guild.js.map
index 00907349..43e413b8 100644
--- a/dist/Schema/Guild.js.map
+++ b/dist/Schema/Guild.js.map
@@ -1 +1 @@
-{"version":3,"file":"Guild.js","sourceRoot":"","sources":["../../src/Schema/Guild.ts"],"names":[],"mappings":";;;AAAa,QAAA,KAAK,GAAG;IACpB,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,MAAM;CAcf,CAAC"}
\ No newline at end of file
+{"version":3,"file":"Guild.js","sourceRoot":"","sources":["../../src/Schema/Guild.ts"],"names":[],"mappings":";;;AAAa,QAAA,WAAW,GAAG;IAC1B,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,MAAM;CAcf,CAAC"}
\ No newline at end of file
diff --git a/dist/index.d.ts b/dist/index.d.ts
index 23f3c96d..4b66da9f 100644
--- a/dist/index.d.ts
+++ b/dist/index.d.ts
@@ -12,6 +12,7 @@ import { User } from "./models/User";
 import { EmojiSchema } from "./Schema/Emoji";
 import { ActivitySchema } from "./Schema/Activity";
 import { IdentifySchema } from "./Schema/Identify";
+import { GuildSchema } from "./Schema/Guild";
 import { trimSpecial } from "./util/String";
 import { BitField } from "./util/BitField";
 import { Intents } from "./util/Intents";
@@ -19,4 +20,4 @@ import { MessageFlags } from "./util/MessageFlags";
 import { Permissions } from "./util/Permissions";
 import { Snowflake } from "./util/Snowflake";
 import { UserFlags } from "./util/UserFlags";
-export { trimSpecial, checkToken, Config, Constants, db, BitField, DefaultOptions, Permissions, MessageFlags, UserFlags, Snowflake, Intents, Channel, Emoji, Guild, Invite, Member, Role, User, EmojiSchema, ActivitySchema, IdentifySchema, };
+export { trimSpecial, checkToken, Config, Constants, db, BitField, DefaultOptions, Permissions, MessageFlags, UserFlags, Snowflake, Intents, Channel, Emoji, Guild, Invite, Member, Role, User, EmojiSchema, ActivitySchema, IdentifySchema, GuildSchema, };
diff --git a/dist/index.js b/dist/index.js
index a6a64d8e..118d3fed 100644
--- a/dist/index.js
+++ b/dist/index.js
@@ -22,7 +22,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
     return (mod && mod.__esModule) ? mod : { "default": mod };
 };
 Object.defineProperty(exports, "__esModule", { value: true });
-exports.IdentifySchema = exports.ActivitySchema = exports.EmojiSchema = exports.Intents = exports.Snowflake = exports.UserFlags = exports.MessageFlags = exports.Permissions = exports.DefaultOptions = exports.BitField = exports.db = exports.Constants = exports.Config = exports.checkToken = exports.trimSpecial = void 0;
+exports.GuildSchema = exports.IdentifySchema = exports.ActivitySchema = exports.EmojiSchema = exports.Intents = exports.Snowflake = exports.UserFlags = exports.MessageFlags = exports.Permissions = exports.DefaultOptions = exports.BitField = exports.db = exports.Constants = exports.Config = exports.checkToken = exports.trimSpecial = void 0;
 const checkToken_1 = require("./util/checkToken");
 Object.defineProperty(exports, "checkToken", { enumerable: true, get: function () { return checkToken_1.checkToken; } });
 const Config_1 = __importStar(require("./util/Config"));
@@ -32,12 +32,15 @@ const Database_1 = __importDefault(require("./util/Database"));
 exports.db = Database_1.default;
 const Constants = __importStar(require("./util/Constants"));
 exports.Constants = Constants;
+//*  schema
 const Emoji_1 = require("./Schema/Emoji");
 Object.defineProperty(exports, "EmojiSchema", { enumerable: true, get: function () { return Emoji_1.EmojiSchema; } });
 const Activity_1 = require("./Schema/Activity");
 Object.defineProperty(exports, "ActivitySchema", { enumerable: true, get: function () { return Activity_1.ActivitySchema; } });
 const Identify_1 = require("./Schema/Identify");
 Object.defineProperty(exports, "IdentifySchema", { enumerable: true, get: function () { return Identify_1.IdentifySchema; } });
+const Guild_1 = require("./Schema/Guild");
+Object.defineProperty(exports, "GuildSchema", { enumerable: true, get: function () { return Guild_1.GuildSchema; } });
 const String_1 = require("./util/String");
 Object.defineProperty(exports, "trimSpecial", { enumerable: true, get: function () { return String_1.trimSpecial; } });
 const BitField_1 = require("./util/BitField");
diff --git a/dist/index.js.map b/dist/index.js.map
index c22c770d..c55ec4a6 100644
--- a/dist/index.js.map
+++ b/dist/index.js.map
@@ -1 +1 @@
-{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAA+C;AAwB9C,2FAxBQ,uBAAU,OAwBR;AAvBX,wDAAuD;AAwBtD,iBAxBM,gBAAM,CAwBN;AAIN,+FA5BgB,uBAAc,OA4BhB;AA3Bf,+DAAiC;AAyBhC,aAzBM,kBAAE,CAyBN;AAxBH,4DAA8C;AAuB7C,8BAAS;AAfV,0CAA6C;AA+B5C,4FA/BQ,mBAAW,OA+BR;AA9BZ,gDAAmD;AA+BlD,+FA/BQ,yBAAc,OA+BR;AA9Bf,gDAAmD;AA+BlD,+FA/BQ,yBAAc,OA+BR;AA9Bf,0CAA4C;AAS3C,4FATQ,oBAAW,OASR;AARZ,8CAA2C;AAa1C,yFAbQ,mBAAQ,OAaR;AAZT,4CAAyC;AAkBxC,wFAlBQ,iBAAO,OAkBR;AAjBR,sDAAmD;AAclD,6FAdQ,2BAAY,OAcR;AAbb,oDAAiD;AAYhD,4FAZQ,yBAAW,OAYR;AAXZ,gDAA6C;AAc5C,0FAdQ,qBAAS,OAcR;AAbV,gDAA6C;AAY5C,0FAZQ,qBAAS,OAYR"}
\ No newline at end of file
+{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAA+C;AA6B9C,2FA7BQ,uBAAU,OA6BR;AA5BX,wDAAuD;AA6BtD,iBA7BM,gBAAM,CA6BN;AAIN,+FAjCgB,uBAAc,OAiChB;AAhCf,+DAAiC;AA8BhC,aA9BM,kBAAE,CA8BN;AA5BH,4DAA8C;AA2B7C,8BAAS;AAlBV,WAAW;AACX,0CAA6C;AAiC5C,4FAjCQ,mBAAW,OAiCR;AAhCZ,gDAAmD;AAiClD,+FAjCQ,yBAAc,OAiCR;AAhCf,gDAAmD;AAiClD,+FAjCQ,yBAAc,OAiCR;AAhCf,0CAA6C;AAiC5C,4FAjCQ,mBAAW,OAiCR;AA/BZ,0CAA4C;AAS3C,4FATQ,oBAAW,OASR;AARZ,8CAA2C;AAa1C,yFAbQ,mBAAQ,OAaR;AAZT,4CAAyC;AAkBxC,wFAlBQ,iBAAO,OAkBR;AAjBR,sDAAmD;AAclD,6FAdQ,2BAAY,OAcR;AAbb,oDAAiD;AAYhD,4FAZQ,yBAAW,OAYR;AAXZ,gDAA6C;AAc5C,0FAdQ,qBAAS,OAcR;AAbV,gDAA6C;AAY5C,0FAZQ,qBAAS,OAYR"}
\ No newline at end of file
diff --git a/src/Schema/Guild.ts b/src/Schema/Guild.ts
index 6c1ab00c..c8634362 100644
--- a/src/Schema/Guild.ts
+++ b/src/Schema/Guild.ts
@@ -1,4 +1,4 @@
-export const Guild = {
+export const GuildSchema = {
 	name: String, // ! 2-100 chars
 	$region: String, // ? voice region ?
 	// $icon: String, // TODO: add icon data (base64 128x128)
@@ -16,7 +16,7 @@ export const Guild = {
 	// $system_channel_id:	snowflake,
 };
 
-export interface Guild {
+export interface GuildSchema {
 	name: string; // ! 2-100 chars
 	region?: string; // ? voice region ?
 	// icon?: string; // TODO: add icon data (base64 128x128)
diff --git a/src/index.ts b/src/index.ts
index 83a3d20a..cdacf53b 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -1,6 +1,7 @@
 import { checkToken } from "./util/checkToken";
 import Config, { DefaultOptions } from "./util/Config";
 import db from "./util/Database";
+
 import * as Constants from "./util/Constants";
 import { Channel } from "./models/Channel";
 import { Emoji } from "./models/Emoji";
@@ -9,9 +10,13 @@ import { Invite } from "./models/Invite";
 import { Member } from "./models/Member";
 import { Role } from "./models/Role";
 import { User } from "./models/User";
+
+//*  schema
 import { EmojiSchema } from "./Schema/Emoji";
 import { ActivitySchema } from "./Schema/Activity";
 import { IdentifySchema } from "./Schema/Identify";
+import { GuildSchema } from "./Schema/Guild";
+
 import { trimSpecial } from "./util/String";
 import { BitField } from "./util/BitField";
 import { Intents } from "./util/Intents";
@@ -43,4 +48,5 @@ export {
 	EmojiSchema,
 	ActivitySchema,
 	IdentifySchema,
+	GuildSchema,
 };