feat: heavy usage of await

This commit is contained in:
TresAbhi committed 2023-05-08 01:45:59 +00:00
1 parent 18360dfe8f
commit 91af52b4b8
14 files changed
+569 -666

No files matched your search

+2 -2
View File
@@ -77,6 +77,7 @@ export default async function interactionCreate(
}
try {
await interaction.deferReply();
command.execute(interaction);
} catch (error) {
console.error(error);
@@ -86,9 +87,8 @@ export default async function interactionCreate(
ephemeral: true,
});
} else {
await interaction.reply({
await interaction.editReply({
content: 'There was an error while executing this command!',
ephemeral: true,
});
}
}