const { devs, testServer } = require('../../../config.
json');
const getLocalCommands = require('../../utils/getLocalCommands');
[Link] = async (client, interaction) => {
if (![Link]()) return;
const localCommands = getLocalCommands();
try {
const commandObject = [Link](
(cmd) => [Link] === [Link]
);
if (!commandObject) return;
if ([Link]) {
if () {
[Link]({
content: 'Only developers are allowed to run this command.',
ephemeral: true,
});
return;
}
}
if ([Link]) {
if (!([Link] === testServer)) {
[Link]({
content: 'This command cannot be ran here.',
ephemeral: true,
});
return;
}
}
if ([Link]?.length) {
for (const permission of [Link]) {
if () {
[Link]({
content: 'Not enough permissions.',
ephemeral: true,
});
return;
}
}
}
if ([Link]?.length) {
for (const permission of [Link]) {
const bot = [Link];
if () {
[Link]({
content: "I don't have enough permissions.",
ephemeral: true,
});
return;
}
}
}
await [Link](client, interaction);
} catch (error) {
[Link](`There was an error running this command: ${error}`);
}
};