summary refs log tree commit diff
path: root/dist/models/Channel.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--dist/models/Channel.js28
-rw-r--r--dist/models/Channel.js.map2
2 files changed, 28 insertions, 2 deletions
diff --git a/dist/models/Channel.js b/dist/models/Channel.js

index bb49127d..d4b50395 100644 --- a/dist/models/Channel.js +++ b/dist/models/Channel.js
@@ -1,6 +1,32 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.ChannelType = void 0; +exports.ChannelType = exports.ChannelModel = exports.ChannelSchema = void 0; +const mongoose_1 = require("mongoose"); +exports.ChannelSchema = new mongoose_1.Schema({ + id: mongoose_1.Types.Long, + created_at: { type: mongoose_1.Schema.Types.Date, required: true }, + name: { type: String, required: true }, + type: { type: Number, required: true }, + guild_id: mongoose_1.Types.Long, + owner_id: mongoose_1.Types.Long, + parent_id: mongoose_1.Types.Long, + recipients: [mongoose_1.Types.Long], + position: Number, + last_message_id: mongoose_1.Types.Long, + last_pin_timestamp: Date, + nsfw: Boolean, + rate_limit_per_user: Number, + topic: String, + permission_overwrites: [ + { + allow: mongoose_1.Types.Long, + deny: mongoose_1.Types.Long, + id: mongoose_1.Types.Long, + type: Number, + }, + ], +}); +exports.ChannelModel = mongoose_1.model("Channel", exports.ChannelSchema, "channels"); var ChannelType; (function (ChannelType) { ChannelType[ChannelType["GUILD_TEXT"] = 0] = "GUILD_TEXT"; diff --git a/dist/models/Channel.js.map b/dist/models/Channel.js.map
index fdb6f6a0..768272eb 100644 --- a/dist/models/Channel.js.map +++ b/dist/models/Channel.js.map
@@ -1 +1 @@ -{"version":3,"file":"Channel.js","sourceRoot":"","sources":["../../src/models/Channel.ts"],"names":[],"mappings":";;;AA6CA,IAAY,WAQX;AARD,WAAY,WAAW;IACtB,yDAAc,CAAA;IACd,yCAAM,CAAA;IACN,2DAAe,CAAA;IACf,qDAAY,CAAA;IACZ,iEAAkB,CAAA;IAClB,yDAAc,CAAA;IACd,2DAAe,CAAA;AAChB,CAAC,EARW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAQtB"} \ No newline at end of file +{"version":3,"file":"Channel.js","sourceRoot":"","sources":["../../src/models/Channel.ts"],"names":[],"mappings":";;;AAAA,uCAA0D;AAM7C,QAAA,aAAa,GAAG,IAAI,iBAAM,CAAC;IACvC,EAAE,EAAE,gBAAK,CAAC,IAAI;IACd,UAAU,EAAE,EAAE,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE;IACvD,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;IACtC,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;IACtC,QAAQ,EAAE,gBAAK,CAAC,IAAI;IACpB,QAAQ,EAAE,gBAAK,CAAC,IAAI;IACpB,SAAS,EAAE,gBAAK,CAAC,IAAI;IACrB,UAAU,EAAE,CAAC,gBAAK,CAAC,IAAI,CAAC;IACxB,QAAQ,EAAE,MAAM;IAChB,eAAe,EAAE,gBAAK,CAAC,IAAI;IAC3B,kBAAkB,EAAE,IAAI;IACxB,IAAI,EAAE,OAAO;IACb,mBAAmB,EAAE,MAAM;IAC3B,KAAK,EAAE,MAAM;IACb,qBAAqB,EAAE;QACtB;YACC,KAAK,EAAE,gBAAK,CAAC,IAAI;YACjB,IAAI,EAAE,gBAAK,CAAC,IAAI;YAChB,EAAE,EAAE,gBAAK,CAAC,IAAI;YACd,IAAI,EAAE,MAAM;SACZ;KACD;CACD,CAAC,CAAC;AAEU,QAAA,YAAY,GAAG,gBAAK,CAAkB,SAAS,EAAE,qBAAa,EAAE,UAAU,CAAC,CAAC;AAuCzF,IAAY,WAQX;AARD,WAAY,WAAW;IACtB,yDAAc,CAAA;IACd,yCAAM,CAAA;IACN,2DAAe,CAAA;IACf,qDAAY,CAAA;IACZ,iEAAkB,CAAA;IAClB,yDAAc,CAAA;IACd,2DAAe,CAAA;AAChB,CAAC,EARW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAQtB"} \ No newline at end of file