mirror of
https://github.com/musix-org/musix-oss
synced 2025-06-16 12:36:01 +00:00
Fix code to work on this decade 1/x
This commit is contained in:
13
funcs/exe.js
Normal file
13
funcs/exe.js
Normal file
@ -0,0 +1,13 @@
|
||||
const { EmbedBuilder, PermissionFlagsBits } = require("discord.js");
|
||||
|
||||
module.exports = function (message, args, client, prefix, command) {
|
||||
const permissions = message.channel.permissionsFor(message.client.user);
|
||||
if (!permissions.has(PermissionFlagsBits.EmbedLinks)) return message.channel.send(':x: I cannot send embeds (Embed links), make sure I have the proper permissions!');
|
||||
try {
|
||||
command.uses++;
|
||||
command.execute(message, args, client, prefix);
|
||||
} catch (error) {
|
||||
message.reply(`:x: there was an error trying to execute that command!`);
|
||||
console.log(error);
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user