remove isInteractionCommand, it seems to have been removed in v14.
This commit is contained in:
parent
dab0aa4799
commit
f56dc3ff37
1 changed files with 17 additions and 18 deletions
|
@ -3,23 +3,22 @@ module.exports = {
|
||||||
once: false,
|
once: false,
|
||||||
listener: (client, config) =>
|
listener: (client, config) =>
|
||||||
async (interaction) => {
|
async (interaction) => {
|
||||||
if (interaction.isApplicationCommand()) {
|
try {
|
||||||
try {
|
await client.commands.get(interaction.commandName)?.parseInteraction(client, config, interaction);
|
||||||
await client.commands.get(interaction.commandName)?.parseInteraction(client, config, interaction);
|
} catch (error) {
|
||||||
} catch (error) {
|
console.error(error);
|
||||||
console.error(error);
|
interaction.channel.send({
|
||||||
interaction.channel.send({
|
embeds: [{
|
||||||
embeds: [{
|
title: '<:AnitroxError:809651936563429416> **Something went wrong!**',
|
||||||
title: '<:AnitroxError:809651936563429416> **Something went wrong!**',
|
description: error.stack,
|
||||||
description: error.stack,
|
color: 13632027,
|
||||||
color: 13632027,
|
footer: {
|
||||||
footer: {
|
icon_url: interaction.user.displayAvatarURL(),
|
||||||
icon_url: interaction.user.displayAvatarURL(),
|
text: config.footerTxt
|
||||||
text: config.footerTxt
|
}
|
||||||
}
|
}]
|
||||||
}]
|
});
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
;
|
||||||
|
|
Reference in a new issue