mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-23 08:33:18 +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);
|
|
}
|
|
};
|