mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-14 06:32:36 +01:00
39 lines
1.1 KiB
JavaScript
39 lines
1.1 KiB
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.MemberModel = exports.MemberSchema = void 0;
|
|
const mongoose_1 = require("mongoose");
|
|
const MuteConfig = {
|
|
end_time: Number,
|
|
selected_time_window: Number,
|
|
};
|
|
exports.MemberSchema = new mongoose_1.Schema({
|
|
id: mongoose_1.Types.Long,
|
|
guild_id: mongoose_1.Types.Long,
|
|
nick: String,
|
|
roles: [mongoose_1.Types.Long],
|
|
joined_at: Number,
|
|
premium_since: Number,
|
|
deaf: Boolean,
|
|
mute: Boolean,
|
|
pending: Boolean,
|
|
permissions: mongoose_1.Types.Long,
|
|
settings: {
|
|
channel_overrides: [
|
|
{
|
|
channel_id: mongoose_1.Types.Long,
|
|
message_notifications: Number,
|
|
mute_config: MuteConfig,
|
|
muted: Boolean,
|
|
},
|
|
],
|
|
message_notifications: Number,
|
|
mobile_push: Boolean,
|
|
mute_config: MuteConfig,
|
|
muted: Boolean,
|
|
suppress_everyone: Boolean,
|
|
suppress_roles: Boolean,
|
|
version: Number,
|
|
},
|
|
});
|
|
exports.MemberModel = mongoose_1.model("Member", exports.MemberSchema, "members");
|
|
//# sourceMappingURL=Member.js.map
|