nyx/models/guilds.js

37 lines
624 B
JavaScript
Raw Normal View History

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