2021-12-10 21:39:54 +05:00
|
|
|
const mongoose = require("mongoose"),
|
|
|
|
Schema = mongoose.Schema,
|
|
|
|
languages = require("../languages/language-meta.json");
|
|
|
|
|
|
|
|
module.exports = mongoose.model("Guild", new Schema({
|
2022-08-04 19:26:17 +05:00
|
|
|
id: { type: String },
|
2021-12-10 21:39:54 +05:00
|
|
|
|
2022-08-04 19:26:17 +05:00
|
|
|
membersData: { type: Object, default: {} },
|
2021-12-10 21:39:54 +05:00
|
|
|
members: [{ type: Schema.Types.ObjectId, ref: "Member" }],
|
|
|
|
|
2022-12-17 13:33:33 +05:00
|
|
|
language: { type: String, default: languages.find(l => l.default).name },
|
2022-08-04 19:26:17 +05:00
|
|
|
plugins: { type: Object, default: {
|
2021-12-10 21:39:54 +05:00
|
|
|
welcome: {
|
2022-08-04 19:26:17 +05:00
|
|
|
enabled: false,
|
|
|
|
message: null,
|
|
|
|
channel: null,
|
2022-12-15 21:02:38 +05:00
|
|
|
withImage: null,
|
2021-12-10 21:39:54 +05:00
|
|
|
},
|
|
|
|
goodbye: {
|
2022-08-04 19:26:17 +05:00
|
|
|
enabled: false,
|
|
|
|
message: null,
|
|
|
|
channel: null,
|
2022-12-15 21:02:38 +05:00
|
|
|
withImage: null,
|
2021-12-10 21:39:54 +05:00
|
|
|
},
|
|
|
|
autorole: {
|
2022-08-04 19:26:17 +05:00
|
|
|
enabled: false,
|
2022-12-15 21:02:38 +05:00
|
|
|
role: null,
|
2021-12-10 21:39:54 +05:00
|
|
|
},
|
|
|
|
automod: {
|
2022-08-04 19:26:17 +05:00
|
|
|
enabled: false,
|
2022-12-15 21:02:38 +05:00
|
|
|
ignored: [],
|
2021-12-10 21:39:54 +05:00
|
|
|
},
|
|
|
|
warnsSanctions: {
|
2022-08-04 19:26:17 +05:00
|
|
|
kick: false,
|
2022-12-15 21:02:38 +05:00
|
|
|
ban: false,
|
2021-12-10 21:39:54 +05:00
|
|
|
},
|
2022-08-04 19:26:17 +05:00
|
|
|
suggestions: false,
|
2022-12-15 21:02:38 +05:00
|
|
|
reports: false,
|
2023-06-26 17:25:17 +05:00
|
|
|
birthdays: false,
|
|
|
|
modlogs: false,
|
2022-12-15 21:02:38 +05:00
|
|
|
} },
|
2021-12-10 21:39:54 +05:00
|
|
|
}));
|