summary refs log tree commit diff
path: root/dist/models/Channel.js
diff options
context:
space:
mode:
Diffstat (limited to 'dist/models/Channel.js')
-rw-r--r--dist/models/Channel.js28
1 files changed, 27 insertions, 1 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";