2021-06-12 12:53:51 +02:00
|
|
|
const mongoose = require("mongoose");
|
|
|
|
const prefix = require("../config.json").prefix;
|
|
|
|
module.exports = mongoose.model(
|
|
|
|
"guild",
|
|
|
|
new mongoose.Schema({
|
|
|
|
Guild: String,
|
|
|
|
Prefix: {
|
|
|
|
type: String,
|
|
|
|
default: prefix,
|
|
|
|
},
|
|
|
|
Welcome: {
|
|
|
|
type: String,
|
|
|
|
default: "null",
|
|
|
|
},
|
|
|
|
Goodbye: {
|
|
|
|
type: String,
|
|
|
|
default: "null",
|
|
|
|
},
|
2021-06-24 09:53:19 +02:00
|
|
|
Log: { type: String, default: "null" },
|
|
|
|
LogWebhookID: { type: String, default: "null" },
|
|
|
|
LogWebhookToken: { type: String, default: "null" },
|
2021-06-12 12:53:51 +02:00
|
|
|
Premium: {
|
|
|
|
type: Boolean,
|
|
|
|
default: false,
|
|
|
|
},
|
|
|
|
Category: {
|
|
|
|
type: Array,
|
|
|
|
default: [],
|
|
|
|
},
|
|
|
|
Commands: {
|
|
|
|
type: Array,
|
|
|
|
default: [],
|
|
|
|
},
|
2021-07-13 05:17:39 +02:00
|
|
|
Level: {
|
|
|
|
type: Boolean,
|
|
|
|
default: false,
|
|
|
|
},
|
2021-06-12 12:53:51 +02:00
|
|
|
})
|
|
|
|
);
|