1
0
Fork 0

am amy!!!!

This commit is contained in:
amy 2024-12-22 20:33:21 +03:30
parent b6089a75ed
commit 0024187d2d
No known key found for this signature in database
2 changed files with 27 additions and 0 deletions

22
plugins/remixer/index.ts Normal file
View file

@ -0,0 +1,22 @@
const {
http: {intercept}
} = shelter
const unintercept = intercept("post", /\/channels\/\d+\/messages/, async (req, send) => {
if (req.body.attachments) {
for (let i = 0; i < req.body.attachments.length; i++) {
req.body.attachments[i] = {
...req.body.attachments[i],
is_remix: true
};
}
}
return send(req)
})
export function onUnload() {
unintercept()
}