diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-08-13 13:03:18 +0200 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-08-13 13:03:18 +0200 |
commit | ebff2f42417e0e579d59d296f5150024f8c850ee (patch) | |
tree | 707b264d239859853411adb5142b64727debd51b /rtc/src/models/Emoji.ts | |
parent | Fix naming (diff) | |
parent | abstract Event emission (diff) | |
download | server-ebff2f42417e0e579d59d296f5150024f8c850ee.tar.xz |
Merge branch 'master' into pr/darkhpp/261-2
Diffstat (limited to 'rtc/src/models/Emoji.ts')
-rw-r--r-- | rtc/src/models/Emoji.ts | 29 |
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"); |