Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

528
Views
Discord /commands 'This command is outdated, please try again in a few minutes'

I have been trying to fix this issue for a while and cant find the right answer this is my code,

const { SlashCommandBuilder } = require("@discordjs/builders");



module.exports = {
    data: new SlashCommandBuilder()
    .setName('test')
    .setDescription('Get info about a user or a server!')
    .addStringOption(option =>
        option.setName('category')
            .setDescription('The gif category')
            .setRequired(true)
            .addChoices(
                { name: 'Funny', value: 'funny is funny' },
                { name: 'Meme', value: 'Meme is a meme' },
                { name: 'Movie', value: 'Movie is a Movie' },
            ))
    , 
    async execute(interaction) {
        interaction.options.getString('category');
        
    }
}

Heres a pic of whats happening

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!