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

331
Views
Cómo arreglar los comandos de barra que desaparecen después de un uso

Hola, agregué comandos de barra por primera vez en js y, después de un uso, los comandos desaparecen como se muestra en el video a continuación.

URL del vídeo

 // Slash Commands const slashCommands = await globPromise( `${process.cwd()}/SlashCommands/*/*.js` ); const arrayOfSlashCommands = []; slashCommands.map((value) => { const file = require(value); if (!file?.name) return; client.slashCommands.set(file.name, file); if (["MESSAGE", "USER"].includes(file.type)) delete file.description; arrayOfSlashCommands.push(file); }); client.on("ready", async () => { // Register for a single guild await client.guilds.cache .get("900379296407896075") .commands.set(arrayOfSlashCommands); console.log('[Slash cmds] commands were loaded') // Register for all the guilds the bot is in // await client.application.commands.set(arrayOfSlashCommands); });``` slash command handler that I use
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Debe volver a implementar su bot asegurándose de haber seleccionado bot y application.commands, luego establezca los permisos y use el enlace en la parte inferior para volver a invitar a su bot al gremio.

Vea la imagen a continuación: discordia.dev

about 4 years ago · Juan Pablo Isaza Report
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!