followUp instead of reply as the command may already have replied when it errors out

This commit is contained in:
Supositware 2022-08-18 01:45:55 +02:00
parent c782c2bbd7
commit d1217f05d0

View file

@ -61,7 +61,7 @@ export default {
} }
catch (error) { catch (error) {
console.error(error); console.error(error);
await interaction.reply({ content: 'There was an error while executing this command!', ephemeral: true }); await interaction.followUp({ content: 'There was an error while executing this command!', ephemeral: true });
} }
}, },
}; };