mirror of
https://github.com/JonnyBro/JaBa.git
synced 2025-01-01 16:23:02 +05:00
57 lines
1.1 KiB
JavaScript
57 lines
1.1 KiB
JavaScript
import { model, Schema } from "mongoose";
|
|
import { langs } from "../languages/language-meta.js";
|
|
|
|
export default model(
|
|
"Guild",
|
|
new Schema({
|
|
id: { type: String },
|
|
|
|
membersData: { type: Object, default: {} },
|
|
members: [{ type: Schema.Types.ObjectId, ref: "Member" }],
|
|
|
|
language: { type: String, default: langs.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: {
|
|
messageUpdate: null,
|
|
messageDelete: null,
|
|
},
|
|
tickets: {
|
|
count: 0,
|
|
ticketLogs: null,
|
|
transcriptionLogs: null,
|
|
ticketsCategory: null,
|
|
},
|
|
suggestions: null,
|
|
reports: null,
|
|
birthdays: null,
|
|
modlogs: null,
|
|
},
|
|
},
|
|
}),
|
|
);
|