From 4e9cc9c2f945f55b50c8077e78e8a3153662ebd0 Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Mon, 23 Jan 2023 01:55:33 -0500 Subject: [PATCH] fdas --- slash-commands/watertime.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/slash-commands/watertime.js b/slash-commands/watertime.js index 3f324f6..c6a4510 100644 --- a/slash-commands/watertime.js +++ b/slash-commands/watertime.js @@ -10,10 +10,10 @@ module.exports = { o.setName('height') .setDescription('Tree height in feet, numbers ONLY') .setRequired(true)), - execute(interaction) { - interaction.deferReply(); + async execute(interaction) { + await interaction.deferReply(); const treeHeight = interaction.options.getString('height'); const waterTime = Math.floor(Math.floor(Math.pow(treeHeight * 0.07 + 5, 1.1)) / 60); - interaction.editReply(`A tree that is ${treeHeight}ft tall will have a watering time of ${waterTime} minutes.`); + await interaction.editReply(`A tree that is ${treeHeight}ft tall will have a watering time of ${waterTime} minutes.`); }, }; \ No newline at end of file