Stricter check

This commit is contained in:
Skylar Grant 2023-02-26 12:30:55 -05:00
parent 0f8e9a3e10
commit d7bd6b5d41

View File

@ -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');