From 43a7011e4f86968ab38eb9687039b23572de39aa Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Mon, 23 Jan 2023 01:51:10 -0500 Subject: [PATCH] Defer the response --- slash-commands/watertime.js | 1 + 1 file changed, 1 insertion(+) diff --git a/slash-commands/watertime.js b/slash-commands/watertime.js index a65df11..f572d40 100644 --- a/slash-commands/watertime.js +++ b/slash-commands/watertime.js @@ -11,6 +11,7 @@ module.exports = { .setDescription('Tree height in feet, numbers ONLY') .setRequired(true)), execute(interaction) { + interaction.deferReply(); const treeHeight = interaction.options.getString('height'); const waterTime = Math.floor(Math.floor(Math.pow(treeHeight * 0.07 + 5, 1.1)) / 60); interaction.reply(`A tree that is ${treeHeight}ft tall will have a watering time of ${waterTime} minutes.`);