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?