This commit is contained in:
Skylar Grant 2023-02-09 22:53:12 -05:00 committed by GitHub
parent ac23f36f59
commit 8339d34dad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,14 +6,14 @@ module.exports = {
data: new SlashCommandBuilder() data: new SlashCommandBuilder()
.setName('timetoheight') .setName('timetoheight')
.setDescription('Calculate how long it would take to reach a given height') .setDescription('Calculate how long it would take to reach a given height')
.addStringOption(o =>
o.setName('beginheight')
.setDescription('Begining tree height in feet')
.setRequired(false))
.addStringOption(o => .addStringOption(o =>
o.setName('endheight') o.setName('endheight')
.setDescription('Ending tree height in feet') .setDescription('Ending tree height in feet')
.setRequired(true)), .setRequired(true))
.addStringOption(o =>
o.setName('beginheight')
.setDescription('Beginning tree height in feet')
.setRequired(false)),
async execute(interaction) { async execute(interaction) {
await interaction.deferReply({ ephemeral: true }); await interaction.deferReply({ ephemeral: true });
const beginHeight = interaction.options.getString('beginheight'); const beginHeight = interaction.options.getString('beginheight');