JaBa/base/Log.js

15 lines
370 B
JavaScript
Raw Normal View History

2022-01-04 02:18:28 +05:00
const mongoose = require("mongoose");
module.exports = mongoose.model("Log", new mongoose.Schema({
commandName: { type: String, default: "unknown" },
date: { type: Number, default: Date.now() },
author: { type: Object, default: {
username: "Unknown",
discrminator: "0000",
id: null
}},
guild: { type: Object, default: {
name: "Unknown",
id: null
}}
}));