I am creating an event for messageUpdate, and everything is working "perfectly" fine, except when someone sends a message that contains more than 1024 characters, it returns an error as addField has a character limit.
How could I possibly make the bot send an error if the message that has been edited has reached the limit ?
if(oldMessage.cleanContent.length >= 1000) return channel.send("Too long");
if(newMessage.cleanContent.length >= 1000) return channel.send("Too long");
const embed = new Discord.MessageEmbed()
.addField("Old Message", `${oldMessage.cleanContent}`, true)
.addField("New Message", `${newMessage.cleanContent}`, true)
channel.send(embed)