Stricter check
This commit is contained in:
parent
15a1093aa3
commit
03202db21d
@ -32,7 +32,7 @@ module.exports = {
|
|||||||
.setRequired(false)
|
.setRequired(false)
|
||||||
),
|
),
|
||||||
async execute(interaction) {
|
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 });
|
await interaction.deferReply({ ephemeral: private });
|
||||||
const inBeginHeight = interaction.options.getInteger('beginheight');
|
const inBeginHeight = interaction.options.getInteger('beginheight');
|
||||||
const endHeight = interaction.options.getInteger('endheight');
|
const endHeight = interaction.options.getInteger('endheight');
|
||||||
|
Loading…
Reference in New Issue
Block a user