This commit is contained in:
Lamp 2022-01-05 18:15:28 -08:00
parent 35d1299897
commit 1fda5903d0
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ module.exports = class DiscordMessageSender {
var pp = this.pp;
delete this.pp;
if (pp.content.length > 2000) {
pp.files = [{name: "message.txt", file: Buffer.from(pp.content)}];
pp.files = [{name: "message.txt", attachment: Buffer.from(pp.content)}];
delete pp.content;
}
//this.webhook.send(pp).catch(error => {