userinfo: await
This commit is contained in:
parent
eb0614378e
commit
b023d6cb8f
1 changed files with 1 additions and 1 deletions
|
@ -515,7 +515,7 @@ userinfo.callback = async function (msg, line) {
|
|||
const static = await fetch(imageUrl)
|
||||
.then((res) => res.arrayBuffer())
|
||||
.then((b) => Buffer.from(b));
|
||||
const metadata = sharp(static).metadata();
|
||||
const metadata = await sharp(static).metadata();
|
||||
|
||||
const bg_light = nameplateBackground(metadata.width, metadata.height, palette.lightBackground, true);
|
||||
bg_light.composite([{input: static}]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue