This repository has been archived on 2024-01-30. You can view files and clone it, but cannot push or open issues or pull requests.
2022-05-14 03:57:05 -05:00
|
|
|
module.exports = {
|
|
|
|
event: require('path').parse(__filename).name,
|
|
|
|
once: false,
|
|
|
|
listener: (client, config) =>
|
2023-01-04 20:45:50 -06:00
|
|
|
async (interaction) => {
|
2022-12-06 21:05:49 -06:00
|
|
|
try {
|
|
|
|
await client.commands.get(interaction.commandName)?.parseInteraction(client, config, interaction);
|
|
|
|
} catch (error) {
|
|
|
|
console.error(error);
|
2023-01-05 15:02:31 -06:00
|
|
|
interaction.reply({
|
2022-12-06 21:05:49 -06:00
|
|
|
embeds: [{
|
|
|
|
title: '<:AnitroxError:809651936563429416> **Something went wrong!**',
|
|
|
|
description: error.stack,
|
|
|
|
color: 13632027,
|
|
|
|
footer: {
|
|
|
|
icon_url: interaction.user.displayAvatarURL(),
|
|
|
|
text: config.footerTxt
|
|
|
|
}
|
2023-01-05 15:02:31 -06:00
|
|
|
}],
|
|
|
|
ephemeral: false
|
2022-12-06 21:05:49 -06:00
|
|
|
});
|
2022-05-14 03:57:05 -05:00
|
|
|
}
|
|
|
|
}
|
2023-01-04 20:45:50 -06:00
|
|
|
};
|