2021-02-11 20:44:26 +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-11 20:44:26 +01:00
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
2021-02-13 14:15:59 +01:00
|
|
|
exports.VoiceStateModel = exports.VoiceSateSchema = 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.VoiceSateSchema = new mongoose_1.Schema({
|
|
|
|
guild_id: mongoose_1.Types.Long,
|
|
|
|
channel_id: mongoose_1.Types.Long,
|
|
|
|
user_id: mongoose_1.Types.Long,
|
|
|
|
session_id: String,
|
|
|
|
deaf: Boolean,
|
|
|
|
mute: Boolean,
|
|
|
|
self_deaf: Boolean,
|
|
|
|
self_mute: Boolean,
|
|
|
|
self_stream: Boolean,
|
|
|
|
self_video: Boolean,
|
|
|
|
suppress: Boolean,
|
|
|
|
});
|
2021-02-16 21:16:56 +01:00
|
|
|
// @ts-ignore
|
|
|
|
exports.VoiceStateModel = Database_1.default.model("VoiceState", exports.VoiceSateSchema, "voicestates");
|
2021-02-11 20:44:26 +01:00
|
|
|
//# sourceMappingURL=VoiceState.js.map
|