mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-22 21:24:59 +05:00
44 lines
No EOL
908 B
JavaScript
44 lines
No EOL
908 B
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: false,
|
|
ban: false
|
|
},
|
|
news: false,
|
|
suggestions: false,
|
|
modlogs: false,
|
|
birthdays: false,
|
|
reports: false
|
|
}},
|
|
casesCount: { type: Number, default: 0 },
|
|
})); |