fix bug in sendEmbed

This commit is contained in:
Lamp 2023-10-10 17:54:34 -05:00
parent 999e71c5cc
commit a86466efdb
1 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ module.exports = class DiscordMessageSender {
if (!this.pp) return;
var pp = this.pp;
delete this.pp;
if (pp.content.length > 2000) {
if (pp.content?.length > 2000) {
pp.files = [{name: "message.txt", attachment: Buffer.from(pp.content)}];
delete pp.content;
}
@ -36,4 +36,4 @@ module.exports = class DiscordMessageSender {
//});
}
}
}