mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-11-13 00:50:19 +00:00
12 lines
442 B
JavaScript
12 lines
442 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('I cannot send embeds (Embed links).');
|
|
try {
|
|
command.uses++;
|
|
command.execute(msg, args, client, Discord, prefix, command);
|
|
} catch (error) {
|
|
msg.reply(`Error!`);
|
|
console.error(error);
|
|
}
|
|
};
|