From d7bd6b5d41f7afaefa23f1e9fa52fa7a73c012df Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Sun, 26 Feb 2023 12:30:55 -0500 Subject: [PATCH] Stricter check --- slash-commands/timetoheight.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slash-commands/timetoheight.js b/slash-commands/timetoheight.js index bd5f439..d670942 100755 --- a/slash-commands/timetoheight.js +++ b/slash-commands/timetoheight.js @@ -32,7 +32,7 @@ module.exports = { .setRequired(false) ), async execute(interaction) { - const private = interaction.options.getBoolean('private') ? interaction.options.getBoolean('private') : true; + const private = interaction.options.getBoolean('private') != undefined ? interaction.options.getBoolean('private') : true; await interaction.deferReply({ ephemeral: private }); const inBeginHeight = interaction.options.getInteger('beginheight'); const endHeight = interaction.options.getInteger('endheight');