mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-11 13:14:06 +01:00
49 lines
1.8 KiB
JavaScript
49 lines
1.8 KiB
JavaScript
"use strict";
|
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
};
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.GuildModel = exports.GuildSchema = void 0;
|
|
const mongoose_1 = require("mongoose");
|
|
const Database_1 = __importDefault(require("../util/Database"));
|
|
exports.GuildSchema = new mongoose_1.Schema({
|
|
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,
|
|
id: { type: mongoose_1.Types.Long, required: true },
|
|
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,
|
|
});
|
|
// @ts-ignore
|
|
exports.GuildModel = Database_1.default.model("Guild", exports.GuildSchema, "guilds");
|
|
//# sourceMappingURL=Guild.js.map
|