remove isInteractionCommand, it seems to have been removed in v14.

This commit is contained in:
Sophie Marie 2022-12-06 21:05:49 -06:00
parent dab0aa4799
commit f56dc3ff37
No known key found for this signature in database
GPG key ID: 0C9FB786E7770775

View file

@ -3,23 +3,22 @@ module.exports = {
once: false,
listener: (client, config) =>
async (interaction) => {
if (interaction.isApplicationCommand()) {
try {
await client.commands.get(interaction.commandName)?.parseInteraction(client, config, interaction);
} catch (error) {
console.error(error);
interaction.channel.send({
embeds: [{
title: '<:AnitroxError:809651936563429416> **Something went wrong!**',
description: error.stack,
color: 13632027,
footer: {
icon_url: interaction.user.displayAvatarURL(),
text: config.footerTxt
}
}]
});
}
try {
await client.commands.get(interaction.commandName)?.parseInteraction(client, config, interaction);
} catch (error) {
console.error(error);
interaction.channel.send({
embeds: [{
title: '<:AnitroxError:809651936563429416> **Something went wrong!**',
description: error.stack,
color: 13632027,
footer: {
icon_url: interaction.user.displayAvatarURL(),
text: config.footerTxt
}
}]
});
}
}
};
}
;