nyx/models/guilds.js
2023-04-06 13:23:31 +01:00

28 lines
489 B
JavaScript

const mongoose = require("mongoose");
const prefix = require("../config").prefix;
module.exports = mongoose.model(
"guild",
new mongoose.Schema({
Guild: String,
Prefix: {
type: String,
default: prefix,
},
Premium: {
type: Boolean,
default: false,
},
Category: {
type: Array,
default: [],
},
Commands: {
type: Array,
default: [],
},
Tips: {
type: Boolean,
default: true,
},
})
);