Files not sending with a message #1192
-
Recently, about 2-3 weeks ago I noticed that files would no longer embed or even show if sent via the selfbot. exports.sendResponse = async (msg, response, sentMsg) => {
let hasFile = false;
if (
msg.client.user.premiumType === 2
? response.length > 4000
: response.length > 2000
)
hasFile = true;
if (hasFile) {
await sentMsg.edit({
files: [{ attachment: Buffer.from(response), name: "my_response.txt" }],
content: `Whoopsies! The character count exceeded ${
msg.client.user.premiumType === 2 ? "4000" : "2000"
}, so here's a file with my response instead!`,
});
} else {
await sentMsg.edit(response);
}
}; |
Beta Was this translation helpful? Give feedback.
Answered by
aiko-chan-ai
Jun 18, 2024
Replies: 1 comment 6 replies
-
|
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
it's a bug of the message logger plugin (disable it pls)