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 },
|
2023-07-05 00:58:06 +05:00
|
|
|
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: {
|
|
|
|
messageUpdate: null,
|
2023-07-31 22:09:27 +05:00
|
|
|
messageDelete: null,
|
2023-07-05 00:58:06 +05:00
|
|
|
},
|
2023-07-07 17:34:23 +05:00
|
|
|
tickets: {
|
2023-07-07 21:13:11 +05:00
|
|
|
count: 0,
|
2023-07-07 17:34:23 +05:00
|
|
|
ticketLogs: null,
|
|
|
|
transcriptionLogs: null,
|
2023-07-07 21:13:11 +05:00
|
|
|
ticketsCategory: null,
|
2023-07-07 17:34:23 +05:00
|
|
|
},
|
2023-07-05 00:58:06 +05:00
|
|
|
suggestions: null,
|
|
|
|
reports: null,
|
|
|
|
birthdays: null,
|
|
|
|
modlogs: null,
|
2021-12-10 21:39:54 +05:00
|
|
|
},
|
2023-07-05 00:58:06 +05:00
|
|
|
},
|
|
|
|
}));
|