JaBa/base/Guild.js
Jonny_Bro (Nikita) aaa0d01c54 some tickets stuff
2023-07-07 17:34:23 +05:00

55 lines
1 KiB
JavaScript

const mongoose = require("mongoose"),
Schema = mongoose.Schema,
languages = require("../languages/language-meta.json");
module.exports = mongoose.model("Guild", new Schema({
id: { type: String },
membersData: { type: Object, default: {} },
members: [{ type: Schema.Types.ObjectId, ref: "Member" }],
language: { type: String, default: languages.find(l => l.default).name },
plugins: {
type: Object,
default: {
welcome: {
enabled: false,
message: null,
channel: null,
withImage: null,
},
goodbye: {
enabled: false,
message: null,
channel: null,
withImage: null,
},
autorole: {
enabled: false,
role: null,
},
automod: {
enabled: false,
ignored: [],
},
warnsSanctions: {
kick: null,
ban: null,
},
monitoring: {
memberAdd: null,
memberLeave: null,
memberUpdate: null,
messageUpdate: null,
},
tickets: {
ticketLogs: null,
transcriptionLogs: null,
},
suggestions: null,
reports: null,
birthdays: null,
modlogs: null,
},
},
}));