mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-11-10 09:00:20 +00:00
12 lines
627 B
JavaScript
12 lines
627 B
JavaScript
|
module.exports = function (msg, args, client, Discord, prefix, command) {
|
||
|
const permissions = msg.channel.permissionsFor(msg.client.user);
|
||
|
if (!permissions.has('EMBED_LINKS')) return msg.channel.send('<:redx:674263474704220182> I cannot send embeds (Embed links), make sure I have the proper permissions!');
|
||
|
try {
|
||
|
command.uses++;
|
||
|
command.execute(msg, args, client, Discord, prefix, command);
|
||
|
} catch (error) {
|
||
|
msg.reply(`<:redx:674263474704220182> there was an error trying to execute that command! Please contact support with \`${prefix}bug\`!`);
|
||
|
console.error(error);
|
||
|
}
|
||
|
};
|