I'm trying to create a command that has options, but discord does not want to offer to fill them.
const { SlashCommandBuilder } = require('@discordjs/builders');
module.exports = {
data: new SlashCommandBuilder()
.setName('echo')
.setDescription('Replies with your input!')
.addStringOption(option =>
option.setName('input')
.setDescription('The input to echo back')
.setRequired(true)
),
async execute(interaction) {
// Always null
const answer = interaction.options.getString('echo')
return interaction.reply({content: `Your input: ${answer}`, ephemeral: true})
}
}
Wildly apologize if somewhere already asked this, because I could not find