diff --git a/src/modules/utility/userinfo.js b/src/modules/utility/userinfo.js index 7428046..cf8a800 100644 --- a/src/modules/utility/userinfo.js +++ b/src/modules/utility/userinfo.js @@ -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}]);