-
Notifications
You must be signed in to change notification settings - Fork 0
/
Base.js
28 lines (24 loc) · 927 Bytes
/
Base.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
const { User } = require("../../Schemas/User");
const client = require("../../index");
module.exports = {
name: '',
category: '',
description: '',
alias: [],
async execute(message, args, client) {
const { prefix } = message
try {
} catch (e) {
const Error = new EmbedBuilder()
.setColor(0xFF0000)
.setDescription(
`**Error al ejecutar el comando**\n- \`\`\`${prefix}${this.name}\`\`\`\n\n` +
`**ErrMessage:**\n - \`\`\`${e.message}\`\`\`\n` +
`**Stacktrace:**\n - \`\`\`${e.stack}\`\`\`\n`
)
message.channel.send({ embeds: [Error] });
} finally {
console.log(`\n💭 [CMD] ${message.author.globalName} [${message.author.tag}] ha usado el comando ${prefix}${this.name} en el servidor ${message.guild.name}`);
}
}
}