2021-02-05 22:01:01 +01:00
|
|
|
"use strict";
|
2021-02-16 21:16:56 +01:00
|
|
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
|
|
};
|
2021-02-05 22:01:01 +01:00
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
2021-02-13 14:15:59 +01:00
|
|
|
exports.GuildModel = exports.GuildSchema = void 0;
|
|
|
|
const mongoose_1 = require("mongoose");
|
2021-02-16 21:16:56 +01:00
|
|
|
const Database_1 = __importDefault(require("../util/Database"));
|
2021-02-13 14:15:59 +01:00
|
|
|
exports.GuildSchema = new mongoose_1.Schema({
|
2021-03-04 21:59:49 +01:00
|
|
|
id: { type: mongoose_1.Types.Long, required: true },
|
2021-02-13 14:15:59 +01:00
|
|
|
afk_channel_id: mongoose_1.Types.Long,
|
|
|
|
afk_timeout: Number,
|
|
|
|
application_id: mongoose_1.Types.Long,
|
|
|
|
banner: String,
|
|
|
|
default_message_notifications: Number,
|
|
|
|
description: String,
|
|
|
|
discovery_splash: String,
|
|
|
|
explicit_content_filter: Number,
|
|
|
|
features: { type: [String], default: [] },
|
|
|
|
icon: String,
|
|
|
|
large: Boolean,
|
|
|
|
max_members: { type: Number, default: 100000 },
|
|
|
|
max_presences: Number,
|
|
|
|
max_video_channel_users: { type: Number, default: 25 },
|
|
|
|
member_count: Number,
|
|
|
|
presence_count: Number,
|
|
|
|
mfa_level: Number,
|
|
|
|
name: { type: String, required: true },
|
|
|
|
owner_id: { type: mongoose_1.Types.Long, required: true },
|
|
|
|
preferred_locale: String,
|
|
|
|
premium_subscription_count: Number,
|
|
|
|
premium_tier: Number,
|
|
|
|
public_updates_channel_id: mongoose_1.Types.Long,
|
|
|
|
region: String,
|
|
|
|
rules_channel_id: mongoose_1.Types.Long,
|
|
|
|
splash: String,
|
|
|
|
system_channel_flags: Number,
|
|
|
|
system_channel_id: mongoose_1.Types.Long,
|
|
|
|
unavailable: Boolean,
|
|
|
|
vanity_url_code: String,
|
|
|
|
verification_level: Number,
|
|
|
|
voice_states: { type: [Object], default: [] },
|
|
|
|
welcome_screen: { type: [Object], default: [] },
|
|
|
|
widget_channel_id: mongoose_1.Types.Long,
|
|
|
|
widget_enabled: Boolean,
|
|
|
|
});
|
2021-02-22 21:30:38 +01:00
|
|
|
// GuildSchema.virtual
|
2021-02-16 21:16:56 +01:00
|
|
|
// @ts-ignore
|
|
|
|
exports.GuildModel = Database_1.default.model("Guild", exports.GuildSchema, "guilds");
|
2021-02-05 22:01:01 +01:00
|
|
|
//# sourceMappingURL=Guild.js.map
|