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;
|
if (!this.pp) return;
|
||||||
var pp = this.pp;
|
var pp = this.pp;
|
||||||
delete 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)}];
|
pp.files = [{name: "message.txt", attachment: Buffer.from(pp.content)}];
|
||||||
delete pp.content;
|
delete pp.content;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue