summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorxnacly <matteogropp@gmail.com>2021-02-09 19:15:08 +0100
committerxnacly <matteogropp@gmail.com>2021-02-09 19:15:08 +0100
commit16a01111b831caa310604af6644d9db680291b0d (patch)
treea2f1577761fb127db53d41617cd6f560c426097c /src
parentMerge branch 'main' of https://github.com/discord-open-source/discord-server-... (diff)
downloadserver-16a01111b831caa310604af6644d9db680291b0d.tar.xz
added missing exports (guildschema)
Diffstat (limited to '')
-rw-r--r--src/Schema/Guild.ts4
-rw-r--r--src/index.ts6
2 files changed, 8 insertions, 2 deletions
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,
 };