Slash Command (Command Options) String Error

Here is the file causing an issue
const { EmbedBuilder, SlashCommandBuilder, PermissionsBitField } = require('discord.js');
module.exports = {
    data: new SlashCommandBuilder()
    .setName('database')
    .setDescription('Access to the PA Admins database.')
    .addStringOption(option1 => option1.setName('Users').setDescription('bots|members'))
    .addStringOption(option2 => option2.setName('Roles').setDescription('staff|member'))
    .addStringOption(option3 => option3.setName('Applications').setDescription('role-giving|non-role-giving')),
    async execute(interaction){
        const roleDBEmbed = new EmbedBuilder()
        .setColor('#ce3636')
        .setTitle('❌ | You must be a Staff Member to access the database.')
        const passRole = interaction.guild.roles.cache.get('ID')
        if (!interaction.member.roles.cache.has(passRole)) {
            return interaction.reply({ embeds: [roleDBEmbed], ephemeral:true })
        }
        const users = interaction.options.getString('Users');
        const roles = interaction.options.getString('Roles');
        const applications = interaction.options.getString('Application');
    }

}
Was this page helpful?