mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: heavy usage of await
This commit is contained in:
1 parent
18360dfe8f
commit
91af52b4b8
14 files changed
+569
-666
No files matched your search
@@ -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,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user