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,7 +3,6 @@ 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) {
|
||||
|
@ -21,5 +20,5 @@ module.exports = {
|
|||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
;
|
||||
|
|
Reference in a new issue