Compare commits

..

No commits in common. "7f9fc6928502791533a512efe7ba3088a9112dfa" and "98b5853a34ec05fc0f51edb53a68b22e85973eb7" have entirely different histories.

2 changed files with 4 additions and 4 deletions

View file

@ -1,6 +1,6 @@
{ {
"name": "avahooks", "name": "avahooks",
"version": "1.3.1", "version": "1.3.0",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"start": "node ./dist/index.js", "start": "node ./dist/index.js",

View file

@ -29,9 +29,9 @@ export default translator({
"Content-Type": "application/json", "Content-Type": "application/json",
}, },
body: JSON.stringify({ body: JSON.stringify({
image: Buffer.from(await avatar.arrayBuffer()).toString( image: `data:${avatar.type};base64,${Buffer.from(
"base64" await avatar.arrayBuffer()
), ).toString("base64")}`,
}), }),
method: "POST", method: "POST",
} }