nyx/models/guilds.js

29 lines
517 B
JavaScript
Raw Normal View History

2023-10-31 02:39:28 +01:00
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,
},
})
);