fix bug in sendEmbed
This commit is contained in:
parent
999e71c5cc
commit
a86466efdb
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue