summary refs log tree commit diff
path: root/dist/models/Event.js
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-04-06 23:55:26 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-04-06 23:55:26 +0200
commit011251868d4ec0c4d6cda4509d38e09d7d331cf2 (patch)
tree2c4aa589d4fee812e116edca71680071e3b6b2ef /dist/models/Event.js
parent:art: remove _id and __v from response (diff)
parentMerge pull request #2 from afeuerstein/main (diff)
downloadserver-011251868d4ec0c4d6cda4509d38e09d7d331cf2.tar.xz
Merge branch 'main' of https://github.com/discord-open-source/discord-server-util into main
Diffstat (limited to 'dist/models/Event.js')
-rw-r--r--dist/models/Event.js63
1 files changed, 0 insertions, 63 deletions
diff --git a/dist/models/Event.js b/dist/models/Event.js
deleted file mode 100644
index 9d442aad..00000000
--- a/dist/models/Event.js
+++ /dev/null
@@ -1,63 +0,0 @@
-"use strict";
-var __importDefault = (this && this.__importDefault) || function (mod) {
-    return (mod && mod.__esModule) ? mod : { "default": mod };
-};
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.EVENTEnum = exports.EventModel = exports.EventSchema = void 0;
-const mongoose_1 = require("mongoose");
-const Database_1 = __importDefault(require("../util/Database"));
-exports.EventSchema = new mongoose_1.Schema({
-    guild_id: String,
-    user_id: String,
-    channel_id: String,
-    created_at: { type: Date, required: true },
-    event: { type: String, required: true },
-    data: Object,
-});
-// @ts-ignore
-exports.EventModel = Database_1.default.model("Event", exports.EventSchema, "events");
-// located in collection events
-var EVENTEnum;
-(function (EVENTEnum) {
-    EVENTEnum["Ready"] = "READY";
-    EVENTEnum["ChannelCreate"] = "CHANNEL_CREATE";
-    EVENTEnum["ChannelUpdate"] = "CHANNEL_UPDATE";
-    EVENTEnum["ChannelDelete"] = "CHANNEL_DELETE";
-    EVENTEnum["ChannelPinsUpdate"] = "CHANNEL_PINS_UPDATE";
-    EVENTEnum["GuildCreate"] = "GUILD_CREATE";
-    EVENTEnum["GuildUpdate"] = "GUILD_UPDATE";
-    EVENTEnum["GuildDelete"] = "GUILD_DELETE";
-    EVENTEnum["GuildBanAdd"] = "GUILD_BAN_ADD";
-    EVENTEnum["GuildBanRemove"] = "GUILD_BAN_REMOVE";
-    EVENTEnum["GuildEmojUpdate"] = "GUILD_EMOJI_UPDATE";
-    EVENTEnum["GuildIntegrationsUpdate"] = "GUILD_INTEGRATIONS_UPDATE";
-    EVENTEnum["GuildMemberAdd"] = "GUILD_MEMBER_ADD";
-    EVENTEnum["GuildMemberRempve"] = "GUILD_MEMBER_REMOVE";
-    EVENTEnum["GuildMemberUpdate"] = "GUILD_MEMBER_UPDATE";
-    EVENTEnum["GuildMemberSpeaking"] = "GUILD_MEMBER_SPEAKING";
-    EVENTEnum["GuildMembersChunk"] = "GUILD_MEMBERS_CHUNK";
-    EVENTEnum["GuildRoleCreate"] = "GUILD_ROLE_CREATE";
-    EVENTEnum["GuildRoleDelete"] = "GUILD_ROLE_DELETE";
-    EVENTEnum["GuildRoleUpdate"] = "GUILD_ROLE_UPDATE";
-    EVENTEnum["InviteCreate"] = "INVITE_CREATE";
-    EVENTEnum["InviteDelete"] = "INVITE_DELETE";
-    EVENTEnum["MessageCreate"] = "MESSAGE_CREATE";
-    EVENTEnum["MessageUpdate"] = "MESSAGE_UPDATE";
-    EVENTEnum["MessageDelete"] = "MESSAGE_DELETE";
-    EVENTEnum["MessageDeleteBulk"] = "MESSAGE_DELETE_BULK";
-    EVENTEnum["MessageReactionAdd"] = "MESSAGE_REACTION_ADD";
-    EVENTEnum["MessageReactionRemove"] = "MESSAGE_REACTION_REMOVE";
-    EVENTEnum["MessageReactionRemoveAll"] = "MESSAGE_REACTION_REMOVE_ALL";
-    EVENTEnum["MessageReactionRemoveEmoji"] = "MESSAGE_REACTION_REMOVE_EMOJI";
-    EVENTEnum["PresenceUpdate"] = "PRESENCE_UPDATE";
-    EVENTEnum["TypingStart"] = "TYPING_START";
-    EVENTEnum["UserUpdate"] = "USER_UPDATE";
-    EVENTEnum["WebhooksUpdate"] = "WEBHOOKS_UPDATE";
-    EVENTEnum["InteractionCreate"] = "INTERACTION_CREATE";
-    EVENTEnum["VoiceStateUpdate"] = "VOICE_STATE_UPDATE";
-    EVENTEnum["VoiceServerUpdate"] = "VOICE_SERVER_UPDATE";
-    EVENTEnum["ApplicationCommandCreate"] = "APPLICATION_COMMAND_CREATE";
-    EVENTEnum["ApplicationCommandUpdate"] = "APPLICATION_COMMAND_UPDATE";
-    EVENTEnum["ApplicationCommandDelete"] = "APPLICATION_COMMAND_DELETE";
-})(EVENTEnum = exports.EVENTEnum || (exports.EVENTEnum = {}));
-//# sourceMappingURL=Event.js.map
\ No newline at end of file