Fix message links for long Nitro messages.

This commit is contained in:
Keanu Timmermans 2021-06-14 11:25:11 +02:00
parent 2040dbdefd
commit 1330b499c8
Signed by: keanucode
GPG key ID: A7431C0D513CA93B

View file

@ -26,6 +26,10 @@ client.on("message", async (message) => {
return message.channel.send(new MessageEmbed().setDescription("🚫 The message is empty."));
}
if (linkMessage.cleanContent.length > 2048) {
return message.channel.send(new MessageEmbed().setDescription("🚫 This message is too long."));
}
const infoEmbed = new MessageEmbed()
.setAuthor(
linkMessage.author.username,