1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-11 13:14:06 +01:00
server/dist/models/Role.js
2021-02-16 21:16:56 +01:00

25 lines
841 B
JavaScript

"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.RoleModel = exports.RoleSchema = void 0;
const mongoose_1 = require("mongoose");
const Database_1 = __importDefault(require("../util/Database"));
exports.RoleSchema = new mongoose_1.Schema({
id: mongoose_1.Types.Long,
guild_id: mongoose_1.Types.Long,
color: Number,
hoist: Boolean,
managed: Boolean,
mentionable: Boolean,
name: String,
permissions: mongoose_1.Types.Long,
position: Number,
tags: {
bot_id: mongoose_1.Types.Long,
},
});
// @ts-ignore
exports.RoleModel = Database_1.default.model("Role", exports.RoleSchema, "roles");
//# sourceMappingURL=Role.js.map