nyx/models/guilds.js
2021-07-13 11:17:39 +08:00

39 lines
779 B
JavaScript

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",
},
Log: { type: String, default: "null" },
LogWebhookID: { type: String, default: "null" },
LogWebhookToken: { type: String, default: "null" },
Premium: {
type: Boolean,
default: false,
},
Category: {
type: Array,
default: [],
},
Commands: {
type: Array,
default: [],
},
Level: {
type: Boolean,
default: false,
},
})
);