summary refs log tree commit diff
path: root/rtc/src/models/Emoji.ts
diff options
context:
space:
mode:
Diffstat (limited to 'rtc/src/models/Emoji.ts')
-rw-r--r--rtc/src/models/Emoji.ts29
1 files changed, 0 insertions, 29 deletions
diff --git a/rtc/src/models/Emoji.ts b/rtc/src/models/Emoji.ts
deleted file mode 100644
index 3e5cad53..00000000
--- a/rtc/src/models/Emoji.ts
+++ /dev/null
@@ -1,29 +0,0 @@
-import { Schema, model, Types, Document } from "mongoose";
-import db from "../util/Database";
-
-export interface Emoji extends Document {
-	id: string;
-	animated: boolean;
-	available: boolean;
-	guild_id: string;
-	managed: boolean;
-	name: string;
-	require_colons: boolean;
-	url: string;
-	roles: string[]; // roles this emoji is whitelisted to (new discord feature?)
-}
-
-export const EmojiSchema = new Schema({
-	id: { type: String, required: true },
-	animated: Boolean,
-	available: Boolean,
-	guild_id: String,
-	managed: Boolean,
-	name: String,
-	require_colons: Boolean,
-	url: String,
-	roles: [String],
-});
-
-// @ts-ignore
-export const EmojiModel = db.model<Emoji>("Emoji", EmojiSchema, "emojis");