summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-19 15:34:52 +0100
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-19 15:34:52 +0100
commitf920803002e5cac5c6f18dede4d5802b40cc923d (patch)
tree8bd9b1f07597d9096e6d6e23d6a5d12a56a633a5
parent:sparkles: Ban Model (diff)
downloadserver-f920803002e5cac5c6f18dede4d5802b40cc923d.tar.xz
:wrench: build
-rw-r--r--dist/index.d.ts1
-rw-r--r--dist/index.js1
-rw-r--r--dist/index.js.map2
-rw-r--r--dist/models/Ban.d.ts10
-rw-r--r--dist/models/Ban.js17
-rw-r--r--dist/models/Ban.js.map1
6 files changed, 31 insertions, 1 deletions
diff --git a/dist/index.d.ts b/dist/index.d.ts

index aae08e02..df0761b1 100644 --- a/dist/index.d.ts +++ b/dist/index.d.ts
@@ -1,5 +1,6 @@ export * from "./util/checkToken"; export * as Constants from "./util/Constants"; +export * from "./models/Ban"; export * from "./models/Channel"; export * from "./models/Emoji"; export * from "./models/Guild"; diff --git a/dist/index.js b/dist/index.js
index 87f0cc7a..99f66d3d 100644 --- a/dist/index.js +++ b/dist/index.js
@@ -25,6 +25,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.MongooseCache = exports.DefaultOptions = exports.db = exports.Config = exports.Constants = void 0; __exportStar(require("./util/checkToken"), exports); exports.Constants = __importStar(require("./util/Constants")); +__exportStar(require("./models/Ban"), exports); __exportStar(require("./models/Channel"), exports); __exportStar(require("./models/Emoji"), exports); __exportStar(require("./models/Guild"), exports); diff --git a/dist/index.js.map b/dist/index.js.map
index d246bd27..7db4514c 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,oDAAkC;AAElC,8DAA8C;AAC9C,mDAAiC;AACjC,iDAA+B;AAC/B,iDAA+B;AAC/B,kDAAgC;AAChC,kDAAgC;AAChC,gDAA8B;AAC9B,gDAA8B;AAC9B,oDAAkC;AAClC,uDAAqC;AACrC,uDAAqC;AACrC,mDAAiC;AACjC,kDAAgC;AAChC,sDAAoC;AAEpC,gDAA8B;AAC9B,kDAAgC;AAChC,iDAA+B;AAC/B,sDAAoC;AACpC,qDAAmC;AACnC,mDAAiC;AACjC,mDAAiC;AACjC,iDAA+B;AAE/B,wDAAuD;AAG9C,iBAHF,gBAAM,CAGE;AAAM,+FAHJ,uBAAc,OAGI;AAFnC,4DAAoD;AAEnC,aAFV,kBAAE,CAEU;AAAkB,8FAFxB,wBAAa,OAEwB"} \ No newline at end of file +{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAkC;AAElC,8DAA8C;AAC9C,+CAA6B;AAC7B,mDAAiC;AACjC,iDAA+B;AAC/B,iDAA+B;AAC/B,kDAAgC;AAChC,kDAAgC;AAChC,gDAA8B;AAC9B,gDAA8B;AAC9B,oDAAkC;AAClC,uDAAqC;AACrC,uDAAqC;AACrC,mDAAiC;AACjC,kDAAgC;AAChC,sDAAoC;AAEpC,gDAA8B;AAC9B,kDAAgC;AAChC,iDAA+B;AAC/B,sDAAoC;AACpC,qDAAmC;AACnC,mDAAiC;AACjC,mDAAiC;AACjC,iDAA+B;AAE/B,wDAAuD;AAG9C,iBAHF,gBAAM,CAGE;AAAM,+FAHJ,uBAAc,OAGI;AAFnC,4DAAoD;AAEnC,aAFV,kBAAE,CAEU;AAAkB,8FAFxB,wBAAa,OAEwB"} \ No newline at end of file diff --git a/dist/models/Ban.d.ts b/dist/models/Ban.d.ts new file mode 100644
index 00000000..2f6399d7 --- /dev/null +++ b/dist/models/Ban.d.ts
@@ -0,0 +1,10 @@ +/// <reference path="../util/MongoBigInt.d.ts" /> +import { Schema, Document } from "mongoose"; +export interface Ban extends Document { + user_id: bigint; + guild_id: bigint; + ip: string; + reason?: string; +} +export declare const BanSchema: Schema<Document<any>, import("mongoose").Model<Document<any>>, undefined>; +export declare const BanModel: import("mongoose").Model<Ban>; diff --git a/dist/models/Ban.js b/dist/models/Ban.js new file mode 100644
index 00000000..ab05fd9e --- /dev/null +++ b/dist/models/Ban.js
@@ -0,0 +1,17 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.BanModel = exports.BanSchema = void 0; +const mongoose_1 = require("mongoose"); +const Database_1 = __importDefault(require("../util/Database")); +exports.BanSchema = new mongoose_1.Schema({ + user_id: { type: mongoose_1.Types.Long, required: true }, + guild_id: { type: mongoose_1.Types.Long, required: true }, + reason: String, + ip: String, +}); +// @ts-ignore +exports.BanModel = Database_1.default.model("Ban", exports.BanSchema, "bans"); +//# sourceMappingURL=Ban.js.map \ No newline at end of file diff --git a/dist/models/Ban.js.map b/dist/models/Ban.js.map new file mode 100644
index 00000000..eb06d54e --- /dev/null +++ b/dist/models/Ban.js.map
@@ -0,0 +1 @@ +{"version":3,"file":"Ban.js","sourceRoot":"","sources":["../../src/models/Ban.ts"],"names":[],"mappings":";;;;;;AAAA,uCAA0D;AAC1D,gEAAkC;AASrB,QAAA,SAAS,GAAG,IAAI,iBAAM,CAAC;IACnC,OAAO,EAAE,EAAE,IAAI,EAAE,gBAAK,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE;IAC7C,QAAQ,EAAE,EAAE,IAAI,EAAE,gBAAK,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE;IAC9C,MAAM,EAAE,MAAM;IACd,EAAE,EAAE,MAAM;CACV,CAAC,CAAC;AAEH,aAAa;AACA,QAAA,QAAQ,GAAG,kBAAE,CAAC,KAAK,CAAM,KAAK,EAAE,iBAAS,EAAE,MAAM,CAAC,CAAC"} \ No newline at end of file