Closed ItachizX closed 1 year ago
Maybe if you tried the strict minimum (copy pasting the error in google) you'd know: https://stackoverflow.com/questions/70602287/passing-strings-for-messageembedsetfooter-is-deprecated
Maybe if you tried the strict minimum (copy pasting the error in google) you'd know: https://stackoverflow.com/questions/70602287/passing-strings-for-messageembedsetfooter-is-deprecated
Thanks, just realized this code is not even part of Ear Tensifier's repo
const Discord = require("discord.js") const db = require("quick.db") const config = require("../config.json") module.exports = {
const itens = db.all().map(item =>
ID: ${item.ID} | QUANTIDADE: ${item.data.conta.length || "0"}
) const embed = new Discord.MessageEmbed() .setTitle("Estoque") .setDescription(\
``${itens.join("\n\n")}````) .setColor(config.cor) message.channel.send({embeds: [embed]}).then(msg => { setTimeout(() => msg.delete(), 10000) })}
[4:23 PM] 🚫 ・ Erro Detectado: [4:23 PM] TypeError: Cannot read properties of undefined (reading 'length') unhandledRejection [4:23 PM] 🚫 ・ Erro Detectado: [4:23 PM] TypeError: Cannot read properties of undefined (reading 'length') unhandledRejection