Compare commits
No commits in common. "7f9fc6928502791533a512efe7ba3088a9112dfa" and "98b5853a34ec05fc0f51edb53a68b22e85973eb7" have entirely different histories.
7f9fc69285
...
98b5853a34
|
@ -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",
|
||||||
|
|
|
@ -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",
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue