Add deferred reply option to commands

This commit is contained in:
Logan Cusano
2023-02-26 00:54:39 -05:00
parent f3bae7e223
commit 013e407da8
2 changed files with 2 additions and 1 deletions

View File

@@ -22,6 +22,7 @@ module.exports = {
await authorizeCommand(interaction, command, async () => {
await authorizeTokenUsage(interaction, command, async () => {
try {
if (command.deferInitialReply) await interaction.deferReply({ ephemeral: true });
command.execute(interaction);
} catch (error) {
log.ERROR(error);