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

242
Views
¿Por qué aparece un error cuando intento cambiar mi prefijo en discord.js?

Cada vez que ejecuto el comando. me sale un error:

UnhandledPromiseRejectionWarning: SqliteError: la imagen del disco de la base de datos tiene un formato incorrecto

Aquí está el código completo:

 const db = require("quick.db"); module.exports = { name: "setprefix", description: "Set a server's prefix", async run(client, message, args) { if (!message.member.hasPermission("MANAGE_MESSAGES")) return message.channel.send("You don't have permission to use that."); if (!args[0]) return message.channel.send("Please provide a new prefix"); if (args[1]) return message.channel.send("The prefix can't have two spaces"); db.set(`prefix_${message.guild.id}`, args[0]); message.channel.send(`Successfully set new prefix to **${args[0]}**`); } };

Cuando lo dejo en blanco, dice "proporcione un prefijo", pero ocurre un error cuando ingreso un prefijo. ¿Cómo puedo solucionar esto?

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!