JaBa/base/Log.js
2022-01-04 02:18:28 +05:00

15 lines
No EOL
370 B
JavaScript

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
}}
}));